<%-- /* * 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 i18n //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) { if (request.getParameter("svcid") != null) { //TODO handled a linked in subscription } if (request.getParameter("bizid") != null) { //TODO handled a linked in subscription } if (request.getParameter("tid") != null) { //TODO handled a linked in subscription } 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; } %>
<%=ResourceLoader.GetResource(session, "pages.subscription.content")%>
A specific item:


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


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

<%=ResourceLoader.GetResource(session, "pages.subscription.step3.content")%> <%=UDDIConstants.TRANSPORT_HTTP%>. " style="width:360px">
<%=ResourceLoader.GetResource(session, "items.maxrecords.callback")%>:  
<% if (sub.getMaxEntities() != null) { 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())); } %>
About Subscription Keys: You can optionally specify a subscription key. If you do, it must follow the rules for UDDI keys (uniqueness, prefixes, tModel Partitions, etc). If you do not define one, the UDDI server should generate one for you.
<%=ResourceLoader.GetResource(session, "actions.save")%>
<%@include file="tmodelChooser.jsp" %> <%@include file="bindingChooser.jsp" %> <%@include file="businessChooser.jsp" %> <%@include file="serviceChooser.jsp" %> <%@include file="header-bottom.jsp" %>