Class UserWrapper
- java.lang.Object
-
- com.composum.sling.core.usermanagement.service.AuthorizableWrapper
-
- com.composum.sling.core.usermanagement.service.UserWrapper
-
public class UserWrapper extends AuthorizableWrapper
User wrapper, Authorizable interface is not a ConsumerType and so should not be implemented. See OAK-10252
-
-
Constructor Summary
Constructors Constructor Description UserWrapper(org.apache.jackrabbit.api.security.user.User user)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
changePassword(String password)
void
changePassword(String password, String oldPassword)
void
disable(String reason)
javax.jcr.Credentials
getCredentials()
String
getDisabledReason()
org.apache.jackrabbit.api.security.user.Impersonation
getImpersonation()
boolean
isAdmin()
boolean
isDisabled()
boolean
isSystemUser()
-
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
-
isAdmin
public boolean isAdmin()
-
isSystemUser
public boolean isSystemUser()
-
getCredentials
public javax.jcr.Credentials getCredentials() throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
getImpersonation
public org.apache.jackrabbit.api.security.user.Impersonation getImpersonation() throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
changePassword
public void changePassword(String password) throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
changePassword
public void changePassword(String password, String oldPassword) throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
disable
public void disable(String reason) throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
isDisabled
public boolean isDisabled() throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
getDisabledReason
public String getDisabledReason() throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
-