Class GroupWrapper
- java.lang.Object
-
- com.composum.sling.core.usermanagement.service.AuthorizableWrapper
-
- com.composum.sling.core.usermanagement.service.GroupWrapper
-
- Direct Known Subclasses:
GroupFacade
public class GroupWrapper extends AuthorizableWrapper
Group wrapper, Authorizable interface is not a ConsumerType and so should not be implemented. See OAK-10252
-
-
Constructor Summary
Constructors Constructor Description GroupWrapper(org.apache.jackrabbit.api.security.user.Group group)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addMember(org.apache.jackrabbit.api.security.user.Authorizable authorizable)
Set<String>
addMembers(@NotNull String... memberIds)
Iterator<AuthorizableWrapper>
getDeclaredMembers()
Iterator<AuthorizableWrapper>
getMembers()
boolean
isDeclaredMember(org.apache.jackrabbit.api.security.user.Authorizable authorizable)
boolean
isMember(org.apache.jackrabbit.api.security.user.Authorizable authorizable)
boolean
removeMember(org.apache.jackrabbit.api.security.user.Authorizable authorizable)
Set<String>
removeMembers(@NotNull String... memberIds)
-
Methods inherited from class com.composum.sling.core.usermanagement.service.AuthorizableWrapper
declaredMemberOf, getAuthorizable, getAuthorizableWrapperIterator, getGroupWrapperIterator, getID, getPath, getPrincipal, getProperty, getPropertyNames, getPropertyNames, hasProperty, isGroup, memberOf, remove, removeProperty, setProperty, setProperty
-
-
-
-
Method Detail
-
getDeclaredMembers
public Iterator<AuthorizableWrapper> getDeclaredMembers() throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
getMembers
public Iterator<AuthorizableWrapper> getMembers() throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
isDeclaredMember
public boolean isDeclaredMember(org.apache.jackrabbit.api.security.user.Authorizable authorizable) throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
isMember
public boolean isMember(org.apache.jackrabbit.api.security.user.Authorizable authorizable) throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
addMember
public boolean addMember(org.apache.jackrabbit.api.security.user.Authorizable authorizable) throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
addMembers
public Set<String> addMembers(@NotNull @NotNull String... memberIds) throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
removeMember
public boolean removeMember(org.apache.jackrabbit.api.security.user.Authorizable authorizable) throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
-