
web.eventreceiver.inner_index.jsp Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.wso2.carbon.event.receiver.ui
Show all versions of org.wso2.carbon.event.receiver.ui
This is a Carbon bundle that represent the event receiver ui module.
The newest version!
<%--
~ Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
~
~ WSO2 Inc. licenses this file to you 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.
--%>
<%@ taglib uri="http://wso2.org/projects/carbon/taglibs/carbontags.jar" prefix="carbon" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page
import="org.wso2.carbon.event.receiver.stub.EventReceiverAdminServiceStub" %>
<%@ page
import="org.wso2.carbon.event.receiver.stub.types.EventReceiverConfigurationFileDto" %>
<%@ page import="org.wso2.carbon.event.receiver.stub.types.EventReceiverConfigurationInfoDto" %>
<%@ page import="org.wso2.carbon.event.receiver.ui.EventReceiverUIUtils" %>
<%
EventReceiverAdminServiceStub stub = EventReceiverUIUtils.getEventReceiverAdminService(config, session, request);
String eventReceiverName = request.getParameter("eventReceiver");
int totalEventReceivers = 0;
int totalNotDeployedEventReceivers = 0;
if (eventReceiverName != null) {
stub.undeployActiveEventReceiverConfiguration(eventReceiverName);
%>
<%
}
EventReceiverConfigurationInfoDto[] eventReceiverDetailsArray = stub.getAllActiveEventReceiverConfigurations();
if (eventReceiverDetailsArray != null) {
totalEventReceivers = eventReceiverDetailsArray.length;
}
EventReceiverConfigurationFileDto[] notDeployedEventReceiverConfigurationFiles = stub.getAllInactiveEventReceiverConfigurations();
if (notDeployedEventReceiverConfigurationFiles != null) {
totalNotDeployedEventReceivers = notDeployedEventReceiverConfigurationFiles.length;
}
%>
<%=totalEventReceivers%> <% if (totalNotDeployedEventReceivers > 0) { %><%=totalNotDeployedEventReceivers%>
<% } else {%><%=totalNotDeployedEventReceivers%>
<% } %>
<%
if (eventReceiverDetailsArray != null) {
%>
<%
for (EventReceiverConfigurationInfoDto eventReceiverDetails : eventReceiverDetailsArray) {
%>
<%=eventReceiverDetails.getEventReceiverName()%>
<%=eventReceiverDetails.getMessageFormat()%>
<%=eventReceiverDetails.getInputAdapterType()%>
<%=eventReceiverDetails.getInputStreamId()%>
<% if (eventReceiverDetails.getEditable()) { %>
<% if (eventReceiverDetails.getEnableStats()) {%>
<% } else { %>
<% }
if (eventReceiverDetails.getEnableTracing()) {%>
<% } else { %>
<% } %>
Delete
Edit
<% } else { %>
<% } %>
<%
}
} else {
%>
<%
}
%>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy