|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.ProtectedItemModifier
org.apache.jackrabbit.core.security.user.UserManagerImpl
org.apache.jackrabbit.core.security.user.UserPerWorkspaceUserManager
public class UserPerWorkspaceUserManager
Derived UserManager implementation that allows to switch between autosaving and transient change mode.
NOTE: This requires that the Session passed to the user manager upon creation is identical to the Session passed toJackrabbitSecurityManager.getUserManager(Session).
UserPerWorkspaceUserManager| 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 org.apache.jackrabbit.spi.Name |
MIX_REP_IMPERSONATABLE
|
static org.apache.jackrabbit.spi.Name |
N_MEMBERS
|
static org.apache.jackrabbit.spi.NameFactory |
NF
|
static org.apache.jackrabbit.spi.Name |
NT_REP_AUTHORIZABLE
|
static org.apache.jackrabbit.spi.Name |
NT_REP_AUTHORIZABLE_FOLDER
|
static org.apache.jackrabbit.spi.Name |
NT_REP_GROUP
|
static org.apache.jackrabbit.spi.Name |
NT_REP_MEMBERS
|
static org.apache.jackrabbit.spi.Name |
NT_REP_USER
|
static org.apache.jackrabbit.spi.Name |
P_DISABLED
|
static org.apache.jackrabbit.spi.Name |
P_GROUPS
Deprecated. As of 2.0 group membership is stored with the group node. |
static org.apache.jackrabbit.spi.Name |
P_IMPERSONATORS
Name of the user property containing the principal names of those allowed to impersonate. |
static org.apache.jackrabbit.spi.Name |
P_MEMBERS
|
static org.apache.jackrabbit.spi.Name |
P_PASSWORD
|
static org.apache.jackrabbit.spi.Name |
P_PRINCIPAL_NAME
|
static org.apache.jackrabbit.spi.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
|
| Fields inherited from class org.apache.jackrabbit.core.security.user.UserManagerImpl |
|---|
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_USERS_PATH |
| Fields inherited from interface org.apache.jackrabbit.api.security.user.UserManager |
|---|
SEARCH_TYPE_AUTHORIZABLE, SEARCH_TYPE_GROUP, SEARCH_TYPE_USER |
| Constructor Summary | |
|---|---|
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(). |
|
| Method Summary | |
|---|---|
void |
autoSave(boolean enable)
Always throws unsupportedRepositoryOperationException as
modification of the autosave behavior is not supported. |
org.apache.jackrabbit.api.security.user.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). |
| Methods inherited from class org.apache.jackrabbit.core.security.user.UserManagerImpl |
|---|
createGroup, createGroup, createGroup, createGroup, createUser, createUser, doCreateGroup, doCreateUser, findAuthorizables, findAuthorizables, findAuthorizables, getAuthorizable, getAuthorizable, getGroupMembershipSplitSize, getGroupsPath, getMembershipCache, getUsersPath, loggedOut, loggingOut, setAuthorizableActions |
| Methods inherited from class org.apache.jackrabbit.core.ProtectedItemModifier |
|---|
addNode, addNode, markModified, performProtected, removeItem, setProperty, setProperty, setProperty, setProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.apache.jackrabbit.spi.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 org.apache.jackrabbit.spi.Name P_PRINCIPAL_NAME
public static final org.apache.jackrabbit.spi.Name P_USERID
public static final org.apache.jackrabbit.spi.Name P_PASSWORD
public static final org.apache.jackrabbit.spi.Name P_DISABLED
public static final org.apache.jackrabbit.spi.Name P_GROUPS
P_MEMBERSpublic static final org.apache.jackrabbit.spi.Name P_MEMBERS
public static final org.apache.jackrabbit.spi.Name N_MEMBERS
public static final org.apache.jackrabbit.spi.Name P_IMPERSONATORS
public static final org.apache.jackrabbit.spi.Name NT_REP_AUTHORIZABLE
public static final org.apache.jackrabbit.spi.Name NT_REP_AUTHORIZABLE_FOLDER
public static final org.apache.jackrabbit.spi.Name NT_REP_USER
public static final org.apache.jackrabbit.spi.Name NT_REP_GROUP
public static final org.apache.jackrabbit.spi.Name NT_REP_MEMBERS
public static final org.apache.jackrabbit.spi.Name MIX_REP_IMPERSONATABLE
| Constructor Detail |
|---|
public UserPerWorkspaceUserManager(SessionImpl session,
String adminId)
throws RepositoryException
UserPerWorkspaceUserManager(session, adminID, null, null).
session - adminId -
RepositoryException
public UserPerWorkspaceUserManager(SessionImpl session,
String adminId,
Properties config)
throws RepositoryException
Session.save().
session - adminId - config -
RepositoryException
public UserPerWorkspaceUserManager(SessionImpl session,
String adminId,
Properties config,
MembershipCache mCache)
throws RepositoryException
Session.save().
session - adminId - config -
RepositoryException| Method Detail |
|---|
public org.apache.jackrabbit.api.security.user.Authorizable getAuthorizableByPath(String path)
throws UnsupportedRepositoryOperationException,
RepositoryException
UserManagerImplUnsupportedRepositoryOperationException since
this implementation of the user management API does not allow to retrieve
the path of an authorizable.
getAuthorizableByPath in interface org.apache.jackrabbit.api.security.user.UserManagergetAuthorizableByPath in class UserManagerImplUnsupportedRepositoryOperationException
RepositoryExceptionUserManager.getAuthorizableByPath(String)public boolean isAutoSave()
UserManagerImpltrue as by default the autoSave behavior
cannot be altered (see also UserManagerImpl.autoSave(boolean).
isAutoSave in interface org.apache.jackrabbit.api.security.user.UserManagerisAutoSave in class UserManagerImpltrue.UserManager.isAutoSave()
public void autoSave(boolean enable)
throws UnsupportedRepositoryOperationException,
RepositoryException
UserManagerImplunsupportedRepositoryOperationException as
modification of the autosave behavior is not supported.
autoSave in interface org.apache.jackrabbit.api.security.user.UserManagerautoSave in class UserManagerImplUnsupportedRepositoryOperationException
RepositoryExceptionUserManager.autoSave(boolean)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||