manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1647107 - in /manifoldcf/branches/CONNECTORS-1119/framework: crawler-ui/src/main/webapp/ ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/
Date Sun, 21 Dec 2014 08:27:57 GMT
Author: kwright
Date: Sun Dec 21 08:27:57 2014
New Revision: 1647107

URL: http://svn.apache.org/r1647107
Log:
Add list notifications page

Added:
    manifoldcf/branches/CONNECTORS-1119/framework/crawler-ui/src/main/webapp/listnotifications.jsp
  (with props)
Modified:
    manifoldcf/branches/CONNECTORS-1119/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_en_US.properties
    manifoldcf/branches/CONNECTORS-1119/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_ja_JP.properties
    manifoldcf/branches/CONNECTORS-1119/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_zh_CN.properties

Added: manifoldcf/branches/CONNECTORS-1119/framework/crawler-ui/src/main/webapp/listnotifications.jsp
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1119/framework/crawler-ui/src/main/webapp/listnotifications.jsp?rev=1647107&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1119/framework/crawler-ui/src/main/webapp/listnotifications.jsp
(added)
+++ manifoldcf/branches/CONNECTORS-1119/framework/crawler-ui/src/main/webapp/listnotifications.jsp
Sun Dec 21 08:27:57 2014
@@ -0,0 +1,144 @@
+<%@ include file="adminHeaders.jsp" %>
+
+<%
+
+/* $Id$ */
+
+/**
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements. See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF 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.
+*/
+%>
+
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE html>
+<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+	<link rel="StyleSheet" href="style.css" type="text/css" media="screen"/>
+	<title>
+		<%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listnotifications.ApacheManifoldCFListNotificationConnections")%>
+	</title>
+
+	<script type="text/javascript">
+	<!--
+
+	function Delete(connectionName)
+	{
+		if (confirm("<%=Messages.getBodyJavascriptString(pageContext.getRequest().getLocale(),"listnotifications.DeleteNotificationConnection")%>
'"+connectionName+"'?"))
+		{
+			document.listconnections.op.value="Delete";
+			document.listconnections.connname.value=connectionName;
+			document.listconnections.submit();
+		}
+	}
+
+	//-->
+	</script>
+
+</head>
+
+<body class="standardbody">
+
+    <table class="page">
+      <tr><td colspan="2" class="banner"><jsp:include page="banner.jsp" flush="true"/></td></tr>
+      <tr><td class="navigation"><jsp:include page="navigation.jsp" flush="true"/></td>
+       <td class="window">
+	<p class="windowtitle"><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listnotifications.ListOfNotificationConnections")%></p>
+	<form class="standardform" name="listconnections" action="execute.jsp" method="POST">
+		<input type="hidden" name="op" value="Continue"/>
+		<input type="hidden" name="type" value="transformattion"/>
+		<input type="hidden" name="connname" value=""/>
+
+<%
+    try
+    {
+	// Get the notification connection manager handle
+	INotificationConnectionManager manager = NotificationConnectionManagerFactory.make(threadContext);
+	INotificationConnectorManager connectorManager = NotificationConnectorManagerFactory.make(threadContext);
+	INotificationConnection[] connections = manager.getAllConnections();
+%>
+		<table class="datatable">
+			<tr>
+				<td class="separator" colspan="5"><hr/></td>
+			</tr>
+			<tr class="headerrow">
+				<td class="columnheader"></td>
+				<td class="columnheader"><nobr><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listnotifications.Name")%></nobr></td>
+				<td class="columnheader"><nobr><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listnotifications.Description")%></nobr></td>
+				<td class="columnheader"><nobr><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listnotifications.ConnectionType")%></nobr></td>
+				<td class="columnheader"><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listnotifications.Max")%></td>
+			</tr>
+<%
+	int i = 0;
+	while (i < connections.length)
+	{
+		INotificationConnection connection = connections[i++];
+
+		String name = connection.getName();
+		String description = connection.getDescription();
+		if (description == null)
+			description = "";
+		String className = connection.getClassName();
+		String connectorName = connectorManager.getDescription(className);
+		if (connectorName == null)
+			connectorName = className + Messages.getString(pageContext.getRequest().getLocale(),"listnotifications.uninstalled");;
+		int maxCount = connection.getMaxConnections();
+
+%>
+		<tr <%="class=\""+((i%2==0)?"evendatarow":"odddatarow")+"\""%>>
+			<td class="columncell">
+				<nobr>
+					<a href='<%="viewnotification.jsp?connname="+org.apache.manifoldcf.core.util.URLEncoder.encode(name)%>'
alt='<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listnotifications.View")+"
"+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listnotifications.View")%></a>
+					<a href='<%="editnotification.jsp?connname="+org.apache.manifoldcf.core.util.URLEncoder.encode(name)%>'
alt='<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listnotifications.Edit")+"
"+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listnotifications.Edit")%></a>
+					<a href="javascript:void()" onclick='<%="javascript:Delete(\""+org.apache.manifoldcf.ui.util.Encoder.attributeJavascriptEscape(name)+"\")"%>'
alt='<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listnotifications.Delete")+"
"+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listnotifications.Delete")%></a>
+				</nobr>
+			</td>
+			<td class="columncell"><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(name)%></td>
+			<td class="columncell"><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(description)%></td>
+			<td class="columncell"><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(connectorName)%></td>
+			<td class="columncell"><%=Integer.toString(maxCount)%></td>
+		</tr>
+<%
+	}
+%>
+			<tr>
+				<td class="separator" colspan="5"><hr/></td>
+			</tr>
+			<tr><td class="message" colspan="5"><a href="editnotification.jsp" alt="<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listnotifications.AddANotificationConnection")%>"><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listnotifications.AddaNewNotificationConnection")%></a></td></tr>
+		</table>
+
+<%
+    }
+    catch (ManifoldCFException e)
+    {
+	e.printStackTrace();
+	variableContext.setParameter("text",e.getMessage());
+	variableContext.setParameter("target","index.jsp");
+%>
+	<jsp:forward page="error.jsp"/>
+<%
+    }
+%>
+	    </form>
+       </td>
+      </tr>
+    </table>
+
+</body>
+
+</html>

