@Deprecated public abstract class JahiaUserManagerProvider extends JahiaService implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
| Modifier and Type | Field and Description |
|---|---|
protected JahiaUserManagerService |
userManagerService
Deprecated.
|
settingsBean| Constructor and Description |
|---|
JahiaUserManagerProvider()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
Deprecated.
|
abstract JahiaUser |
createUser(String name,
String password,
Properties properties)
Deprecated.
This is the method that creates a new user in the system, with all the
specified attributes.
|
abstract boolean |
deleteUser(JahiaUser user)
Deprecated.
This method removes a user from the system.
|
void |
destroy()
Deprecated.
|
String |
getKey()
Deprecated.
|
abstract int |
getNbUsers()
Deprecated.
Return the number of user in the system.
|
int |
getPriority()
Deprecated.
|
abstract List<String> |
getUserList()
Deprecated.
This method return all users' keys in the system.
|
protected JahiaUserManagerService |
getUserManagerService()
Deprecated.
Returns an instance of the user manager.
|
abstract List<String> |
getUsernameList()
Deprecated.
This method returns the list of all the user names registed into the system.
|
boolean |
isDefaultProvider()
Deprecated.
|
boolean |
isReadOnly()
Deprecated.
|
boolean |
isUsernameSyntaxCorrect(String name)
Deprecated.
Validates provided user name against a regular expression pattern,
specified in the Jahia configuration.
|
abstract boolean |
login(String userKey,
String userPassword)
Deprecated.
Performs a login of the specified user.
|
abstract JahiaUser |
lookupUser(String name)
Deprecated.
Load all the user data and attributes.
|
abstract JahiaUser |
lookupUserByKey(String userKey)
Deprecated.
Load all the user data and attributes.
|
abstract Set<JahiaUser> |
searchUsers(Properties searchCriterias)
Deprecated.
Find users according to a table of name=value properties.
|
void |
setDefaultProvider(boolean defaultProvider)
Deprecated.
There can be only one...
|
void |
setKey(String key)
Deprecated.
|
void |
setPriority(int priority)
Deprecated.
|
void |
setReadOnly(boolean readOnly)
Deprecated.
|
void |
setUserManagerService(JahiaUserManagerService userManagerService)
Deprecated.
Injects the user management service instance.
|
abstract void |
updateCache(JahiaUser jahiaUser)
Deprecated.
This method indicates that any internal cache for a provider should be
updated because the value has changed and needs to be transmitted to the
other nodes in a clustering environment.
|
abstract boolean |
userExists(String name)
Deprecated.
This function checks into the system if the username has already been
assigned to another user.
|
getSettingsBean, setSettingsBean, start, stopprotected JahiaUserManagerService userManagerService
public String getKey()
public void setKey(String key)
public int getPriority()
public void setPriority(int priority)
public boolean isDefaultProvider()
public void setDefaultProvider(boolean defaultProvider)
defaultProvider - public boolean isReadOnly()
public void setReadOnly(boolean readOnly)
public void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic void destroy()
throws Exception
destroy in interface org.springframework.beans.factory.DisposableBeanExceptionpublic abstract JahiaUser createUser(String name, String password, Properties properties)
password - User passwordpublic abstract boolean deleteUser(JahiaUser user)
user - reference on the user to be deleted.public abstract int getNbUsers()
public abstract List<String> getUserList()
public abstract List<String> getUsernameList()
public abstract boolean login(String userKey, String userPassword)
userKey - the user identifier defined in this service propertiesuserPassword - the password of the userpublic boolean isUsernameSyntaxCorrect(String name)
name - the user name to be validatedtrue if the specified user name matches the
validation patternpublic abstract JahiaUser lookupUserByKey(String userKey)
public abstract JahiaUser lookupUser(String name)
public abstract Set<JahiaUser> searchUsers(Properties searchCriterias)
searchCriterias - a Properties object that contains search criterias
in the format name,value (for example "*"="*" or "username"="*test*") or
null to search without criteriaspublic abstract void updateCache(JahiaUser jahiaUser)
jahiaUser - JahiaUser the group to be updated in the cache.public abstract boolean userExists(String name)
protected JahiaUserManagerService getUserManagerService()
public void setUserManagerService(JahiaUserManagerService userManagerService)
userManagerService - an instance of the user management serviceCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.