Package com.day.cq.security
Interface Group
-
- All Superinterfaces:
Adaptable
,Authorizable
public interface Group extends Authorizable
Deprecated.cq 5.5 Use org.apache.jackrabbit.api.security.user.Group instead.A Group is a Set of Authorizables. They are a method to specify a single authorization to multiple Authorizables at once.- See Also:
Authorizable
-
-
Field Summary
-
Fields inherited from interface com.day.cq.security.Authorizable
PROPERTY_DESCRIPTION, PROPERTY_EMAIL, PROPERTY_FIRST_NAME, PROPERTY_ID, PROPERTY_IMPERSONATORS, PROPERTY_LAST_NAME, PROPERTY_NAME, PROPERTY_PASSWORD, PROPERTY_PRINCIPAL
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
addMember(Authorizable authorizable)
Deprecated.The implementation is no required to check for circular membership definition.boolean
isMember(Authorizable authorizable)
Deprecated.Checks if the given Authorizable is a member of the current Group.java.util.Iterator<Authorizable>
members()
Deprecated.Return all Authorizables that are direct members of this Group.boolean
removeMember(Authorizable authorizable)
Deprecated.-
Methods inherited from interface com.day.cq.security.Authorizable
getHomePath, getID, getName, getPrincipal, getPrivilege, getPrivileges, getProfile, getProperty, getPropertyNames, grantPrivilege, hasPermission, hasPermissionOn, isUser, memberOf, remove, removeProperty, revokePrivilege, setProperty
-
-
-
-
Method Detail
-
isMember
boolean isMember(Authorizable authorizable)
Deprecated.Checks if the given Authorizable is a member of the current Group. This check will validate to true for transitive group membership. Example: if Authorizable A is a direct member of Group G2 and G2 is a direct member of Group G1, than G1.isMember(A) == true. But G1.remove(A) == false as A only can be removed from G2- Parameters:
authorizable
- in question- Returns:
true
if the given authorizable is member of this group.
-
members
java.util.Iterator<Authorizable> members()
Deprecated.Return all Authorizables that are direct members of this Group. No transitive membership is contained, thus a call to each returned AuthorizablesmemberOf-method
contains this Group.- Returns:
- Iterator containing all direct Members of this Group
-
addMember
boolean addMember(Authorizable authorizable)
Deprecated.The implementation is no required to check for circular membership definition.- Parameters:
authorizable
- to add as a Member- Returns:
- true if the Authorizable has not been contained beforehand
-
removeMember
boolean removeMember(Authorizable authorizable)
Deprecated.- Parameters:
authorizable
- to remove- Returns:
- true if the Authorizable has been member before
-
-