public class UserImpl extends Object implements User
Modifier and Type | Field and Description |
---|---|
static String |
AUTHORIZABLES_PATH |
static String |
GROUP_ADMIN_GROUP_NAME
Configuration key and default value for the the name of the
'GroupAdmin' group-principal
|
static String |
GROUPS_PATH |
static Name |
MIX_REP_IMPERSONATABLE |
static Name |
N_MEMBERS |
static NameFactory |
NF |
static Name |
NT_REP_AUTHORIZABLE |
static Name |
NT_REP_AUTHORIZABLE_FOLDER |
static Name |
NT_REP_GROUP |
static Name |
NT_REP_MEMBERS |
static Name |
NT_REP_USER |
static Name |
P_DISABLED |
static Name |
P_GROUPS
Deprecated.
As of 2.0 group membership is stored with the group node.
|
static Name |
P_IMPERSONATORS
Name of the user property containing the principal names of those allowed
to impersonate.
|
static Name |
P_MEMBERS |
static Name |
P_PASSWORD |
static Name |
P_PRINCIPAL_NAME |
static Name |
P_USERID
Deprecated.
As of 2.0 the id-hash is stored with the jcr:uuid making the
rep:userId property redundant. It has been removed from the node type
definition.
|
static String |
SECURITY_ROOT_PATH
root-path to security related content e.g.
|
static String |
USER_ADMIN_GROUP_NAME
Configuration key and default value for the the name of the
'UserAdmin' group-principal.
|
static String |
USERS_PATH |
Modifier | Constructor and Description |
---|---|
protected |
UserImpl(NodeImpl node,
UserManagerImpl userManager) |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
declaredMemberOf, getID, getPath, getProperty, getPropertyNames, getPropertyNames, hasProperty, memberOf, remove, removeProperty, setProperty, setProperty
public static final NameFactory NF
public static final String SECURITY_ROOT_PATH
public static final String AUTHORIZABLES_PATH
public static final String USERS_PATH
public static final String GROUPS_PATH
public static final String USER_ADMIN_GROUP_NAME
public static final String GROUP_ADMIN_GROUP_NAME
public static final Name P_PRINCIPAL_NAME
public static final Name P_USERID
public static final Name P_PASSWORD
public static final Name P_DISABLED
public static final Name P_GROUPS
P_MEMBERS
public static final Name P_MEMBERS
public static final Name N_MEMBERS
public static final Name P_IMPERSONATORS
public static final Name NT_REP_AUTHORIZABLE
public static final Name NT_REP_AUTHORIZABLE_FOLDER
public static final Name NT_REP_USER
public static final Name NT_REP_GROUP
public static final Name NT_REP_MEMBERS
public static final Name MIX_REP_IMPERSONATABLE
protected UserImpl(NodeImpl node, UserManagerImpl userManager)
public boolean isGroup()
isGroup
in interface Authorizable
Authorizable.isGroup()
public Principal getPrincipal() throws RepositoryException
getPrincipal
in interface Authorizable
RepositoryException
Authorizable.getPrincipal()
public boolean isAdmin()
isAdmin
in interface User
User.isAdmin()
public boolean isSystemUser()
isSystemUser
in interface User
public Credentials getCredentials() throws RepositoryException
getCredentials
in interface User
RepositoryException
User.getCredentials()
public Impersonation getImpersonation() throws RepositoryException
getImpersonation
in interface User
RepositoryException
User.getImpersonation()
public void changePassword(String password) throws RepositoryException
changePassword
in interface User
RepositoryException
User.changePassword(String)
public void changePassword(String password, String oldPassword) throws RepositoryException
changePassword
in interface User
RepositoryException
User.changePassword(String, String)
public void disable(String reason) throws RepositoryException
disable
in interface User
RepositoryException
User.disable(String)
public boolean isDisabled() throws RepositoryException
isDisabled
in interface User
RepositoryException
User.isDisabled()
public String getDisabledReason() throws RepositoryException
getDisabledReason
in interface User
RepositoryException
User.getDisabledReason()
public String getID() throws RepositoryException
Authorizable
.getID
in interface Authorizable
Authorizable
.RepositoryException
Authorizable.getID()
public Iterator<Group> declaredMemberOf() throws RepositoryException
declaredMemberOf
in interface Authorizable
RepositoryException
Authorizable.declaredMemberOf()
public Iterator<Group> memberOf() throws RepositoryException
memberOf
in interface Authorizable
RepositoryException
Authorizable.memberOf()
public Iterator<String> getPropertyNames() throws RepositoryException
getPropertyNames
in interface Authorizable
RepositoryException
Authorizable.getPropertyNames()
public Iterator<String> getPropertyNames(String relPath) throws RepositoryException
getPropertyNames
in interface Authorizable
RepositoryException
Authorizable.getPropertyNames(String)
public boolean hasProperty(String relPath) throws RepositoryException
hasProperty
in interface Authorizable
RepositoryException
getProperty(String)
public Value[] getProperty(String relPath) throws RepositoryException
getProperty
in interface Authorizable
RepositoryException
hasProperty(String)
,
Authorizable.getProperty(String)
public void setProperty(String relPath, Value value) throws RepositoryException
setProperty
in interface Authorizable
relPath
- The relative path to the property or the property name.value
- The property value.RepositoryException
- If the specified name defines a property
that needs to be modified by this user API or setting the corresponding
JCR property fails.Authorizable.setProperty(String, Value)
public void setProperty(String relPath, Value[] values) throws RepositoryException
setProperty
in interface Authorizable
relPath
- The relative path to the property or the property name.values
- The property values.RepositoryException
- If the specified name defines a property
that needs to be modified by this user API or setting the corresponding
JCR property fails.Authorizable.setProperty(String, Value[])
public boolean removeProperty(String relPath) throws RepositoryException
removeProperty
in interface Authorizable
RepositoryException
Authorizable.removeProperty(String)
public void remove() throws RepositoryException
remove
in interface Authorizable
RepositoryException
Authorizable.remove()
public String getPath() throws UnsupportedRepositoryOperationException, RepositoryException
getPath
in interface Authorizable
UnsupportedRepositoryOperationException
RepositoryException
Authorizable.getPath()
Copyright © 2004–2023 The Apache Software Foundation. All rights reserved.