public class UserMgmtServiceImpl extends Object implements UserManagementService
| Modifier and Type | Class and Description |
|---|---|
protected class |
UserMgmtServiceImpl.NamePrincipal |
| Constructor and Description |
|---|
UserMgmtServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
assignToGroup(org.apache.jackrabbit.api.JackrabbitSession session,
org.apache.jackrabbit.api.security.user.UserManager userManager,
org.apache.jackrabbit.api.security.user.Authorizable authorizable,
String groupName)
Assign an member (user or group) to a group if not always a member.
|
void |
assignToGroup(org.apache.jackrabbit.api.JackrabbitSession session,
org.apache.jackrabbit.api.security.user.UserManager userManager,
String memberName,
org.apache.jackrabbit.api.security.user.Group group)
Assign an member (user or group) to a group if not always a member.
|
org.apache.jackrabbit.api.security.user.Group |
getOrCreateGroup(org.apache.jackrabbit.api.JackrabbitSession session,
org.apache.jackrabbit.api.security.user.UserManager userManager,
String path)
Retrieves a group by their name; if the group doesn't exist the group will be created.
|
org.apache.jackrabbit.api.security.user.Authorizable |
getOrCreateUser(org.apache.jackrabbit.api.JackrabbitSession session,
org.apache.jackrabbit.api.security.user.UserManager userManager,
String path,
boolean systemUser)
Retrieves a user by its name; if the user doesn't exist the user will be created.
|
protected String[] |
pathAndName(String pathAndName) |
public org.apache.jackrabbit.api.security.user.Authorizable getOrCreateUser(org.apache.jackrabbit.api.JackrabbitSession session,
org.apache.jackrabbit.api.security.user.UserManager userManager,
String path,
boolean systemUser)
throws javax.jcr.RepositoryException
getOrCreateUser in interface UserManagementServicepath - the name of the user with an optional prepended intermediate path for user creationjavax.jcr.RepositoryExceptionpublic org.apache.jackrabbit.api.security.user.Group getOrCreateGroup(org.apache.jackrabbit.api.JackrabbitSession session,
org.apache.jackrabbit.api.security.user.UserManager userManager,
String path)
throws javax.jcr.RepositoryException
getOrCreateGroup in interface UserManagementServicepath - the name of the group with an optional prepended intermediate path for group creationjavax.jcr.RepositoryExceptionpublic void assignToGroup(org.apache.jackrabbit.api.JackrabbitSession session,
org.apache.jackrabbit.api.security.user.UserManager userManager,
org.apache.jackrabbit.api.security.user.Authorizable authorizable,
String groupName)
throws javax.jcr.RepositoryException
assignToGroup in interface UserManagementServiceauthorizable - the name of the authorizable (the name only)groupName - the name of the group (the simple name only)javax.jcr.RepositoryExceptionpublic void assignToGroup(org.apache.jackrabbit.api.JackrabbitSession session,
org.apache.jackrabbit.api.security.user.UserManager userManager,
String memberName,
org.apache.jackrabbit.api.security.user.Group group)
throws javax.jcr.RepositoryException
assignToGroup in interface UserManagementServicememberName - the name of the authorizable (the name only)javax.jcr.RepositoryExceptionCopyright © 2021. All rights reserved.