<%-- /* * Copyright 2001-2013 The Apache Software Foundation. * * 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. * */ Document : editSubscription Created on : Apr 7, 2013, 8:47:48 AM Author : Alex O'Ree --%> <%@page import="org.apache.juddi.v3.client.UDDIConstants"%> <%@page import="java.text.SimpleDateFormat"%> <%@page import="java.text.DateFormat"%> <%@page import="java.util.Date"%> <%@page import="javax.xml.datatype.DatatypeFactory"%> <%@page import="java.util.Calendar"%> <%@page import="java.util.GregorianCalendar"%> <%@page import="org.uddi.sub_v3.SubscriptionFilter"%> <%@page import="org.apache.juddi.webconsole.hub.builders.SubscriptionHelper"%> <%@page import="java.util.List"%> <%@page import="org.uddi.sub_v3.Subscription"%> <%@page import="java.net.URLEncoder"%> <%@page import="org.uddi.api_v3.*"%> <%@page import="org.apache.juddi.webconsole.PostBackConstants"%> <%@page import="org.apache.juddi.webconsole.hub.*"%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <%@include file="header-top.jsp" %>

<%=ResourceLoader.GetResource(session, "navbar.subscriptions")%>

<% //TODO use this page as a subscription editor Subscription sub = null; boolean newitem = false; UddiHub x = UddiHub.getInstance(application, session); if (request.getParameter("id") != null) { sub = x.GetSubscriptionDetails(request.getParameter("id")); } if (sub == null) { sub = new Subscription(); sub.setMaxEntities(50); sub.setBrief(false); GregorianCalendar gcal = new GregorianCalendar(); gcal.setTimeInMillis(System.currentTimeMillis()); gcal.add(Calendar.YEAR, 1); DatatypeFactory df = DatatypeFactory.newInstance(); sub.setNotificationInterval(df.newDuration(1000 * 60 * 15)); sub.setExpiresAfter(df.newXMLGregorianCalendar(gcal)); sub.setSubscriptionFilter(new SubscriptionFilter()); newitem = true; if (request.getParameter("svcid") != null) { sub.getSubscriptionFilter().setGetServiceDetail(new GetServiceDetail()); sub.getSubscriptionFilter().getGetServiceDetail().getServiceKey().add(request.getParameter("svcid")); } if (request.getParameter("bizid") != null) { sub.getSubscriptionFilter().setGetBusinessDetail(new GetBusinessDetail()); sub.getSubscriptionFilter().getGetBusinessDetail().getBusinessKey().add(request.getParameter("bizid")); } if (request.getParameter("tid") != null) { sub.getSubscriptionFilter().setGetTModelDetail(new GetTModelDetail()); sub.getSubscriptionFilter().getGetTModelDetail().getTModelKey().add(request.getParameter("tid")); } if (request.getParameter("bindingTemplate") != null) { sub.getSubscriptionFilter().setGetBindingDetail(new GetBindingDetail()); sub.getSubscriptionFilter().getGetBindingDetail().getBindingKey().add(request.getParameter("bindingTemplate")); } } %>
<%=ResourceLoader.GetResource(session, "pages.subscription.content")%>
"> <%=ResourceLoader.GetResource(session, "pages.subscription.specificitem")%>:


<%=ResourceLoader.GetResource(session, "items.key")%>:  
<% if (!SubscriptionHelper.isPublisherAssertionSpecific(sub).trim().equals("")) { out.write(StringEscapeUtils.escapeHtml(SubscriptionHelper.getItemKeySpecific(sub))); } %>
"> <%=ResourceLoader.GetResource(session, "search.results")%>:


