You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@manifoldcf.apache.org by kw...@apache.org on 2015/07/05 12:08:54 UTC
svn commit: r1689228 - in /manifoldcf/branches/CONNECTORS-1131/framework:
crawler-ui/src/main/webapp/
ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/
Author: kwright
Date: Sun Jul 5 10:08:54 2015
New Revision: 1689228
URL: http://svn.apache.org/r1689228
Log:
Finish CONNECTORS-1131 work.
Modified:
manifoldcf/branches/CONNECTORS-1131/framework/crawler-ui/src/main/webapp/execute.jsp
manifoldcf/branches/CONNECTORS-1131/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_en_US.properties
manifoldcf/branches/CONNECTORS-1131/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_ja_JP.properties
manifoldcf/branches/CONNECTORS-1131/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_zh_CN.properties
Modified: manifoldcf/branches/CONNECTORS-1131/framework/crawler-ui/src/main/webapp/execute.jsp
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1131/framework/crawler-ui/src/main/webapp/execute.jsp?rev=1689228&r1=1689227&r2=1689228&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-1131/framework/crawler-ui/src/main/webapp/execute.jsp (original)
+++ manifoldcf/branches/CONNECTORS-1131/framework/crawler-ui/src/main/webapp/execute.jsp Sun Jul 5 10:08:54 2015
@@ -165,6 +165,14 @@
}
else if (op.equals("Save"))
{
+ // Check if authorized
+ if (!adminprofile.checkAllowed(threadContext,IAuthorizer.CAPABILITY_EDIT_CONNECTIONS))
+ {
+ variableContext.setParameter("target","listconnections.jsp");
+%>
+ <jsp:forward page="unauthorized.jsp"/>
+<%
+ }
connManager.save(connection);
variableContext.setParameter("connname",connectionName);
%>
@@ -280,11 +288,20 @@
{
threadContext.save("GroupObject",group);
%>
- <jsp:forward page="editgroup.jsp"/>
+ <jsp:forward page="editgroup.jsp"/>
<%
}
else if (op.equals("Save"))
{
+ // Check if authorized
+ if (!adminprofile.checkAllowed(threadContext,IAuthorizer.CAPABILITY_EDIT_CONNECTIONS))
+ {
+ variableContext.setParameter("target","listgroups.jsp");
+%>
+ <jsp:forward page="unauthorized.jsp"/>
+<%
+ }
+
authGroupManager.save(group);
variableContext.setParameter("groupname",groupName);
%>
@@ -415,6 +432,15 @@
}
else if (op.equals("Save"))
{
+ // Check if authorized
+ if (!adminprofile.checkAllowed(threadContext,IAuthorizer.CAPABILITY_EDIT_CONNECTIONS))
+ {
+ variableContext.setParameter("target","listauthorities.jsp");
+%>
+ <jsp:forward page="unauthorized.jsp"/>
+<%
+ }
+
authConnManager.save(connection);
variableContext.setParameter("connname",connectionName);
%>
@@ -538,6 +564,15 @@
}
else if (op.equals("Save"))
{
+ // Check if authorized
+ if (!adminprofile.checkAllowed(threadContext,IAuthorizer.CAPABILITY_EDIT_CONNECTIONS))
+ {
+ variableContext.setParameter("target","listmappers.jsp");
+%>
+ <jsp:forward page="unauthorized.jsp"/>
+<%
+ }
+
mappingConnManager.save(connection);
variableContext.setParameter("connname",connectionName);
%>
@@ -653,6 +688,15 @@
}
else if (op.equals("Save"))
{
+ // Check if authorized
+ if (!adminprofile.checkAllowed(threadContext,IAuthorizer.CAPABILITY_EDIT_CONNECTIONS))
+ {
+ variableContext.setParameter("target","listoutputs.jsp");
+%>
+ <jsp:forward page="unauthorized.jsp"/>
+<%
+ }
+
outputManager.save(connection);
variableContext.setParameter("connname",connectionName);
%>
@@ -812,6 +856,15 @@
}
else if (op.equals("Save"))
{
+ // Check if authorized
+ if (!adminprofile.checkAllowed(threadContext,IAuthorizer.CAPABILITY_EDIT_CONNECTIONS))
+ {
+ variableContext.setParameter("target","listtransformations.jsp");
+%>
+ <jsp:forward page="unauthorized.jsp"/>
+<%
+ }
+
transformationManager.save(connection);
variableContext.setParameter("connname",connectionName);
%>
@@ -927,6 +980,15 @@
}
else if (op.equals("Save"))
{
+ // Check if authorized
+ if (!adminprofile.checkAllowed(threadContext,IAuthorizer.CAPABILITY_EDIT_CONNECTIONS))
+ {
+ variableContext.setParameter("target","listnotifications.jsp");
+%>
+ <jsp:forward page="unauthorized.jsp"/>
+<%
+ }
+
notificationManager.save(connection);
variableContext.setParameter("connname",connectionName);
%>
@@ -1470,6 +1532,15 @@
}
else if (op.equals("Save"))
{
+ // Check if authorized
+ if (!adminprofile.checkAllowed(threadContext,IAuthorizer.CAPABILITY_EDIT_JOBS))
+ {
+ variableContext.setParameter("target","listjobs.jsp");
+%>
+ <jsp:forward page="unauthorized.jsp"/>
+<%
+ }
+
manager.save(job);
// Reset the job schedule. We may want to make this explicit at some point; having
// this happen all the time seems wrong.
Modified: manifoldcf/branches/CONNECTORS-1131/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_en_US.properties
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1131/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_en_US.properties?rev=1689228&r1=1689227&r2=1689228&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-1131/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_en_US.properties (original)
+++ manifoldcf/branches/CONNECTORS-1131/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_en_US.properties Sun Jul 5 10:08:54 2015
@@ -574,7 +574,6 @@ documentstatus.ExecuteThisQuery=Execute
documentstatus.Continue=Continue
documentstatus.PleaseSelectAtLeastOneJob=Please select at least one job
documentstatus.PleaseSelectaConnection=Please select a connection
-documentstatus.PleaseTryAgainLater=This page is unavailable due to maintenance operations. Please try again later.
documentstatus.Previous=Previous
documentstatus.Next=Next
documentstatus.Rows=Rows:
@@ -619,7 +618,6 @@ queuestatus.ExecuteThisQuery=Execute thi
queuestatus.Continue=Continue
queuestatus.PleaseSelectAtLeastOneJob=Please select at least one job
queuestatus.PleaseSelectaConnection=Please select a connection
-queuestatus.PleaseTryAgainLater=This page is unavailable due to maintenance operations. Please try again later.
queuestatus.DocumentsThatHaveNeverBeenProcessed=Documents that have never been processed
queuestatus.DocumentsProcessedAtLeastOnce=Documents processed at least once
queuestatus.DocumentsOutOfScope=Documents that are out of scope
@@ -695,7 +693,6 @@ simplereport.Next=Next
simplereport.Rows=Rows:
simplereport.RowsPerPage=Rows per page:
simplereport.PleaseSelectAConnection=Please select a connection
-simplereport.PleaseTryAgainLater=This page is unavailable due to maintenance operations. Please try again later.
simplereport.EnterALegalNumberForRowsPerPage=Enter a legal number for rows per page
simplereport.EntityMatchMustBeAValidRegularExpression=Entity match must be a valid regular expression
simplereport.ResultCodeMatchMustBeAValidRegularExpression=Result code match must be a valid regular expression
@@ -737,7 +734,6 @@ maxactivityreport.Next=Next
maxactivityreport.Rows=Rows:
maxactivityreport.RowsPerPage=Rows per page:
maxactivityreport.PleaseSelectAConnection=Please select a connection
-maxactivityreport.PleaseTryAgainLater=This page is unavailable due to maintenance operations. Please try again later.
maxactivityreport.EnterALegalNumberForRowsPerPage=Enter a legal number for rows per page
maxactivityreport.EnterALegalIntervalSizeInMinutes=Enter a legal interval size, in minutes
maxactivityreport.IdentifierClassDescriptionCannotBeEmpty=Identifier class description cannot be empty
@@ -782,7 +778,6 @@ maxbandwidthreport.NextPage=Next page
maxbandwidthreport.Next=Next
maxbandwidthreport.RowsPerPage=Rows per page:
maxbandwidthreport.PleaseSelectAConnection=Please select a connection
-maxbandwidthreport.PleaseTryAgainLater=This page is unavailable due to maintenance operations. Please try again later.
maxbandwidthreport.HighestBandwidth2=Highest Bandwith
maxbandwidthreport.Rows=Rows:
maxbandwidthreport.Next=Next
@@ -828,7 +823,6 @@ resultreport.Next=Next
resultreport.Rows=Rows:
resultreport.RowsPerPage=Rows per page:
resultreport.PleaseSelectAConnection=Please select a connection
-resultreport.PleaseTryAgainLater=This page is unavailable due to maintenance operations. Please try again later.
resultreport.IdentifierClass=Identifier Class
resultreport.ResultClass=Result Class
resultreport.EventCount=Event Count
Modified: manifoldcf/branches/CONNECTORS-1131/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_ja_JP.properties
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1131/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_ja_JP.properties?rev=1689228&r1=1689227&r2=1689228&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-1131/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_ja_JP.properties (original)
+++ manifoldcf/branches/CONNECTORS-1131/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_ja_JP.properties Sun Jul 5 10:08:54 2015
@@ -574,7 +574,6 @@ documentstatus.ExecuteThisQuery=ã¯ã
documentstatus.Continue=次ã¸
documentstatus.PleaseSelectAtLeastOneJob=ã¸ã§ããä¸ã¤ä»¥ä¸é¸æãã¦ãã ãã
documentstatus.PleaseSelectaConnection=ã³ãã¯ã·ã§ã³ãé¸æãã¦ãã ãã
-documentstatus.PleaseTryAgainLater=ä¿å®å¦çä¸ã§ããå°ã
ãå¾
ã¡ãã ããã
documentstatus.Previous=åã¸
documentstatus.Next=次ã¸
documentstatus.Rows=è¡ï¼
@@ -619,7 +618,6 @@ queuestatus.ExecuteThisQuery=ã¯ã�
queuestatus.Continue=次ã¸
queuestatus.PleaseSelectAtLeastOneJob=ã¸ã§ããä¸ã¤ä»¥ä¸é¸æãã¦ãã ãã
queuestatus.PleaseSelectaConnection=ã³ãã¯ã·ã§ã³ãé¸æãã¦ãã ãã
-queuestatus.PleaseTryAgainLater=ä¿å®å¦çä¸ã§ããå°ã
ãå¾
ã¡ãã ããã
queuestatus.DocumentsThatHaveNeverBeenProcessed=å¦çãä¸åº¦ãããã¦ããªãã³ã³ãã³ã
queuestatus.DocumentsProcessedAtLeastOnce=ï¼å以ä¸å¦çãããã³ã³ãã³ã
queuestatus.DocumentsOutOfScope=ç¯å²å¤ã§ããææ¸
@@ -695,7 +693,6 @@ simplereport.Next=次ã¸
simplereport.Rows=Rows:
simplereport.RowsPerPage=è¡ï¼ãã¼ã¸ï¼
simplereport.PleaseSelectAConnection=ã³ãã¯ã·ã§ã³ãé¸æãã¦ãã ãã
-simplereport.PleaseTryAgainLater=ä¿å®å¦çä¸ã§ããå°ã
ãå¾
ã¡ãã ããã
simplereport.EnterALegalNumberForRowsPerPage=æ£ãããã¼ã¸æ¯ã®è¡æ°ãå
¥åãã¦ãã ãã
simplereport.EntityMatchMustBeAValidRegularExpression=ã¨ã³ãã£ãã£ãã¿ã¼ã³ã¯æ£è¦è¡¨ç¾å¼ã«ä¸è´ããå¿
è¦ãããã¾ã
simplereport.ResultCodeMatchMustBeAValidRegularExpression=çµæã³ã¼ãã¯æ£è¦è¡¨ç¾å¼ã«ä¸è´ããå¿
è¦ãããã¾ã
@@ -737,7 +734,6 @@ maxactivityreport.Next=次ã¸
maxactivityreport.Rows=Rows:
maxactivityreport.RowsPerPage=è¡ï¼ãã¼ã¸ï¼
maxactivityreport.PleaseSelectAConnection=ã³ãã¯ã·ã§ã³ãé¸æãã¦ãã ãã
-maxactivityreport.PleaseTryAgainLater=ä¿å®å¦çä¸ã§ããå°ã
ãå¾
ã¡ãã ããã
maxactivityreport.EnterALegalNumberForRowsPerPage=æ£ãããã¼ã¸æ¯ã®è¡æ°ãå
¥åãã¦ãã ãã
maxactivityreport.EnterALegalIntervalSizeInMinutes=æ£ããééå¤ãå
¥åãã¦ãã ããï¼åï¼
maxactivityreport.IdentifierClassDescriptionCannotBeEmpty=IDã¯ã©ã¹ãã¿ã¼ã³ãå
¥åãã¦ãã ãã
@@ -783,7 +779,6 @@ maxbandwidthreport.NextPage=次ã®
maxbandwidthreport.Next=次ã¸
maxbandwidthreport.RowsPerPage=è¡ï¼ãã¼ã¸ï¼
maxbandwidthreport.PleaseSelectAConnection=ã³ãã¯ã·ã§ã³ãé¸æãã¦ãã ãã
-maxbandwidthreport.PleaseTryAgainLater=ä¿å®å¦çä¸ã§ããå°ã
ãå¾
ã¡ãã ããã
maxbandwidthreport.HighestBandwidth2=æ大ãã³ãå¹
maxbandwidthreport.Rows=è¡ï¼
maxbandwidthreport.Next=次ã¸
@@ -829,7 +824,6 @@ resultreport.Next=次ã¸
resultreport.Rows=è¡ï¼
resultreport.RowsPerPage=è¡ï¼ãã¼ã¸ï¼
resultreport.PleaseSelectAConnection=ã³ãã¯ã·ã§ã³ãé¸æãã¦ãã ãã
-resultreport.PleaseTryAgainLater=ä¿å®å¦çä¸ã§ããå°ã
ãå¾
ã¡ãã ããã
resultreport.IdentifierClass=IDã¯ã©ã¹
resultreport.ResultClass=çµæã¯ã©ã¹
resultreport.EventCount=ã¤ãã³ãæ°
Modified: manifoldcf/branches/CONNECTORS-1131/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_zh_CN.properties
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1131/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_zh_CN.properties?rev=1689228&r1=1689227&r2=1689228&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-1131/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_zh_CN.properties (original)
+++ manifoldcf/branches/CONNECTORS-1131/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_zh_CN.properties Sun Jul 5 10:08:54 2015
@@ -574,7 +574,6 @@ documentstatus.ExecuteThisQuery=æ§è
documentstatus.Continue=ä¸ä¸ä¸ª
documentstatus.PleaseSelectAtLeastOneJob=请éæ©è³å°ä¸ä¸ªä½ä¸
documentstatus.PleaseSelectaConnection=请éæ©ä¸ä¸ªè¿æ¥
-documentstatus.PleaseTryAgainLater=ç»´æ¤ä¸ã请ç¨çã
documentstatus.Previous=ä¸ä¸ä¸ª
documentstatus.Next=ä¸ä¸ä¸ª
documentstatus.Rows=è¡:
@@ -619,7 +618,6 @@ queuestatus.ExecuteThisQuery=æ§è¡�
queuestatus.Continue=ä¸ä¸ä¸ª
queuestatus.PleaseSelectAtLeastOneJob=请éæ©è³å°ä¸ä¸ªä½ä¸
queuestatus.PleaseSelectaConnection=请éæ©ä¸ä¸ªè¿æ¥
-queuestatus.PleaseTryAgainLater=ç»´æ¤ä¸ã请ç¨çã
queuestatus.DocumentsThatHaveNeverBeenProcessed=ä»æªå¤çè¿çææ¡£
queuestatus.DocumentsProcessedAtLeastOnce=è³å°å¤çè¿ä¸æ¬¡çææ¡£
queuestatus.DocumentsOutOfScope=èå´ä¹å¤çææ¡£
@@ -695,7 +693,6 @@ simplereport.Next=ä¸ä¸ä¸ª
simplereport.Rows=Rows:
simplereport.RowsPerPage=è¡ï¼é¡µ:
simplereport.PleaseSelectAConnection=请éæ©è¿æ¥
-simplereport.PleaseTryAgainLater=ç»´æ¤ä¸ã请ç¨çã
simplereport.EnterALegalNumberForRowsPerPage=请æ£ç¡®è¾å
¥æ¯é¡µçè¡æ°
simplereport.EntityMatchMustBeAValidRegularExpression=å®ä½å¹é
é为æææ£å表达å¼
simplereport.ResultCodeMatchMustBeAValidRegularExpression=ç»æ代ç é为æææ£å表达å¼
@@ -737,7 +734,6 @@ maxactivityreport.Next=ä¸ä¸ä¸�
maxactivityreport.Rows=Rows:
maxactivityreport.RowsPerPage=è¡ï¼é¡µ:
maxactivityreport.PleaseSelectAConnection=请éæ©è¿æ¥
-maxactivityreport.PleaseTryAgainLater=ç»´æ¤ä¸ã请ç¨çã
maxactivityreport.EnterALegalNumberForRowsPerPage=请æ£ç¡®è¾å
¥æ¯é¡µçè¡æ°
maxactivityreport.EnterALegalIntervalSizeInMinutes=请æ£ç¡®è¾å
¥é´é(å)
maxactivityreport.IdentifierClassDescriptionCannotBeEmpty=请è¾å
¥æ è¯ç¬¦ç±»è¯´æ
@@ -783,7 +779,6 @@ maxbandwidthreport.NextPage=ä¸ä¸
maxbandwidthreport.Next=ä¸ä¸ä¸ª
maxbandwidthreport.RowsPerPage=è¡ï¼é¡µ:
maxbandwidthreport.PleaseSelectAConnection=请éæ©è¿æ¥
-maxbandwidthreport.PleaseTryAgainLater=ç»´æ¤ä¸ã请ç¨çã
maxbandwidthreport.HighestBandwidth2=æ大带宽
maxbandwidthreport.Rows=è¡:
maxbandwidthreport.Next=ä¸ä¸é¡µ
@@ -829,7 +824,6 @@ resultreport.Next=ä¸ä¸ä¸ª
resultreport.Rows=è¡:
resultreport.RowsPerPage=è¡ï¼é¡µ:
resultreport.PleaseSelectAConnection=请éæ©è¿æ¥
-resultreport.PleaseTryAgainLater=ç»´æ¤ä¸ã请ç¨çã
resultreport.IdentifierClass=æ è¯ç¬¦ç±»
resultreport.ResultClass=ç»æç±»
resultreport.EventCount=äºä»¶æ°