public interface JahiaUserManagerService
| Modifier and Type | Method and Description |
|---|---|
JCRUserNode |
createUser(String name,
String password,
Properties properties,
JCRSessionWrapper session)
This is the method that creates a new user in the system, with all the
specified properties.
|
JCRUserNode |
createUser(String name,
String siteKey,
String password,
Properties properties,
JCRSessionWrapper session)
This is the method that creates a new user in the system, with all the
specified properties.
|
boolean |
deleteUser(String userPath,
JCRSessionWrapper session)
This method removes a user from the system.
|
JahiaUserManagerProvider |
getProvider(String key)
Deprecated.
|
JCRStoreProvider |
getProvider(String providerKey,
JCRSessionWrapper session)
Retrieve the user provider corresponding to a given key
|
JCRStoreProvider |
getProvider(String siteKey,
String providerKey,
JCRSessionWrapper session) |
List<? extends JahiaUserManagerProvider> |
getProviderList()
Deprecated.
|
List<JCRStoreProvider> |
getProviderList(JCRSessionWrapper session)
Provide the list of all available users providers
|
List<JCRStoreProvider> |
getProviderList(String siteKey,
JCRSessionWrapper session) |
List<JCRStoreProvider> |
getProviders(String[] providerKeys,
JCRSessionWrapper session)
Provide the list of users providers matching given keys
|
List<JCRStoreProvider> |
getProviders(String siteKey,
String[] providerKeys,
JCRSessionWrapper session) |
String |
getRootUserName()
Returns the system root user name (cached)
|
List<String> |
getUserList()
This method return all users' keys in the system.
|
List<String> |
getUserList(String siteKey) |
List<String> |
getUsernameList()
This method returns the list of all the user names registered in the system.
|
List<String> |
getUsernameList(String siteKey)
This method returns the list of all the user names registered in the system.
|
String |
getUserPath(String name) |
String |
getUserPath(String name,
String site) |
JahiaUserSplittingRule |
getUserSplittingRule() |
boolean |
isUsernameSyntaxCorrect(String name)
Validates provided user name against a regular expression pattern, specified in the Jahia configuration.
|
JCRUserNode |
lookup(String lookupKey)
Performs the lookup of the user, detecting the type of the provided lookup key (either a JCR path, a user name or a legacy user key).
|
JCRUserNode |
lookupRootUser()
Returns the system root user (not cached).
|
JCRUserNode |
lookupRootUser(JCRSessionWrapper session)
Returns the system root user (not cached).
|
JCRUserNode |
lookupUser(String name)
Load all the user data and attributes.
|
JCRUserNode |
lookupUser(String name,
JCRSessionWrapper session)
Load all the user data and attributes.
|
JCRUserNode |
lookupUser(String name,
String site) |
JCRUserNode |
lookupUser(String name,
String site,
boolean checkSiteAndGlobalUsers) |
JCRUserNode |
lookupUser(String name,
String site,
JCRSessionWrapper session)
Load all the user data and attributes.
|
JCRUserNode |
lookupUserByKey(String userKey)
Deprecated.
use lookupUserByPath() instead
|
JCRUserNode |
lookupUserByPath(String path)
Load all the user data and attributes.
|
JCRUserNode |
lookupUserByPath(String userKey,
JCRSessionWrapper session)
Load all the user data and attributes.
|
void |
registerProvider(JahiaUserManagerProvider jahiaUserManagerProvider)
Deprecated.
|
Set<JCRUserNode> |
searchUsers(Properties searchCriterias)
Find users according to a table of name=value properties.
|
Set<JCRUserNode> |
searchUsers(Properties searchCriterias,
JCRSessionWrapper session)
Find users according to a table of name=value properties.
|
Set<JCRUserNode> |
searchUsers(Properties searchCriterias,
String[] providers)
Find users according to a table of name=value properties.
|
Set<JCRUserNode> |
searchUsers(Properties searchCriterias,
String[] providerKeys,
JCRSessionWrapper session) |
Set<JCRUserNode> |
searchUsers(Properties searchCriterias,
String siteKey,
String[] providerKeys,
boolean excludeProtected,
JCRSessionWrapper session) |
Set<JCRUserNode> |
searchUsers(Properties searchCriterias,
String siteKey,
String[] providerKeys,
JCRSessionWrapper session) |
Set<JCRUserNode> |
searchUsers(Properties searchCriterias,
String siteKey,
String providerKey,
boolean excludeProtected,
JCRSessionWrapper session) |
boolean |
userExists(String name)
This function checks into the system if the username has already been
assigned to another user.
|
boolean |
userExists(String name,
String siteKey) |
JahiaUserSplittingRule getUserSplittingRule()
JCRUserNode lookupUserByKey(String userKey)
JCRUserNode lookupUserByPath(String path)
JCRUserNode lookupUserByPath(String userKey, JCRSessionWrapper session)
JCRUserNode lookupUser(String name)
name - User's identification name.JCRUserNode lookupUser(String name, String site)
JCRUserNode lookupUser(String name, String site, boolean checkSiteAndGlobalUsers)
JCRUserNode lookupUser(String name, JCRSessionWrapper session)
name - User's identification name.JCRUserNode lookupUser(String name, String site, JCRSessionWrapper session)
name - User's identification name.boolean userExists(String name)
name - User login name.String getRootUserName()
JCRUserNode lookupRootUser()
JCRUserNode lookupRootUser(JCRSessionWrapper session)
List<String> getUserList()
List<String> getUsernameList()
List<String> getUsernameList(String siteKey)
Set<JCRUserNode> 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 criteriasSet<JCRUserNode> searchUsers(Properties searchCriterias, String[] providers)
searchCriterias - a Properties object that contains search criterias
in the format name,value (for example "*"="*" or "username"="*test*") or
null to search without criteriasSet<JCRUserNode> searchUsers(Properties searchCriterias, JCRSessionWrapper session)
searchCriterias - a Properties object that contains search criterias
in the format name,value (for example "*"="*" or "username"="*test*") or
null to search without criteriasSet<JCRUserNode> searchUsers(Properties searchCriterias, String[] providerKeys, JCRSessionWrapper session)
Set<JCRUserNode> searchUsers(Properties searchCriterias, String siteKey, String[] providerKeys, JCRSessionWrapper session)
Set<JCRUserNode> searchUsers(Properties searchCriterias, String siteKey, String[] providerKeys, boolean excludeProtected, JCRSessionWrapper session)
Set<JCRUserNode> searchUsers(Properties searchCriterias, String siteKey, String providerKey, boolean excludeProtected, JCRSessionWrapper session)
List<JCRStoreProvider> getProviderList(JCRSessionWrapper session)
session - the session usedList<JCRStoreProvider> getProviderList(String siteKey, JCRSessionWrapper session)
List<JCRStoreProvider> getProviders(String[] providerKeys, JCRSessionWrapper session)
providerKeys - the keyssession - the session usedList<JCRStoreProvider> getProviders(String siteKey, String[] providerKeys, JCRSessionWrapper session)
JCRStoreProvider getProvider(String providerKey, JCRSessionWrapper session)
providerKey - the keysession - the session usedJCRStoreProvider getProvider(String siteKey, String providerKey, JCRSessionWrapper session)
JCRUserNode createUser(String name, String password, Properties properties, JCRSessionWrapper session)
name - User identification name.password - User passwordproperties - User additional parameters. If the user has no additionalsession - JCRUserNode createUser(String name, String siteKey, String password, Properties properties, JCRSessionWrapper session)
name - User identification name.password - User passwordproperties - User additional parameters. If the user has no additionalsession - boolean deleteUser(String userPath, JCRSessionWrapper session)
userPath - reference on the user to be deleted.session - boolean isUsernameSyntaxCorrect(String name)
name - the user name to be validatedtrue if the specified user name matches the validation pattern@Deprecated List<? extends JahiaUserManagerProvider> getProviderList()
@Deprecated JahiaUserManagerProvider getProvider(String key)
@Deprecated void registerProvider(JahiaUserManagerProvider jahiaUserManagerProvider)
JCRUserNode lookup(String lookupKey)
lookupKey - the identifier to lookup the user (can be a JCR path, user name or legacy user key)Copyright © 2004–2021 Jahia Solutions Group SA. All rights reserved.