svn commit: r566248 - /lenya/trunk/src/modules-core/ac/java/src/org/apache/lenya/cms/ac/DocumentPolicyManagerWrapper.java

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: andreas
Date: Wed Aug 15 09:30:23 2007
New Revision: 566248

URL: http://svn.apache.org/viewvc?view=rev&rev=566248
Log:
Refactoring, better code readability in document policy manager wrapper

Modified:
    lenya/trunk/src/modules-core/ac/java/src/org/apache/lenya/cms/ac/DocumentPolicyManagerWrapper.java

Modified: lenya/trunk/src/modules-core/ac/java/src/org/apache/lenya/cms/ac/DocumentPolicyManagerWrapper.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules-core/ac/java/src/org/apache/lenya/cms/ac/DocumentPolicyManagerWrapper.java?view=diff&rev=566248&r1=566247&r2=566248
==============================================================================
--- lenya/trunk/src/modules-core/ac/java/src/org/apache/lenya/cms/ac/DocumentPolicyManagerWrapper.java (original)
+++ lenya/trunk/src/modules-core/ac/java/src/org/apache/lenya/cms/ac/DocumentPolicyManagerWrapper.java Wed Aug 15 09:30:23 2007
@@ -71,12 +71,22 @@
 
     /**
      * Returns the URI which is used to obtain the policy for a webapp URL.
-     * @param controller The accreditable manager.
-     * @param webappUrl The webapp URL.
+     * @param webappUrl The web application URL.
      * @return A string.
      * @throws AccessControlException when something went wrong.
      */
     protected String getPolicyURL(String webappUrl)
+            throws AccessControlException {
+        return getPolicyUrlCorrect(webappUrl);
+    }
+    
+    /**
+     * Returns the URI which is used to obtain the policy for a webapp URL.
+     * @param webappUrl The web application URL.
+     * @return A string.
+     * @throws AccessControlException when something went wrong.
+     */
+    protected String getPolicyUrlCorrect(String webappUrl)
             throws AccessControlException {
 
         if (getLogger().isDebugEnabled()) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.