|
||||||||||
| 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 Name |
MIX_REP_IMPERSONATABLE
|
static NameFactory |
NF
|
static Name |
NT_REP_AUTHORIZABLE
|
static Name |
NT_REP_AUTHORIZABLE_FOLDER
|
static Name |
NT_REP_GROUP
|
static Name |
NT_REP_USER
|
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
|
| Constructor Summary | |
|---|---|
protected |
UserImpl(NodeImpl node,
UserManagerImpl userManager)
|
| Method Summary | |
|---|---|
void |
changePassword(String password)
Change the password of this user. |
Iterator<Group> |
declaredMemberOf()
|
boolean |
equals(Object obj)
|
Credentials |
getCredentials()
Returns Credentials for this user. |
String |
getID()
Returns the unescaped name of the node that defines this Authorizable. |
Impersonation |
getImpersonation()
|
Principal |
getPrincipal()
|
Value[] |
getProperty(String name)
Returns the values for the properties with the specified name or null. |
Iterator<String> |
getPropertyNames()
Returns the names of properties present with this Authorizable. |
int |
hashCode()
|
boolean |
hasProperty(String name)
Tests if a the property with specified name exists. |
boolean |
isAdmin()
|
boolean |
isGroup()
|
Iterator<Group> |
memberOf()
|
void |
remove()
Removes this Authorizable, if the session has sufficient
permissions. |
boolean |
removeProperty(String name)
Removes the property with the given name. |
void |
setProperty(String name,
Value value)
Sets the Value for the given name. |
void |
setProperty(String name,
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, getProperty, getPropertyNames, hasProperty, memberOf, remove, removeProperty, setProperty, setProperty |
| Field Detail |
|---|
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_GROUPS
P_MEMBERSpublic static final Name P_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 MIX_REP_IMPERSONATABLE
| Constructor Detail |
|---|
protected UserImpl(NodeImpl node,
UserManagerImpl userManager)
throws RepositoryException
RepositoryException| Method Detail |
|---|
public boolean isAdmin()
isAdmin in interface UserUser.isAdmin()
public Credentials getCredentials()
throws RepositoryException
UserCredentials for this user.
getCredentials in interface UserCredentials for this user.
RepositoryException - If an error occurs.User.getCredentials()public boolean isGroup()
isGroup in interface AuthorizableGroupAuthorizable.isGroup()
public Principal getPrincipal()
throws RepositoryException
getPrincipal in interface AuthorizableRepositoryException - If an error occurs.Authorizable.getPrincipal()
public Impersonation getImpersonation()
throws RepositoryException
getImpersonation in interface UserImpersonation for this User.
RepositoryException - If an error occurs.User.getImpersonation()
public void changePassword(String password)
throws RepositoryException
User
changePassword in interface Userpassword - The new password.
RepositoryException - If an error occurs.User.changePassword(String)
public String getID()
throws RepositoryException
Authorizable.
getID in interface AuthorizableAuthorizable.
RepositoryException - if an error occurs.Authorizable.getID()
public Iterator<Group> declaredMemberOf()
throws RepositoryException
declaredMemberOf in interface AuthorizableGroups, this Authorizable is declared member of.
RepositoryException - If an error occurs.Authorizable.declaredMemberOf()
public Iterator<Group> memberOf()
throws RepositoryException
memberOf in interface AuthorizableGroups, this Authorizable is member of included
indirect group membership.
RepositoryException - If an error occurs.Authorizable.memberOf()
public Iterator<String> getPropertyNames()
throws RepositoryException
Authorizablethis Authorizable.
getPropertyNames in interface AuthorizableRepositoryException - If an error occurs.Authorizable.getPropertyNames()
public boolean hasProperty(String name)
throws RepositoryException
Authorizable
hasProperty in interface Authorizablename - The name of the property to be tested.
true if a property with the given name exists.
RepositoryException - If an error occurs.getProperty(String)
public Value[] getProperty(String name)
throws RepositoryException
Authorizablenull.
getProperty in interface Authorizablename - The name of the property to be retrieved.
null
if no such property exists.
RepositoryException - If an error occurs.hasProperty(String),
Authorizable.getProperty(String)
public void setProperty(String name,
Value value)
throws RepositoryException
setProperty in interface Authorizablename - 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 name,
Value[] values)
throws RepositoryException
setProperty in interface Authorizablename - 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 name)
throws RepositoryException
Authorizable
removeProperty in interface Authorizablename - The name of the property to be removed.
RepositoryException - If an error occurs.Authorizable.removeProperty(String)
public void remove()
throws RepositoryException
AuthorizableAuthorizable, if the session has sufficient
permissions. Note, that removing an Authorizable even
if it listed as member of a Group or if still has members (this is
a Group itself).
remove in interface AuthorizableRepositoryException - If an error occured and the
Authorizable could not be removed.Authorizable.remove()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 | |||||||||