manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1535585 - in /manifoldcf/branches/CONNECTORS-792/framework: crawler-ui/src/main/webapp/ ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/
Date Thu, 24 Oct 2013 23:28:00 GMT
Author: kwright
Date: Thu Oct 24 23:27:59 2013
New Revision: 1535585

URL: http://svn.apache.org/r1535585
Log:
Add navigation and group listing

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

Added: manifoldcf/branches/CONNECTORS-792/framework/crawler-ui/src/main/webapp/listgroups.jsp
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-792/framework/crawler-ui/src/main/webapp/listgroups.jsp?rev=1535585&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-792/framework/crawler-ui/src/main/webapp/listgroups.jsp
(added)
+++ manifoldcf/branches/CONNECTORS-792/framework/crawler-ui/src/main/webapp/listgroups.jsp
Thu Oct 24 23:27:59 2013
@@ -0,0 +1,129 @@
+<%@ 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"?>
+
+<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(),"listgroups.ApacheManifoldCFListAuthorityGroups")%>
+	</title>
+
+	<script type="text/javascript">
+	<!--
+
+	function Delete(groupName)
+	{
+		if (confirm("<%=Messages.getBodyJavascriptString(pageContext.getRequest().getLocale(),"listgroups.DeleteAuthorityGroup")%>
'"+groupName+"'?"))
+		{
+			document.listgroups.op.value="Delete";
+			document.listgroups.groupname.value=groupName;
+			document.listgroups.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(),"listgroups.ListOfAuthorityGroups")%></p>
+	<form class="standardform" name="listgroups" action="execute.jsp" method="POST">
+		<input type="hidden" name="op" value="Continue"/>
+		<input type="hidden" name="type" value="group"/>
+		<input type="hidden" name="groupname" value=""/>
+
+<%
+    try
+    {
+	// Get the authority group manager handle
+	IAuthorityGroupManager manager = AuthorityGroupManagerFactory.make(threadContext);
+	IAuthorityGroup[] groups = manager.getAllGroups();
+%>
+		<table class="datatable">
+			<tr>
+				<td class="separator" colspan="5"><hr/></td>
+			</tr>
+			<tr class="headerrow">
+				<td class="columnheader"></td>
+				<td class="columnheader"><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listgroups.Name")%></td>
+				<td class="columnheader"><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listgroups.Description")%></td>
+			</tr>
+<%
+	int i = 0;
+	while (i < groups.length)
+	{
+		IAuthorityGroup group = groups[i++];
+
+		String name = group.getName();
+		String description = group.getDescription();
+		if (description == null)
+			description = "";
+
+%>
+		<tr <%="class=\""+((i%2==0)?"evendatarow":"odddatarow")+"\""%>>
+			<td class="columncell">
+				<a href='<%="viewgroup.jsp?groupname="+java.net.URLEncoder.encode(name,"UTF-8")%>'
alt='<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listgroups.View")+"
"+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listgroups.View")%></a>&nbsp;<a
href='<%="editgroup.jsp?groupname="+java.net.URLEncoder.encode(name,"UTF-8")%>' alt='<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listgroups.Edit")+"
"+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listgroups.Edit")%></a>&nbsp;<a
href="javascript:void()" onclick='<%="javascript:Delete(\""+org.apache.manifoldcf.ui.util.Encoder.attributeJavascriptEscape(name)+"\")"%>'
alt='<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listgroups.Delete")+"
"+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'><%=Messages.getBodyS
 tring(pageContext.getRequest().getLocale(),"listgroups.Delete")%></a>
+			</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>
+		</tr>
+<%
+	}
+%>
+			<tr>
+				<td class="separator" colspan="5"><hr/></td>
+			</tr>
+			<tr><td class="message" colspan="5"><a href="editgroup.jsp" alt="<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listgroups.AddNewGroup")%>"><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listgroups.AddaNewGroup")%></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-792/framework/crawler-ui/src/main/webapp/listgroups.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

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

Modified: manifoldcf/branches/CONNECTORS-792/framework/crawler-ui/src/main/webapp/navigation.jsp
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-792/framework/crawler-ui/src/main/webapp/navigation.jsp?rev=1535585&r1=1535584&r2=1535585&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-792/framework/crawler-ui/src/main/webapp/navigation.jsp
(original)
+++ manifoldcf/branches/CONNECTORS-792/framework/crawler-ui/src/main/webapp/navigation.jsp
Thu Oct 24 23:27:59 2013
@@ -34,15 +34,11 @@
 		<nobr><a class="menulink" href="listoutputs.jsp" alt="<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"navigation.Listoutputconnections")%>"><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"navigation.ListOutputConnections")%></a></nobr>
 	</li>
 </ul>
-<p class="menumain"><nobr><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"navigation.UserMappings")%></nobr></p>
-<ul class="menusecond">
-	<li class="menuitem">
-		<nobr><a class="menulink" href="listmappers.jsp" alt="<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"navigation.Listusermappings")%>"><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"navigation.ListUserMappings")%></a></nobr>
-	</li>
-</ul>
 <p class="menumain"><nobr><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"navigation.Authorities")%></nobr></p>
 <ul class="menusecond">
 	<li class="menuitem">