Propchange: manifoldcf/branches/CONNECTORS-1119/framework/crawler-ui/src/main/webapp/listnotifications.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: manifoldcf/branches/CONNECTORS-1119/framework/crawler-ui/src/main/webapp/listnotifications.jsp
------------------------------------------------------------------------------
    svn:keywords = Id

Modified: manifoldcf/branches/CONNECTORS-1119/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_en_US.properties
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1119/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_en_US.properties?rev=1647107&r1=1647106&r2=1647107&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-1119/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_en_US.properties
(original)
+++ manifoldcf/branches/CONNECTORS-1119/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_en_US.properties
Sun Dec 21 08:27:57 2014
@@ -1018,3 +1018,19 @@ editnotification.SaveThisNotificationCon
 editnotification.ContinueToNextPage=Continue to next page
 editnotification.Cancel=Cancel
 editnotification.CancelNotificationConnectionEditing=Cancel notification connection editing
+
+listnotifications.ApacheManifoldCFListNotificationConnections=Apache ManifoldCF: List Notification
Connections
+listnotifications.DeleteNotificationConnection=Delete notification connection
+listnotifications.ListOfNotificationConnections=List of Notification Connections
+listnotifications.Name=Name
+listnotifications.Description=Description
+listnotifications.ConnectionType=Connection Type
+listnotifications.Max=Max
+listnotifications.uninstalled=(uninstalled)
+listnotifications.View=View
+listnotifications.Edit=Edit
+listnotifications.Delete=Delete
+listnotifications.AddANotificationConnection=Add a notification connection
+listnotifications.AddaNewNotificationConnection=Add a new notification connection
+listnotifications.DeleteNotificationConnection=Delete notification connection
+

Modified: manifoldcf/branches/CONNECTORS-1119/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_ja_JP.properties
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1119/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_ja_JP.properties?rev=1647107&r1=1647106&r2=1647107&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-1119/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_ja_JP.properties
(original)
+++ manifoldcf/branches/CONNECTORS-1119/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_ja_JP.properties
Sun Dec 21 08:27:57 2014
@@ -1019,3 +1019,18 @@ editnotification.SaveThisNotificationCon
 editnotification.ContinueToNextPage=Continue to next page
 editnotification.Cancel=Cancel
 editnotification.CancelNotificationConnectionEditing=Cancel notification connection editing
+
+listnotifications.ApacheManifoldCFListNotificationConnections=Apache ManifoldCF: List Notification
Connections
+listnotifications.DeleteNotificationConnection=Delete notification connection
+listnotifications.ListOfNotificationConnections=List of Notification Connections
+listnotifications.Name=Name
+listnotifications.Description=Description
+listnotifications.ConnectionType=Connection Type
+listnotifications.Max=Max
+listnotifications.uninstalled=(uninstalled)
+listnotifications.View=View
+listnotifications.Edit=Edit
+listnotifications.Delete=Delete
+listnotifications.AddANotificationConnection=Add a notification connection
+listnotifications.AddaNewNotificationConnection=Add a new notification connection
+listnotifications.DeleteNotificationConnection=Delete notification connection

Modified: manifoldcf/branches/CONNECTORS-1119/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_zh_CN.properties
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1119/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_zh_CN.properties?rev=1647107&r1=1647106&r2=1647107&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-1119/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_zh_CN.properties
(original)
+++ manifoldcf/branches/CONNECTORS-1119/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_zh_CN.properties
Sun Dec 21 08:27:57 2014
@@ -1019,3 +1019,18 @@ editnotification.SaveThisNotificationCon
 editnotification.ContinueToNextPage=Continue to next page
 editnotification.Cancel=Cancel
 editnotification.CancelNotificationConnectionEditing=Cancel notification connection editing
+
+listnotifications.ApacheManifoldCFListNotificationConnections=Apache ManifoldCF: List Notification
Connections
+listnotifications.DeleteNotificationConnection=Delete notification connection
+listnotifications.ListOfNotificationConnections=List of Notification Connections
+listnotifications.Name=Name
+listnotifications.Description=Description
+listnotifications.ConnectionType=Connection Type
+listnotifications.Max=Max
+listnotifications.uninstalled=(uninstalled)
+listnotifications.View=View
+listnotifications.Edit=Edit
+listnotifications.Delete=Delete
+listnotifications.AddANotificationConnection=Add a notification connection
+listnotifications.AddaNewNotificationConnection=Add a new notification connection
+listnotifications.DeleteNotificationConnection=Delete notification connection



Mime
View raw message