|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.security.user.UserImpl
public class UserImpl
UserImpl
| Field Summary | |
|---|---|
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 org.apache.jackrabbit.spi.Name |
MIX_REP_IMPERSONATABLE
|
static org.apache.jackrabbit.spi.Name |
N_MEMBERS
|
static org.apache.jackrabbit.spi.NameFactory |
NF
|
static org.apache.jackrabbit.spi.Name |
NT_REP_AUTHORIZABLE
|
static org.apache.jackrabbit.spi.Name |
NT_REP_AUTHORIZABLE_FOLDER
|
static org.apache.jackrabbit.spi.Name |
NT_REP_GROUP
|
static org.apache.jackrabbit.spi.Name |
NT_REP_MEMBERS
|
static org.apache.jackrabbit.spi.Name |
NT_REP_USER
|
static org.apache.jackrabbit.spi.Name |
P_DISABLED
|
static org.apache.jackrabbit.spi.Name |
P_GROUPS
Deprecated. As of 2.0 group membership is stored with the group node. |
static org.apache.jackrabbit.spi.Name |
P_IMPERSONATORS
Name of the user property containing the principal names of those allowed to impersonate. |
static org.apache.jackrabbit.spi.Name |
P_MEMBERS
|
static org.apache.jackrabbit.spi.Name |
P_PASSWORD
|
static org.apache.jackrabbit.spi.Name |
P_PRINCIPAL_NAME
|
static org.apache.jackrabbit.spi.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
|
| Constructor Summary | |
|---|---|
protected |
UserImpl(NodeImpl node,
UserManagerImpl userManager)
|
| Method Summary | |
|---|---|
void |
changePassword(String password)
|
void |
changePassword(String password,
String oldPassword)
|
Iterator<org.apache.jackrabbit.api.security.user.Group> |
declaredMemberOf()
|
void |
disable(String reason)
|
boolean |
equals(Object obj)
|
Credentials |
getCredentials()
|
String |
getDisabledReason()
|
String |
getID()
Returns the unescaped name of the node that defines this Authorizable. |
org.apache.jackrabbit.api.security.user.Impersonation |
getImpersonation()
|
String |
getPath()
|
Principal |
getPrincipal()
|
Value[] |
getProperty(String relPath)
|
Iterator<String> |
getPropertyNames()
|
Iterator<String> |
getPropertyNames(String relPath)
|
int |
hashCode()
|
boolean |
hasProperty(String relPath)
|
boolean |
isAdmin()
|
boolean |
isDisabled()
|
boolean |
isGroup()
|
Iterator<org.apache.jackrabbit.api.security.user.Group> |
memberOf()
|
void |
remove()
|
boolean |
removeProperty(String relPath)
|
void |
setProperty(String relPath,
Value value)
Sets the Value for the given name. |
void |
setProperty(String relPath,
Value[] values)
Sets the Value[] for the given name. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.jackrabbit.api.security.user.Authorizable |
|---|
declaredMemberOf, getID, getPath, getProperty, getPropertyNames, getPropertyNames, hasProperty, memberOf, remove, removeProperty, setProperty, setProperty |
| Field Detail |
|---|
public static final org.apache.jackrabbit.spi.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 org.apache.jackrabbit.spi.Name P_PRINCIPAL_NAME
public static final org.apache.jackrabbit.spi.Name P_USERID
public static final org.apache.jackrabbit.spi.Name P_PASSWORD
public static final org.apache.jackrabbit.spi.Name P_DISABLED
public static final org.apache.jackrabbit.spi.Name P_GROUPS
P_MEMBERSpublic static final org.apache.jackrabbit.spi.Name P_MEMBERS
public static final org.apache.jackrabbit.spi.Name N_MEMBERS
public static final org.apache.jackrabbit.spi.Name P_IMPERSONATORS
public static final org.apache.jackrabbit.spi.Name NT_REP_AUTHORIZABLE
public static final org.apache.jackrabbit.spi.Name NT_REP_AUTHORIZABLE_FOLDER
public static final org.apache.jackrabbit.spi.Name NT_REP_USER
public static final org.apache.jackrabbit.spi.Name NT_REP_GROUP
public static final org.apache.jackrabbit.spi.Name NT_REP_MEMBERS
public static final org.apache.jackrabbit.spi.Name MIX_REP_IMPERSONATABLE
| Constructor Detail |
|---|
protected UserImpl(NodeImpl node,
UserManagerImpl userManager)
| Method Detail |
|---|
public boolean isGroup()
isGroup in interface org.apache.jackrabbit.api.security.user.AuthorizableAuthorizable.isGroup()
public Principal getPrincipal()
throws RepositoryException
getPrincipal in interface org.apache.jackrabbit.api.security.user.AuthorizableRepositoryExceptionAuthorizable.getPrincipal()public boolean isAdmin()
isAdmin in interface org.apache.jackrabbit.api.security.user.UserUser.isAdmin()
public Credentials getCredentials()
throws RepositoryException
getCredentials in interface org.apache.jackrabbit.api.security.user.UserRepositoryExceptionUser.getCredentials()
public org.apache.jackrabbit.api.security.user.Impersonation getImpersonation()
throws RepositoryException
getImpersonation in interface org.apache.jackrabbit.api.security.user.UserRepositoryExceptionUser.getImpersonation()
public void changePassword(String password)
throws RepositoryException
changePassword in interface org.apache.jackrabbit.api.security.user.UserRepositoryExceptionUser.changePassword(String)
public void changePassword(String password,
String oldPassword)
throws RepositoryException
changePassword in interface org.apache.jackrabbit.api.security.user.UserRepositoryExceptionUser.changePassword(String, String)
public void disable(String reason)
throws RepositoryException
disable in interface org.apache.jackrabbit.api.security.user.UserRepositoryExceptionUser.disable(String)
public boolean isDisabled()
throws RepositoryException
isDisabled in interface org.apache.jackrabbit.api.security.user.UserRepositoryExceptionUser.isDisabled()
public String getDisabledReason()
throws RepositoryException
getDisabledReason in interface org.apache.jackrabbit.api.security.user.UserRepositoryExceptionUser.getDisabledReason()
public String getID()
throws RepositoryException
Authorizable.
getID in interface org.apache.jackrabbit.api.security.user.AuthorizableAuthorizable.
RepositoryExceptionAuthorizable.getID()
public Iterator<org.apache.jackrabbit.api.security.user.Group> declaredMemberOf()
throws RepositoryException
declaredMemberOf in interface org.apache.jackrabbit.api.security.user.AuthorizableRepositoryExceptionAuthorizable.declaredMemberOf()
public Iterator<org.apache.jackrabbit.api.security.user.Group> memberOf()
throws RepositoryException
memberOf in interface org.apache.jackrabbit.api.security.user.AuthorizableRepositoryExceptionAuthorizable.memberOf()
public Iterator<String> getPropertyNames()
throws RepositoryException
getPropertyNames in interface org.apache.jackrabbit.api.security.user.AuthorizableRepositoryExceptionAuthorizable.getPropertyNames()
public Iterator<String> getPropertyNames(String relPath)
throws RepositoryException
getPropertyNames in interface org.apache.jackrabbit.api.security.user.AuthorizableRepositoryExceptionAuthorizable.getPropertyNames(String)
public boolean hasProperty(String relPath)
throws RepositoryException
hasProperty in interface org.apache.jackrabbit.api.security.user.AuthorizableRepositoryExceptiongetProperty(String)
public Value[] getProperty(String relPath)
throws RepositoryException
getProperty in interface org.apache.jackrabbit.api.security.user.AuthorizableRepositoryExceptionhasProperty(String),
Authorizable.getProperty(String)
public void setProperty(String relPath,
Value value)
throws RepositoryException
setProperty in interface org.apache.jackrabbit.api.security.user.AuthorizablerelPath - 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 org.apache.jackrabbit.api.security.user.AuthorizablerelPath - 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 org.apache.jackrabbit.api.security.user.AuthorizableRepositoryExceptionAuthorizable.removeProperty(String)
public void remove()
throws RepositoryException
remove in interface org.apache.jackrabbit.api.security.user.AuthorizableRepositoryExceptionAuthorizable.remove()
public String getPath()
throws UnsupportedRepositoryOperationException,
RepositoryException
getPath in interface org.apache.jackrabbit.api.security.user.AuthorizableUnsupportedRepositoryOperationException
RepositoryExceptionAuthorizable.getPath()public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||