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

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

<%--
  ~ 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.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 prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="org.owasp.encoder.Encode" %>















    





<% String eventStreamWithVersion = request.getParameter("eventStreamWithVersion");

    EventStreamAdminServiceStub eventStreamAdminServiceStub = EventStreamUIUtils.getEventStreamAdminService(config, session, request);
    EventStreamDefinitionDto streamDefinitionDto = eventStreamAdminServiceStub.getStreamDefinitionDto(eventStreamWithVersion);

%>

switch to source view
*
*
" style="width:75%"/>
" style="width:75%"/>
<% if (streamDefinitionDto.getMetaData() != null && streamDefinitionDto.getMetaData().length > 0) { %> <% for (EventStreamAttributeDto metaData : streamDefinitionDto.getMetaData()) { %> <%}%>
<%=Encode.forHtmlContent(metaData.getAttributeName())%> <%=metaData.getAttributeType()%> Delete
<% } else { %>
<% } %>
: : " onclick="addStreamAttribute('Meta')"/>
<% if (streamDefinitionDto.getCorrelationData() != null && streamDefinitionDto.getCorrelationData().length > 0) { %> <% for (EventStreamAttributeDto correlationData : streamDefinitionDto.getCorrelationData()) { %> <%}%>
<%=correlationData.getAttributeName()%> <%=correlationData.getAttributeType()%> Delete
<% } else { %>
<% } %>
: : " onclick="addStreamAttribute('Correlation')"/>
<% if (streamDefinitionDto.getPayloadData() != null && streamDefinitionDto.getPayloadData().length > 0) { %> <% for (EventStreamAttributeDto payloadData : streamDefinitionDto.getPayloadData()) { %> <%}%>
<%=payloadData.getAttributeName()%> <%=payloadData.getAttributeType()%> Delete
<% } else { %>
<% } %>
: : " onclick="addStreamAttribute('Payload')"/>
" onclick="nextPersistView()"/> " onclick="addEventStream(document.getElementById('editEventStream'),'edit', '<%=eventStreamWithVersion%>')"/>
switch to design view
<%@include file="inner_event_stream_source_ui.jsp"%>
" onclick="editEventStreamByString(document.getElementById('editEventStream2'), '<%=eventStreamWithVersion%>')" />




© 2015 - 2025 Weber Informatics LLC | Privacy Policy