Class GroupFacade
- java.lang.Object
-
- com.composum.sling.core.usermanagement.service.AuthorizableWrapper
-
- com.composum.sling.core.usermanagement.service.GroupWrapper
-
- com.composum.sling.core.usermanagement.service.GroupFacade
-
public class GroupFacade extends GroupWrapper
represents an authorizable as a group; used to construct a service user as a member of the assigned system users
-
-
Field Summary
Fields Modifier and Type Field Description protected AuthorizableWrapper
delegate
protected ServiceUserWrapper
serviceUser
-
Constructor Summary
Constructors Constructor Description GroupFacade(@NotNull AuthorizableWrapper delegate, @NotNull ServiceUserWrapper serviceUser)
-
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<GroupWrapper>
declaredMemberOf()
Iterator<AuthorizableWrapper>
getDeclaredMembers()
String
getID()
Iterator<AuthorizableWrapper>
getMembers()
String
getPath()
Principal
getPrincipal()
javax.jcr.Value[]
getProperty(String relPath)
Iterator<String>
getPropertyNames()
Iterator<String>
getPropertyNames(String relPath)
boolean
hasProperty(String relPath)
boolean
isDeclaredMember(org.apache.jackrabbit.api.security.user.Authorizable authorizable)
boolean
isGroup()
boolean
isMember(org.apache.jackrabbit.api.security.user.Authorizable authorizable)
Iterator<GroupWrapper>
memberOf()
void
remove()
boolean
removeMember(org.apache.jackrabbit.api.security.user.Authorizable authorizable)
Set<String>
removeMembers(@NotNull String... memberIds)
boolean
removeProperty(String relPath)
void
setProperty(String relPath, javax.jcr.Value value)
void
setProperty(String relPath, javax.jcr.Value[] value)
-
Methods inherited from class com.composum.sling.core.usermanagement.service.AuthorizableWrapper
getAuthorizable, getAuthorizableWrapperIterator, getGroupWrapperIterator
-
-
-
-
Field Detail
-
delegate
protected final AuthorizableWrapper delegate
-
serviceUser
protected final ServiceUserWrapper serviceUser
-
-
Constructor Detail
-
GroupFacade
public GroupFacade(@NotNull @NotNull AuthorizableWrapper delegate, @NotNull @NotNull ServiceUserWrapper serviceUser)
-
-
Method Detail
-
getDeclaredMembers
public Iterator<AuthorizableWrapper> getDeclaredMembers() throws javax.jcr.RepositoryException
- Overrides:
getDeclaredMembers
in classGroupWrapper
- Throws:
javax.jcr.RepositoryException
-
getMembers
public Iterator<AuthorizableWrapper> getMembers() throws javax.jcr.RepositoryException
- Overrides:
getMembers
in classGroupWrapper
- Throws:
javax.jcr.RepositoryException
-
isDeclaredMember
public boolean isDeclaredMember(org.apache.jackrabbit.api.security.user.Authorizable authorizable) throws javax.jcr.RepositoryException
- Overrides:
isDeclaredMember
in classGroupWrapper
- Throws:
javax.jcr.RepositoryException
-
isMember
public boolean isMember(org.apache.jackrabbit.api.security.user.Authorizable authorizable) throws javax.jcr.RepositoryException
- Overrides:
isMember
in classGroupWrapper
- Throws:
javax.jcr.RepositoryException
-
addMember
public boolean addMember(org.apache.jackrabbit.api.security.user.Authorizable authorizable) throws javax.jcr.RepositoryException
- Overrides:
addMember
in classGroupWrapper
- Throws:
javax.jcr.RepositoryException
-
addMembers
public Set<String> addMembers(@NotNull @NotNull String... memberIds) throws javax.jcr.RepositoryException
- Overrides:
addMembers
in classGroupWrapper
- Throws:
javax.jcr.RepositoryException
-
removeMember
public boolean removeMember(org.apache.jackrabbit.api.security.user.Authorizable authorizable) throws javax.jcr.RepositoryException
- Overrides:
removeMember
in classGroupWrapper
- Throws:
javax.jcr.RepositoryException
-
removeMembers
public Set<String> removeMembers(@NotNull @NotNull String... memberIds) throws javax.jcr.RepositoryException
- Overrides:
removeMembers
in classGroupWrapper
- Throws:
javax.jcr.RepositoryException
-
getID
public String getID() throws javax.jcr.RepositoryException
- Overrides:
getID
in classAuthorizableWrapper
- Throws:
javax.jcr.RepositoryException
-
isGroup
public boolean isGroup()
- Overrides:
isGroup
in classAuthorizableWrapper
-
getPrincipal
public Principal getPrincipal() throws javax.jcr.RepositoryException
- Overrides:
getPrincipal
in classAuthorizableWrapper
- Throws:
javax.jcr.RepositoryException
-
declaredMemberOf
public Iterator<GroupWrapper> declaredMemberOf() throws javax.jcr.RepositoryException
- Overrides:
declaredMemberOf
in classAuthorizableWrapper
- Throws:
javax.jcr.RepositoryException
-
memberOf
public Iterator<GroupWrapper> memberOf() throws javax.jcr.RepositoryException
- Overrides:
memberOf
in classAuthorizableWrapper
- Throws:
javax.jcr.RepositoryException
-
remove
public void remove() throws javax.jcr.RepositoryException
- Overrides:
remove
in classAuthorizableWrapper
- Throws:
javax.jcr.RepositoryException
-
getPropertyNames
public Iterator<String> getPropertyNames() throws javax.jcr.RepositoryException
- Overrides:
getPropertyNames
in classAuthorizableWrapper
- Throws:
javax.jcr.RepositoryException
-
getPropertyNames
public Iterator<String> getPropertyNames(String relPath) throws javax.jcr.RepositoryException
- Overrides:
getPropertyNames
in classAuthorizableWrapper
- Throws:
javax.jcr.RepositoryException
-
hasProperty
public boolean hasProperty(String relPath) throws javax.jcr.RepositoryException
- Overrides:
hasProperty
in classAuthorizableWrapper
- Throws:
javax.jcr.RepositoryException
-
setProperty
public void setProperty(String relPath, javax.jcr.Value value) throws javax.jcr.RepositoryException
- Overrides:
setProperty
in classAuthorizableWrapper
- Throws:
javax.jcr.RepositoryException
-
setProperty
public void setProperty(String relPath, javax.jcr.Value[] value) throws javax.jcr.RepositoryException
- Overrides:
setProperty
in classAuthorizableWrapper
- Throws:
javax.jcr.RepositoryException
-
getProperty
public javax.jcr.Value[] getProperty(String relPath) throws javax.jcr.RepositoryException
- Overrides:
getProperty
in classAuthorizableWrapper
- Throws:
javax.jcr.RepositoryException
-
removeProperty
public boolean removeProperty(String relPath) throws javax.jcr.RepositoryException
- Overrides:
removeProperty
in classAuthorizableWrapper
- Throws:
javax.jcr.RepositoryException
-
getPath
public String getPath() throws javax.jcr.RepositoryException
- Overrides:
getPath
in classAuthorizableWrapper
- Throws:
javax.jcr.RepositoryException
-
-