org.apache.jackrabbit.core.security.principal
Class EveryonePrincipal

java.lang.Object
  extended by org.apache.jackrabbit.core.security.principal.EveryonePrincipal
All Implemented Interfaces:
Group, Principal, JackrabbitPrincipal

public final class EveryonePrincipal
extends Object
implements Group, JackrabbitPrincipal

The EveryonePrincipal contains all principals (excluding itself).


Field Summary
static String NAME
           
 
Method Summary
 boolean addMember(Principal user)
           
 boolean equals(Object obj)
           
static EveryonePrincipal getInstance()
           
 String getName()
           
 int hashCode()
           
 boolean isMember(Principal member)
           
 Enumeration<? extends Principal> members()
           
 boolean removeMember(Principal user)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.security.Principal
toString
 

Field Detail

NAME

public static final String NAME
See Also:
Constant Field Values
Method Detail

getInstance

public static EveryonePrincipal getInstance()

getName

public String getName()
Specified by:
getName in interface Principal

addMember

public boolean addMember(Principal user)
Specified by:
addMember in interface Group

removeMember

public boolean removeMember(Principal user)
Specified by:
removeMember in interface Group

isMember

public boolean isMember(Principal member)
Specified by:
isMember in interface Group

members

public Enumeration<? extends Principal> members()
Specified by:
members in interface Group

hashCode

public int hashCode()
Specified by:
hashCode in interface Principal
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Specified by:
equals in interface Principal
Overrides:
equals in class Object


Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.