All Downloads are FREE. Search and download functionalities are using the official Maven repository.

web.eventstream.eventStreamDetails.jsp Maven / Gradle / Ivy

The newest version!
<%--
  ~ Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License"); you may not
  ~ use this file except in compliance with the License. You may obtain a copy
  ~ of the License at
  ~
  ~ http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software distributed
  ~ under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
  ~ CONDITIONS OF ANY KIND, either express or implied.  See the License for the
  ~ specific language governing permissions and limitations under the License.
  --%>
<%@ page
        import="org.wso2.carbon.analytics.stream.persistence.stub.EventStreamPersistenceAdminServiceStub" %>
<%@ page
        import="org.wso2.carbon.analytics.stream.persistence.stub.dto.AnalyticsTable" %>
<%@ page
        import="org.wso2.carbon.analytics.stream.persistence.stub.dto.AnalyticsTableRecord" %>
<%@ page
        import="org.wso2.carbon.event.stream.stub.EventStreamAdminServiceStub" %>
<%@ page import="org.wso2.carbon.event.stream.stub.types.EventStreamAttributeDto" %>
<%@ page import="org.wso2.carbon.event.stream.stub.types.EventStreamDefinitionDto" %>
<%@ page import="org.wso2.carbon.event.stream.ui.EventStreamUIUtils" %>
<%@ taglib uri="http://wso2.org/projects/carbon/taglibs/carbontags.jar"
           prefix="carbon" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://www.owasp.org/index.php/Category:OWASP_CSRFGuard_Project/Owasp.CsrfGuard.tld" prefix="csrf" %>
<%@ page import="org.owasp.encoder.Encode" %>



    

    
    
    
    
    
    
    
    
    
    

    <%
        String eventStreamWithVersion = request.getParameter("eventStreamWithVersion");
        EventStreamAdminServiceStub eventStreamAdminServiceStub = EventStreamUIUtils
                .getEventStreamAdminService(config, session, request);
        EventStreamDefinitionDto streamDefinitionDto = eventStreamAdminServiceStub
                .getStreamDefinitionDto(eventStreamWithVersion);
        if (streamDefinitionDto != null) {
            EventStreamPersistenceAdminServiceStub
                    streamPersistenceAdminServiceStub = EventStreamUIUtils.getEventStreamPersistenceAdminService(config,
                    session, request);
    %>

    
    

    

    

<%=eventStreamWithVersion%> Simulate <% if (streamDefinitionDto.getEditable()) { %> Delete Edit <% } %>

<% if (eventStreamWithVersion != null) { EventStreamAdminServiceStub stub = EventStreamUIUtils.getEventStreamAdminService(config, session, request); String[] eventAdaptorPropertiesDto = stub.getStreamDetailsForStreamId(eventStreamWithVersion); %> <% if (EventStreamUIUtils.isEventStreamPersistenceAdminServiceAvailable(streamPersistenceAdminServiceStub)) { %> <% } %> <% } %>
switch to source view
" style="width: 75%" readonly="true"/>
" style="width: 75%" readonly="true"/>
<% if (streamDefinitionDto.getMetaData() != null && streamDefinitionDto.getMetaData().length > 0) { %> <% for (EventStreamAttributeDto metaData : streamDefinitionDto.getMetaData()) { %> <% } %>
<%=Encode.forHtmlContent(metaData.getAttributeName())%> <%=metaData.getAttributeType()%>
<% } else { %>
<% } %>
<% if (streamDefinitionDto.getCorrelationData() != null && streamDefinitionDto.getCorrelationData().length > 0) { %> <% for (EventStreamAttributeDto correlationData : streamDefinitionDto.getCorrelationData()) { %> <% } %>
<%=correlationData.getAttributeName()%> <%=correlationData.getAttributeType()%>
<% } else { %>
<% } %>
<% if (streamDefinitionDto.getPayloadData() != null && streamDefinitionDto.getPayloadData().length > 0) { %> <% for (EventStreamAttributeDto payloadData : streamDefinitionDto.getPayloadData()) { %> <% } %>
<%=payloadData.getAttributeName()%> <%=payloadData.getAttributeType()%>
<% } %>
switch to design view
<% try { AnalyticsTable analyticsTable = streamPersistenceAdminServiceStub.getAnalyticsTable(streamDefinitionDto.getName(), streamDefinitionDto.getVersion()); if (analyticsTable != null && analyticsTable.getAnalyticsTableRecords() != null) { %> <% } } catch (Exception e) { %> <% } %>
<% for (AnalyticsTableRecord analyticsTableRecord : analyticsTable.getAnalyticsTableRecords()) { %> <% } %>
<%=analyticsTableRecord.getColumnName()%> <%=analyticsTableRecord.getColumnType()%> checked <% } %> > checked <% } %> > checked <% } %> > checked <% } %> >
checked <% } %> />
Unable to display index information: <%= e.getMessage()%>
" onclick="generateEvent('<%=eventStreamWithVersion%>')"/>

<% } else { %> <% } %>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy