public class JahiaUserImpl extends Object implements JahiaUser, Serializable
| Constructor and Description |
|---|
JahiaUserImpl(String name,
String path,
Properties properties,
boolean isRoot,
String providerName)
Initializes a global user.
|
JahiaUserImpl(String name,
String path,
Properties properties,
boolean isRoot,
String providerName,
String realm)
Initializes a realm-specific (site-specific) user.
|
JahiaUserImpl(String name,
String path,
Properties properties,
String providerName)
Initializes a global non-root user.
|
JahiaUserImpl(String name,
String path,
Properties properties,
String providerName,
String realm)
Initializes a realm-specific (site-specific) non-root user.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getLocalPath()
Get the path of this user in the local store.
|
String |
getName() |
Properties |
getProperties()
Get user's properties list.
|
String |
getProperty(String key)
Retrieve the requested user property.
|
String |
getProviderName()
Get the name of the provider of this user.
|
String |
getRealm()
Get the realm name this user belongs to.
|
String |
getUserKey()
Return the unique String identifier of this user.
|
String |
getUsername()
Return the user username.
|
UserProperties |
getUserProperties()
Returns the users properties format, in which we can test if a property
is read-only or not.
|
UserProperty |
getUserProperty(String key)
Retrieves the user property object, so that we can test is the property
is read-only or not.
|
int |
hashCode() |
boolean |
isAccountLocked()
Checks if the account is locked
|
boolean |
isAdminMember(int siteID)
Test if the user is an admin member
|
boolean |
isMemberOfGroup(int siteID,
String name)
Test if the user is member of the specified group.
|
boolean |
isRoot()
Test if the user is the root user
|
boolean |
removeProperty(String key)
Remove the specified property from the properties list.
|
boolean |
setPassword(String password)
Change the user's password.
|
boolean |
setProperty(String key,
String value)
Add (or update if not already in the property list) a property key-value
pair in the user's properties list.
|
boolean |
verifyPassword(String password)
Verify if the passed in password is the same as the encapsulated by this
user.
|
public JahiaUserImpl(String name, String path, Properties properties, String providerName)
name - the user namepath - the JCR path of the userproperties - user propertiesproviderName - the name of the providerpublic JahiaUserImpl(String name, String path, Properties properties, boolean isRoot, String providerName)
name - the user namepath - the JCR path of the userproperties - user propertiesisRoot - true for root user and false for everyone elseproviderName - the name of the providerpublic JahiaUserImpl(String name, String path, Properties properties, String providerName, String realm)
name - the user namepath - the JCR path of the userproperties - user propertiesproviderName - the name of the providerrealm - the key of the corresponding user realm (site)public JahiaUserImpl(String name, String path, Properties properties, boolean isRoot, String providerName, String realm)
name - the user namepath - the JCR path of the userproperties - user propertiesisRoot - true for root user and false for everyone elseproviderName - the name of the providerrealm - the key of the corresponding user realm (site)public String getUsername()
JahiaUsergetUsername in interface JahiaUserpublic String getUserKey()
JahiaUsergetUserKey in interface JahiaUserpublic Properties getProperties()
JahiaUsergetProperties in interface JahiaUserpublic UserProperties getUserProperties()
JahiaUsergetUserProperties in interface JahiaUserpublic String getProperty(String key)
JahiaUsergetProperty in interface JahiaUserkey - Property's name.public UserProperty getUserProperty(String key)
JahiaUsergetUserProperty in interface JahiaUserkey - Stringpublic boolean removeProperty(String key)
JahiaUserremoveProperty in interface JahiaUserkey - Property's name.public boolean setProperty(String key, String value)
JahiaUsersetProperty in interface JahiaUserkey - Property's name.value - Property's value.public boolean setPassword(String password)
JahiaUsersetPassword in interface JahiaUserpassword - New user's passwordpublic boolean isMemberOfGroup(int siteID,
String name)
JahiaUserisMemberOfGroup in interface JahiaUsersiteID - the site idname - Groupname.public boolean isAdminMember(int siteID)
JahiaUserisAdminMember in interface JahiaUsersiteID - the site idpublic boolean isRoot()
JahiaUserpublic boolean verifyPassword(String password)
JahiaUserverifyPassword in interface JahiaUserpassword - String representation of an non-encrypted password.public String getProviderName()
JahiaUsergetProviderName in interface JahiaPrincipalgetProviderName in interface JahiaUserpublic String getLocalPath()
JahiaUsergetLocalPath in interface JahiaPrincipalgetLocalPath in interface JahiaUserpublic boolean isAccountLocked()
JahiaUserisAccountLocked in interface JahiaUserpublic String getRealm()
JahiaUserpublic boolean equals(Object o)
Copyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.