Class AuthorizableWrapper
- java.lang.Object
-
- com.composum.sling.core.usermanagement.service.AuthorizableWrapper
-
- Direct Known Subclasses:
GroupWrapper,ServiceUserWrapper,UserWrapper
public class AuthorizableWrapper extends Object
Authorizable wrapper, Authorizable interface is not a ConsumerType and so should not be implemented. See OAK-10252
-
-
Constructor Summary
Constructors Constructor Description AuthorizableWrapper(org.apache.jackrabbit.api.security.user.Authorizable authorizable)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterator<GroupWrapper>declaredMemberOf()org.apache.jackrabbit.api.security.user.AuthorizablegetAuthorizable()protected static @NotNull Iterator<AuthorizableWrapper>getAuthorizableWrapperIterator(Iterator<org.apache.jackrabbit.api.security.user.Authorizable> jcrAuthorizableIterator)protected static @NotNull Iterator<GroupWrapper>getGroupWrapperIterator(Iterator<org.apache.jackrabbit.api.security.user.Group> jcrGroupIterator)StringgetID()StringgetPath()PrincipalgetPrincipal()javax.jcr.Value[]getProperty(String relPath)Iterator<String>getPropertyNames()Iterator<String>getPropertyNames(String relPath)booleanhasProperty(String relPath)booleanisGroup()Iterator<GroupWrapper>memberOf()voidremove()booleanremoveProperty(String relPath)voidsetProperty(String relPath, javax.jcr.Value value)voidsetProperty(String relPath, javax.jcr.Value[] value)
-
-
-
Method Detail
-
getID
public String getID() throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
isGroup
public boolean isGroup()
-
getPrincipal
public Principal getPrincipal() throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
declaredMemberOf
public Iterator<GroupWrapper> declaredMemberOf() throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
memberOf
public Iterator<GroupWrapper> memberOf() throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
remove
public void remove() throws javax.jcr.RepositoryException- Throws:
javax.jcr.RepositoryException
-
getPropertyNames
public Iterator<String> getPropertyNames() throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
getPropertyNames
public Iterator<String> getPropertyNames(String relPath) throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
hasProperty
public boolean hasProperty(String relPath) throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
setProperty
public void setProperty(String relPath, javax.jcr.Value value) throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
setProperty
public void setProperty(String relPath, javax.jcr.Value[] value) throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
getProperty
public javax.jcr.Value[] getProperty(String relPath) throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
removeProperty
public boolean removeProperty(String relPath) throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
getPath
public String getPath() throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException
- Throws:
javax.jcr.UnsupportedRepositoryOperationExceptionjavax.jcr.RepositoryException
-
getGroupWrapperIterator
@NotNull protected static @NotNull Iterator<GroupWrapper> getGroupWrapperIterator(Iterator<org.apache.jackrabbit.api.security.user.Group> jcrGroupIterator)
-
getAuthorizableWrapperIterator
@NotNull protected static @NotNull Iterator<AuthorizableWrapper> getAuthorizableWrapperIterator(Iterator<org.apache.jackrabbit.api.security.user.Authorizable> jcrAuthorizableIterator)
-
getAuthorizable
public org.apache.jackrabbit.api.security.user.Authorizable getAuthorizable()
-
-