<%=ResourceLoader.GetResource(session, "items.findqualifiers")%>
name="<%=UDDIConstants.AND_ALL_KEYS%>" value="<%=UDDIConstants.AND_ALL_KEYS%>"> <%=UDDIConstants.AND_ALL_KEYS%> name="<%=UDDIConstants.APPROXIMATE_MATCH%>" value="<%=UDDIConstants.APPROXIMATE_MATCH%>"> <%=UDDIConstants.APPROXIMATE_MATCH%> name="<%=UDDIConstants.BINARY_SORT%>" value="<%=UDDIConstants.BINARY_SORT%>"> <%=UDDIConstants.BINARY_SORT%> name="<%=UDDIConstants.BINDING_SUBSET%>" value="<%=UDDIConstants.BINDING_SUBSET%>"> <%=UDDIConstants.BINDING_SUBSET%> name="<%=UDDIConstants.CASE_INSENSITIVE_MATCH%>" value="<%=UDDIConstants.CASE_INSENSITIVE_MATCH%>"> <%=UDDIConstants.CASE_INSENSITIVE_MATCH%>
name="<%=UDDIConstants.CASE_INSENSITIVE_SORT%>" value="<%=UDDIConstants.CASE_INSENSITIVE_SORT%>"> <%=UDDIConstants.CASE_INSENSITIVE_SORT%> name="<%=UDDIConstants.CASE_SENSITIVE_MATCH%>" value="<%=UDDIConstants.CASE_SENSITIVE_MATCH%>"> <%=UDDIConstants.CASE_SENSITIVE_MATCH%> name="<%=UDDIConstants.CASE_SENSITIVE_SORT%>" value="<%=UDDIConstants.CASE_SENSITIVE_SORT%>"> <%=UDDIConstants.CASE_SENSITIVE_SORT%> name="<%=UDDIConstants.COMBINE_CATEGORY_BAGS%>" value="<%=UDDIConstants.COMBINE_CATEGORY_BAGS%>"> <%=UDDIConstants.COMBINE_CATEGORY_BAGS%> name="<%=UDDIConstants.DIACRITIC_INSENSITIVE_MATCH%>" value="<%=UDDIConstants.DIACRITIC_INSENSITIVE_MATCH%>"> <%=UDDIConstants.DIACRITIC_INSENSITIVE_MATCH%>
name="<%=UDDIConstants.DIACRITIC_SENSITIVE_MATCH%>" value="<%=UDDIConstants.DIACRITIC_SENSITIVE_MATCH%>"> <%=UDDIConstants.DIACRITIC_SENSITIVE_MATCH%> name="<%=UDDIConstants.EXACT_MATCH%>" value="<%=UDDIConstants.EXACT_MATCH%>"> <%=UDDIConstants.EXACT_MATCH%> name="<%=UDDIConstants.OR_ALL_KEYS%>" value="<%=UDDIConstants.OR_ALL_KEYS%>"> <%=UDDIConstants.OR_ALL_KEYS%> name="<%=UDDIConstants.OR_LIKE_KEYS%>" value="<%=UDDIConstants.OR_LIKE_KEYS%>"> <%=UDDIConstants.OR_LIKE_KEYS%> name="<%=UDDIConstants.SERVICE_SUBSET%>" value="<%=UDDIConstants.SERVICE_SUBSET%>"> <%=UDDIConstants.SERVICE_SUBSET%>
name="<%=UDDIConstants.SIGNATURE_PRESENT%>" value="<%=UDDIConstants.SIGNATURE_PRESENT%>"> <%=UDDIConstants.SIGNATURE_PRESENT%> name="<%=UDDIConstants.SORT_BY_DATE_ASC%>" value="<%=UDDIConstants.SORT_BY_DATE_ASC%>"> <%=UDDIConstants.SORT_BY_DATE_ASC%> name="<%=UDDIConstants.SORT_BY_DATE_DESC%>" value="<%=UDDIConstants.SORT_BY_DATE_DESC%>"> <%=UDDIConstants.SORT_BY_DATE_DESC%> name="<%=UDDIConstants.SORT_BY_NAME_ASC%>" value="<%=UDDIConstants.SORT_BY_NAME_ASC%>"> <%=UDDIConstants.SORT_BY_NAME_ASC%> name="<%=UDDIConstants.SORT_BY_NAME_DESC%>" value="<%=UDDIConstants.SORT_BY_NAME_DESC%>"> <%=UDDIConstants.SORT_BY_NAME_DESC%>
name="<%=UDDIConstants.SUPPRESS_PROJECTED_SERVICES%>" value="<%=UDDIConstants.SUPPRESS_PROJECTED_SERVICES%>"> <%=UDDIConstants.SUPPRESS_PROJECTED_SERVICES%> name="<%=UDDIConstants.UTS_10%>" value="<%=UDDIConstants.UTS_10%>"> <%=UDDIConstants.UTS_10%>
..." id="searchcontent" value="<%=StringEscapeUtils.escapeHtml(SubscriptionHelper.getSearchName(sub))%>"> ..." id="searchlang" value="<%=StringEscapeUtils.escapeHtml(SubscriptionHelper.getSearchLang(sub))%>">

" id="bindingKeyDiv"> <%=ResourceLoader.GetResource(session, "pages.subscription.step3.content")%> <%=UDDIConstants.TRANSPORT_HTTP%>. " style="width:360px">
<%=ResourceLoader.GetResource(session, "items.maxrecords.callback")%> ">:  
<% if (sub.getMaxEntities() != null) { out.write(sub.getMaxEntities().toString()); } %>
<%=ResourceLoader.GetResource(session, "items.subscriptionbrief")%> ">:  
>

<%=ResourceLoader.GetResource(session, "items.expiration")%>:
">
<%=ResourceLoader.GetResource(session, "items.notificationinterval")%>:  
">

Subscription Key:  
<% if (sub.getSubscriptionKey() != null) { out.write(StringEscapeUtils.escapeHtml(sub.getSubscriptionKey())); } %>
<%=ResourceLoader.GetResource(session, "pages.subscription.aboutkeys")%>
<%=ResourceLoader.GetResource(session, "actions.save")%> <% if (!newitem){%> <%=ResourceLoader.GetResource(session, "actions.asxml")%> <% }%>
<%@include file="tmodelChooser.jsp" %> <%@include file="bindingChooser.jsp" %> <%@include file="businessChooser.jsp" %> <%@include file="serviceChooser.jsp" %> <%@include file="header-bottom.jsp" %>