You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2003/10/02 17:30:30 UTC

cvs commit: cocoon-lenya/src/java/org/apache/lenya/cms/ac2 DefaultPolicy.java

andreas     2003/10/02 08:30:30

  Modified:    src/java/org/apache/lenya/cms/ac2 DefaultPolicy.java
  Log:
  added isEmpty() method
  
  Revision  Changes    Path
  1.6       +8 -1      cocoon-lenya/src/java/org/apache/lenya/cms/ac2/DefaultPolicy.java
  
  Index: DefaultPolicy.java
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/cms/ac2/DefaultPolicy.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- DefaultPolicy.java	7 Aug 2003 10:23:27 -0000	1.5
  +++ DefaultPolicy.java	2 Oct 2003 15:30:30 -0000	1.6
  @@ -187,5 +187,12 @@
       public void setSSL(boolean ssl) {
           this.isSSL = ssl;
       }
  +
  +    /**
  +     * @see org.apache.lenya.cms.ac2.Policy#isEmpty()
  +     */
  +    public boolean isEmpty() throws AccessControlException {
  +        return getCredentials().length == 0;
  +    }
       
   }
  
  
  

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