You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by ch...@apache.org on 2006/06/27 09:43:07 UTC

svn commit: r417363 - /lenya/trunk/src/modules-core/usecase-impl/java/src/org/apache/lenya/cms/ac/usecase/UsecaseAuthorizerImpl.java

Author: chestnut
Date: Tue Jun 27 00:43:07 2006
New Revision: 417363

URL: http://svn.apache.org/viewvc?rev=417363&view=rev
Log:
remove junk I didn't mean to commit

Modified:
    lenya/trunk/src/modules-core/usecase-impl/java/src/org/apache/lenya/cms/ac/usecase/UsecaseAuthorizerImpl.java

Modified: lenya/trunk/src/modules-core/usecase-impl/java/src/org/apache/lenya/cms/ac/usecase/UsecaseAuthorizerImpl.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules-core/usecase-impl/java/src/org/apache/lenya/cms/ac/usecase/UsecaseAuthorizerImpl.java?rev=417363&r1=417362&r2=417363&view=diff
==============================================================================
--- lenya/trunk/src/modules-core/usecase-impl/java/src/org/apache/lenya/cms/ac/usecase/UsecaseAuthorizerImpl.java (original)
+++ lenya/trunk/src/modules-core/usecase-impl/java/src/org/apache/lenya/cms/ac/usecase/UsecaseAuthorizerImpl.java Tue Jun 27 00:43:07 2006
@@ -200,7 +200,6 @@
         }
     }
 
-    protected static String CONFIGURATION_FILE = null;
     protected static final String PARAMETER_CONFIGURATION = "configuration";
 
     /**
@@ -242,9 +241,6 @@
     }
 
     protected static final String AC_CONFIGURATION_FILE = "config/ac/ac.xconf".replace('/', File.separatorChar);
-    protected static final String AUTHORIZER_ELEMENT = "authorizer"; 
-    protected static final String TYPE_ATTRIBUTE = "type";
-    protected static final String USECASE_TYPE = "usecase";
     
     /**
      * Retrieves access control configuration of a specific publication.
@@ -258,12 +254,6 @@
         if (configurationFile.isFile()) {
             try {
                 Configuration configuration = new DefaultConfigurationBuilder().buildFromFile(configurationFile);
-                Configuration[] authorizers = configuration.getChildren(AUTHORIZER_ELEMENT);
-                for (int i = 0; i < authorizers.length; i++) {
-                    if (authorizers[i].getAttribute(TYPE_ATTRIBUTE) == USECASE_TYPE) {
-                        this.CONFIGURATION_FILE = authorizers[i].getValue();
-                    }
-                }
                 return configuration;
             } catch (Exception e) {
                 throw new AccessControlException(e);



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org