|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.SecurityItemModifier
org.apache.jackrabbit.core.security.user.UserManagerImpl
public class UserManagerImpl
UserManagerImpl
| Field Summary | |
|---|---|
static java.lang.String |
AUTHORIZABLES_PATH
|
static java.lang.String |
GROUP_ADMIN_GROUP_NAME
Configuration key and default value for the the name of the 'GroupAdmin' group-principal |
static java.lang.String |
GROUPS_PATH
|
static NameFactory |
NF
|
static Name |
NT_REP_AUTHORIZABLE
|
static Name |
NT_REP_AUTHORIZABLE_FOLDER
|
static Name |
NT_REP_GROUP
|
static Name |
NT_REP_USER
|
static Name |
P_GROUPS
|
static Name |
P_IMPERSONATORS
Name of the user property containing the principal names of those allowed to impersonate. |
static Name |
P_PASSWORD
|
static Name |
P_PRINCIPAL_NAME
|
static Name |
P_REFEREES
|
static Name |
P_USERID
|
static java.lang.String |
SECURITY_ROOT_PATH
root-path to security related content e.g. |
static java.lang.String |
USER_ADMIN_GROUP_NAME
Configuration key and default value for the the name of the 'UserAdmin' group-principal. |
static java.lang.String |
USERS_PATH
|
| Fields inherited from interface org.apache.jackrabbit.api.security.user.UserManager |
|---|
SEARCH_TYPE_AUTHORIZABLE, SEARCH_TYPE_GROUP, SEARCH_TYPE_USER |
| Constructor Summary | |
|---|---|
UserManagerImpl(SessionImpl session,
java.lang.String adminId)
|
|
| Method Summary | |
|---|---|
Group |
createGroup(java.security.Principal principal)
Create a new Group with the given groupName. |
Group |
createGroup(java.security.Principal principal,
java.lang.String intermediatePath)
Creates a new Group that is based on the given principal
and the specified itermediatePath hint. |
User |
createUser(java.lang.String userID,
java.lang.String password)
Creates a new Node on the repository with the specified userName.The User will be created relative to path of the User who represents the Session this UserManager has been created for. If the Credentials are of type
SimpleCredentials they will be
crypted. |
User |
createUser(java.lang.String userID,
java.lang.String password,
java.security.Principal principal,
java.lang.String intermediatePath)
Creates an User for the given userID that authenitcates with the given Credentials and returns the specified
Principal upon Authorizable.getPrincipal(). |
java.util.Iterator |
findAuthorizables(java.lang.String propertyName,
java.lang.String value)
Returns all Authorizables that have
property with the given name and
that Property equals the given value. |
java.util.Iterator |
findAuthorizables(java.lang.String propertyName,
java.lang.String value,
int searchType)
Returns all Authorizables that have
property with the given name and
that Property equals the given value. |
Authorizable |
getAuthorizable(java.security.Principal principal)
Get the Authorizable by its main Principal. |
Authorizable |
getAuthorizable(java.lang.String id)
Get the Authorizable by its id. |
| Methods inherited from class org.apache.jackrabbit.core.SecurityItemModifier |
|---|
addSecurityNode, removeSecurityItem, setSecurityProperty, setSecurityProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final NameFactory NF
public static final java.lang.String SECURITY_ROOT_PATH
public static final java.lang.String AUTHORIZABLES_PATH
public static final java.lang.String USERS_PATH
public static final java.lang.String GROUPS_PATH
public static final java.lang.String USER_ADMIN_GROUP_NAME
public static final java.lang.String GROUP_ADMIN_GROUP_NAME
public static final Name P_REFEREES
public static final Name P_PRINCIPAL_NAME
public static final Name P_USERID
public static final Name P_PASSWORD
public static final Name P_GROUPS
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
| Constructor Detail |
|---|
public UserManagerImpl(SessionImpl session,
java.lang.String adminId)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryException| Method Detail |
|---|
public Authorizable getAuthorizable(java.lang.String id)
throws javax.jcr.RepositoryException
UserManager
getAuthorizable in interface UserManagernull, if not present.
javax.jcr.RepositoryExceptionUserManager.getAuthorizable(String)
public Authorizable getAuthorizable(java.security.Principal principal)
throws javax.jcr.RepositoryException
UserManager
getAuthorizable in interface UserManagernull, if not present.
javax.jcr.RepositoryExceptionUserManager.getAuthorizable(Principal)
public java.util.Iterator findAuthorizables(java.lang.String propertyName,
java.lang.String value)
throws javax.jcr.RepositoryException
UserManagerAuthorizables that have
property with the given name and
that Property equals the given value.
findAuthorizables in interface UserManagerAuthorizables that have a property with the given
name exactly matching the given value.
javax.jcr.RepositoryExceptionUserManager.findAuthorizables(String,String)
public java.util.Iterator findAuthorizables(java.lang.String propertyName,
java.lang.String value,
int searchType)
throws javax.jcr.RepositoryException
UserManagerAuthorizables that have
property with the given name and
that Property equals the given value. In contrast to
UserManager.findAuthorizables(String, String) the type of authorizable is
respected while executing the search.
findAuthorizables in interface UserManagersearchType - Any of the following constants:
javax.jcr.RepositoryExceptionUserManager.findAuthorizables(String,String, int)
public User createUser(java.lang.String userID,
java.lang.String password)
throws javax.jcr.RepositoryException
userName.Credentials are of type
SimpleCredentials they will be
crypted.
createUser in interface UserManageruserID - password -
User.
AuthorizableExistsException - in case the given userID is already
in use or another Authorizable with the same principal name exists.
javax.jcr.RepositoryException - If another error occurs.UserManager.createUser(String,String)
public User createUser(java.lang.String userID,
java.lang.String password,
java.security.Principal principal,
java.lang.String intermediatePath)
throws AuthorizableExistsException,
javax.jcr.RepositoryException
UserManagerCredentials and returns the specified
Principal upon Authorizable.getPrincipal(). If the implementation is not
able to deal with the itermediatePath that parameter should
be ignored.
Except for the itermediatePath, neither of the specified
parameters can be null.
createUser in interface UserManageruserID - password - principal - intermediatePath -
AuthorizableExistsException
javax.jcr.RepositoryException
public Group createGroup(java.security.Principal principal)
throws javax.jcr.RepositoryException
Group with the given groupName.
It will be created below the this UserManager's root Path.Nodes
of type rep:AuthorizableFolder
createGroup in interface UserManagerprincipal -
Group.
AuthorizableExistsException - in case the given groupID is already
in use or another Authorizable with the same principal name exists.
javax.jcr.RepositoryException - If another error occurs.UserManager.createGroup(Principal);
public Group createGroup(java.security.Principal principal,
java.lang.String intermediatePath)
throws AuthorizableExistsException,
javax.jcr.RepositoryException
UserManagerGroup that is based on the given principal
and the specified itermediatePath hint. If the implementation is not
able to deal with the itermediatePath that parameter should
be ignored.
createGroup in interface UserManagerprincipal - intermediatePath -
AuthorizableExistsException
javax.jcr.RepositoryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||