public class UserPerWorkspaceUserManager extends UserManagerImpl
 NOTE: This requires that the Session passed to the user manager upon creation
 is identical to the Session passed to
 JackrabbitSecurityManager.getUserManager(Session).
UserPerWorkspaceUserManager| Modifier and Type | Field and Description | 
|---|---|
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 Name | 
N_MEMBERS  | 
static NameFactory | 
NF  | 
static Name | 
NT_REP_AUTHORIZABLE  | 
static Name | 
NT_REP_AUTHORIZABLE_FOLDER  | 
static Name | 
NT_REP_GROUP  | 
static Name | 
NT_REP_MEMBERS  | 
static Name | 
NT_REP_USER  | 
static Name | 
P_DISABLED  | 
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  | 
PARAM_AUTO_EXPAND_SIZE, PARAM_AUTO_EXPAND_TREE, PARAM_COMPATIBILE_JR16, PARAM_COMPATIBLE_JR16, PARAM_DEFAULT_DEPTH, PARAM_GROUP_MEMBERSHIP_SPLIT_SIZE, PARAM_GROUPS_PATH, PARAM_PASSWORD_HASH_ALGORITHM, PARAM_PASSWORD_HASH_ITERATIONS, PARAM_USERS_PATHSEARCH_TYPE_AUTHORIZABLE, SEARCH_TYPE_GROUP, SEARCH_TYPE_USER| Constructor and Description | 
|---|
UserPerWorkspaceUserManager(SessionImpl session,
                           String adminId)
Same as  
UserPerWorkspaceUserManager(session, adminID, null, null). | 
UserPerWorkspaceUserManager(SessionImpl session,
                           String adminId,
                           Properties config)
Creates a UserManager that doesn't implicitly save changes but requires
 an explicit call to  
Session.save(). | 
UserPerWorkspaceUserManager(SessionImpl session,
                           String adminId,
                           Properties config,
                           MembershipCache mCache)
Creates a UserManager that doesn't implicitly save changes but requires
 an explicit call to  
Session.save(). | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
autoSave(boolean enable)
Always throws  
unsupportedRepositoryOperationException as
 modification of the autosave behavior is not supported. | 
Authorizable | 
getAuthorizableByPath(String path)
Always throws  
UnsupportedRepositoryOperationException since
 this implementation of the user management API does not allow to retrieve
 the path of an authorizable. | 
boolean | 
isAutoSave()
Always returns  
true as by default the autoSave behavior
 cannot be altered (see also UserManagerImpl.autoSave(boolean). | 
createGroup, createGroup, createGroup, createGroup, createSystemUser, createUser, createUser, doCreateGroup, doCreateUser, findAuthorizables, findAuthorizables, findAuthorizables, getAuthorizable, getAuthorizable, getAuthorizable, getGroupsPath, getMembershipCache, getMemberSplitSize, getUsersPath, hasMemberSplitSize, loggedOut, loggingOut, setAuthorizableActionsaddNode, addNode, markModified, performProtected, removeItem, setProperty, setProperty, setProperty, setPropertypublic 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_DISABLED
public static final Name P_GROUPS
P_MEMBERSpublic static final Name P_MEMBERS
public static final Name N_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 NT_REP_MEMBERS
public static final Name MIX_REP_IMPERSONATABLE
public UserPerWorkspaceUserManager(SessionImpl session, String adminId) throws javax.jcr.RepositoryException
UserPerWorkspaceUserManager(session, adminID, null, null).session - adminId - javax.jcr.RepositoryExceptionpublic UserPerWorkspaceUserManager(SessionImpl session, String adminId, Properties config) throws javax.jcr.RepositoryException
Session.save().session - adminId - config - javax.jcr.RepositoryExceptionpublic UserPerWorkspaceUserManager(SessionImpl session, String adminId, Properties config, MembershipCache mCache) throws javax.jcr.RepositoryException
Session.save().session - adminId - config - javax.jcr.RepositoryExceptionpublic Authorizable getAuthorizableByPath(String path) throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException
UserManagerImplUnsupportedRepositoryOperationException since
 this implementation of the user management API does not allow to retrieve
 the path of an authorizable.getAuthorizableByPath in interface UserManagergetAuthorizableByPath in class UserManagerImplpath - The path to an authorizable.null, if not present.javax.jcr.UnsupportedRepositoryOperationException - If this implementation does
 support to retrieve authorizables by path.javax.jcr.RepositoryException - If another error occurs.UserManager.getAuthorizableByPath(String)public boolean isAutoSave()
UserManagerImpltrue as by default the autoSave behavior
 cannot be altered (see also UserManagerImpl.autoSave(boolean).isAutoSave in interface UserManagerisAutoSave in class UserManagerImpltrue.UserManager.isAutoSave()public void autoSave(boolean enable)
              throws javax.jcr.UnsupportedRepositoryOperationException,
                     javax.jcr.RepositoryException
UserManagerImplunsupportedRepositoryOperationException as
 modification of the autosave behavior is not supported.autoSave in interface UserManagerautoSave in class UserManagerImplenable - If true changes made through this API will
 be automatically saved; otherwise an explicit call to
 Session.save() is required in order to persist changes.javax.jcr.UnsupportedRepositoryOperationException - If the implementation
 does not allow to change the auto save behavior.javax.jcr.RepositoryException - If some other error occurs.UserManager.autoSave(boolean)Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.