+		<nobr><a class="menulink" href="listmappers.jsp" alt="<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"navigation.Listusermappings")%>"><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"navigation.ListUserMappings")%></a></nobr>
+		<nobr><a class="menulink" href="listgroups.jsp" alt="<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"navigation.Listauthoritygroups")%>"><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"navigation.ListAuthorityGroups")%></a></nobr>
 		<nobr><a class="menulink" href="listauthorities.jsp" alt="<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"navigation.Listauthorities")%>"><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"navigation.ListAuthorityConnections")%></a></nobr>
 	</li>
 </ul>

Modified: manifoldcf/branches/CONNECTORS-792/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_en_US.properties
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-792/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_en_US.properties?rev=1535585&r1=1535584&r2=1535585&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-792/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_en_US.properties
(original)
+++ manifoldcf/branches/CONNECTORS-792/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_en_US.properties
Thu Oct 24 23:27:59 2013
@@ -45,10 +45,10 @@ banner.DocumentIngestion=Document Ingest
 navigation.LogOut=Log Out
 navigation.Outputs=Outputs
 navigation.ListOutputConnections=List Output Connections
-navigation.UserMappings=User Mappings
-navigation.ListUserMappings=List User Mapping Connections
 navigation.Authorities=Authorities
+navigation.ListUserMappings=List User Mapping Connections
 navigation.ListAuthorityConnections=List Authority Connections
+navigation.ListAuthorityGroups=List Authority Groups
 navigation.Repositories=Repositories
 navigation.ListRepositoryConnections=List Repository Connections
 navigation.Jobs=Jobs
@@ -69,6 +69,7 @@ navigation.Listoutputconnections=List ou
 navigation.Listrepositoryconnections=List repository connections
 navigation.Listusermappings=List user mapping connections
 navigation.Listauthorities=List authorities
+navigation.Listauthoritygroups=List authority groups
 navigation.Listjobs=List jobs
 navigation.Managejobs=Manage jobs
 navigation.Documentstatus=Document status
@@ -135,6 +136,17 @@ viewoutput.uninstalled=(uninstalled)
 viewoutput.Connectorisnotinstalled=Connector is not installed.
 viewoutput.Threwexception=Threw exception:
 
+listgroups.ApacheManifoldCFListAuthorityGroups=Apache ManifoldCF: List Authority Groups
+listgroups.DeleteAuthorityGroup=Delete authority group
+listgroups.ListOfAuthorityGroups=List of Authority Groups
+listgroups.Name=Name
+listgroups.Description=Description
+listgroups.View=View
+listgroups.Edit=Edit
+listgroups.Delete=Delete
+listgroups.AddNewGroup=Add a new group
+listgroups.AddaNewGroup=Add a new group
+
 listauthorities.ApacheManifoldCFListAuthorities=Apache ManifoldCF: List Authorities
 listauthorities.ListOfAuthorityConnections=List of Authority Connections
 listauthorities.DeleteAuthority=Delete authority

Modified: manifoldcf/branches/CONNECTORS-792/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_ja_JP.properties
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-792/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_ja_JP.properties?rev=1535585&r1=1535584&r2=1535585&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-792/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_ja_JP.properties
(original)
+++ manifoldcf/branches/CONNECTORS-792/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_ja_JP.properties
Thu Oct 24 23:27:59 2013
@@ -45,10 +45,10 @@ banner.DocumentIngestion=コンã�
 navigation.LogOut=ログアウト
 navigation.Outputs=出力
 navigation.ListOutputConnections=出力コネクション一覧
-navigation.UserMappings=ユーザーマッピング
-navigation.ListUserMappings=ユーザーマッピングコネクション一覧
 navigation.Authorities=権限
+navigation.ListUserMappings=ユーザーマッピングコネクション一覧
 navigation.ListAuthorityConnections=権限コネクション一覧
+navigation.ListAuthorityGroups=List Authority Groups
 navigation.Repositories=リポジトリ
 navigation.ListRepositoryConnections=リポジトリコネクション一覧
 navigation.Jobs=ジョブ
@@ -69,6 +69,7 @@ navigation.Listrepositoryconnections=ã�
 navigation.Listoutputconnections=出力コネクション一覧
 navigation.Listusermappings=ユーザーマッピングコネクション一覧
 navigation.Listauthorities=権限一覧
+navigation.Listauthoritygroups=List authority groups
 navigation.Listjobs=ジョブ一覧
 navigation.Managejobs=ジョブ管理
 navigation.Documentstatus=コンテンツの状態
@@ -135,6 +136,17 @@ viewoutput.uninstalled=(アãƒ�
 viewoutput.Connectorisnotinstalled=コネクターがインストールされていません
 viewoutput.Threwexception=例外がスローされました:
 
+listgroups.ApacheManifoldCFListAuthorityGroups=Apache ManifoldCF: List Authority Groups
+listgroups.DeleteAuthorityGroup=Delete authority group
+listgroups.ListOfAuthorityGroups=List of Authority Groups
+listgroups.Name=Name
+listgroups.Description=Description
+listgroups.View=View
+listgroups.Edit=Edit
+listgroups.Delete=Delete
+listgroups.AddNewGroup=Add a new group
+listgroups.AddaNewGroup=Add a new group
+
 listauthorities.ApacheManifoldCFListAuthorities=Apache ManifoldCF:権限一覧
 listauthorities.ListOfAuthorityConnections=権限コネクション一覧
 listauthorities.DeleteAuthority=権限を削除



Mime
View raw message