|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.sling.adapter.SlingAdaptable
com.day.cq.security.impl.CrxAuthorizable
com.day.cq.security.impl.CrxGroup
public class CrxGroup
Group,
UserManager| Field Summary |
|---|
| Fields inherited from class com.day.cq.security.impl.CrxAuthorizable |
|---|
log |
| Fields inherited from interface com.day.cq.security.Authorizable |
|---|
PROPERTY_DESCRIPTION, PROPERTY_EMAIL, PROPERTY_ID, PROPERTY_NAME, PROPERTY_PRINCIPAL |
| Method Summary | |
|---|---|
boolean |
addMember(Authorizable authorizable)
The implementation is no required to check for circular membership definition. |
String |
getID()
The ID is a unique identifier within the UserManager this User has been
acquired from.The following must be true: |
String |
getName()
A human readable Name. |
boolean |
isMember(Authorizable authorizable)
Checks if the given Authorizable is a member of the current Group. |
Iterator<Authorizable> |
members()
Return all Authorizables that are direct members of this Group. |
boolean |
removeMember(Authorizable authorizable)
|
| Methods inherited from class com.day.cq.security.impl.CrxAuthorizable |
|---|
adaptTo, equals, getEffectivePrivilege, getHomePath, getPrincipal, getPrivilege, getPrivileges, getProperty, getPropertyNames, grantPrivilege, hashCode, hasPermission, hasPermissionOn, isUser, memberOf, remove, removeProperty, revokePrivilege, setProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.day.cq.security.Authorizable |
|---|
getHomePath, getPrincipal, getPrivilege, getPrivileges, getProperty, getPropertyNames, grantPrivilege, hasPermission, hasPermissionOn, isUser, memberOf, remove, removeProperty, revokePrivilege, setProperty |
| Methods inherited from interface org.apache.sling.api.adapter.Adaptable |
|---|
adaptTo |
| Method Detail |
|---|
public String getID()
UserManager this User has been
acquired from.String id = "userId" User u = userManger.get(id); u.extractID().equals(id);
getID in interface AuthorizableUserManager.get(String)public String getName()
getName in interface Authorizablepublic boolean isMember(Authorizable authorizable)
isMember in interface Groupauthorizable - in question
true if the given authorizable is member of this group.public Iterator<Authorizable> members()
memberOf-method
contains this Group.
members in interface Grouppublic boolean addMember(Authorizable authorizable)
addMember in interface Groupauthorizable - to add as a Member
public boolean removeMember(Authorizable authorizable)
removeMember in interface Groupauthorizable - to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||