Class EveryonePrincipal
java.lang.Object
org.apache.jackrabbit.oak.spi.security.principal.EveryonePrincipal
- All Implemented Interfaces:
Principal,GroupPrincipal,JackrabbitPrincipal
Built-in principal group that has every other principal as member.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic EveryonePrincipalgetName()inthashCode()booleanReturns true if the passed principal is a member of the group.@NotNull Enumeration<? extends Principal> members()Returns an enumeration of the members in the group.toString()
-
Field Details
-
NAME
- See Also:
-
-
Method Details
-
getInstance
-
getName
-
isMember
Description copied from interface:GroupPrincipalReturns true if the passed principal is a member of the group. This method does a recursive search, so if a principal belongs to a group which is a member of this group, true is returned.- Specified by:
isMemberin interfaceGroupPrincipal- Parameters:
member- the principal whose membership is to be checked.- Returns:
- true if the principal is a member of this group, false otherwise.
-
members
Description copied from interface:GroupPrincipalReturns an enumeration of the members in the group. This includes both declared members and all principals that are indirect group members. The returned objects can be instances of either Principal or GroupPrincipal (which is a subclass of Principal).- Specified by:
membersin interfaceGroupPrincipal- Returns:
- an enumeration of the group members.
-
hashCode
public int hashCode() -
equals
-
toString
-