public interface GroupService
GroupService provides a service managing community groups.| Modifier and Type | Field and Description |
|---|---|
static String |
REPLICATE_NODE_NAME |
static String |
REPLICATE_NODE_TYPE |
static String |
REPLICATE_PROPERTY_ACTION |
static String |
REPLICATE_PROPERTY_PATH |
| Modifier and Type | Method and Description |
|---|---|
void |
addGroupMember(ResourceResolver resolver,
String groupName,
String authorizableId)
Add an authorizable to a group.
|
void |
addGroupMembers(ResourceResolver idResolver,
String groupName,
String[] authorizableIds)
Add authorizables to a group.
|
void |
copyAccessControlPolicy(ResourceResolver msmResolver,
ResourceResolver userManagerResolver,
ResourceResolver aclResolver,
String sourcePath,
String langs,
String destPath,
String groupId,
String type)
Copy Access Control List from blueprint to the community group.
|
void |
copyAccessControlPolicy(ResourceResolver resolver,
String sourcePath,
String langs,
String destPath,
String groupId,
String type)
Copy Access Control List from blueprint to the community group.
|
Group |
createGroup(ResourceResolver userAdminResolver,
ResourceResolver msmResolver,
String groupName,
String intermediatePath,
String liveCopyPath,
String liveCopyName,
String type)
Returns a user group.
|
Group |
createGroup(SlingRepository repository,
ResourceResolver adminResolver,
String groupName,
String intermediatePath,
String liveCopyPath,
String liveCopyName,
String type)
Deprecated.
|
AccessControlList |
getACL(AccessControlManager acManager,
String path)
Get access control list of the given path.
|
void |
removeGroupMember(ResourceResolver resolver,
String groupName,
String authorizableId)
Remove an authorizable from a group.
|
void |
removeGroupMembers(ResourceResolver resolver,
String groupName,
String[] authorizableIds)
Remove authorizables from a group.
|
static final String REPLICATE_NODE_TYPE
static final String REPLICATE_NODE_NAME
static final String REPLICATE_PROPERTY_PATH
static final String REPLICATE_PROPERTY_ACTION
@Deprecated Group createGroup(SlingRepository repository, ResourceResolver adminResolver, String groupName, String intermediatePath, String liveCopyPath, String liveCopyName, String type) throws GroupException, RepositoryException
repository - sling repository, no longer used, may be null.adminResolver - a resource resolver with full repository access.groupName - user group name.intermediatePath - user group intermediate path.liveCopyPath - live copy site path.liveCopyName - live copy node name.type - administrative group or member group.GroupException - - thrown if unable to create the group.RepositoryException - - thrown if unable to create the group.Group createGroup(ResourceResolver userAdminResolver, ResourceResolver msmResolver, String groupName, String intermediatePath, String liveCopyPath, String liveCopyName, String type) throws GroupException, RepositoryException
userAdminResolver - User Admin resource resolver.msmResolver - MSM resource resolvergroupName - user group name.intermediatePath - user group intermediate path.liveCopyPath - live copy site path.liveCopyName - live copy node name.type - administrative group or member group.GroupException - - thrown if unable to create the group.RepositoryException - - thrown if unable to create the group.void addGroupMember(ResourceResolver resolver, String groupName, String authorizableId) throws GroupException, RepositoryException
repository - sling repository.groupName - user group name.authorizableId - authorizable ID.GroupException - - thrown if unable to add the authorizable.RepositoryException - - thrown if unable to add the authorizable.void addGroupMembers(ResourceResolver idResolver, String groupName, String[] authorizableIds) throws GroupException, RepositoryException
repository - sling repository.groupName - user group name.authorizableIds - a string array of authorizable IDs.GroupException - - thrown if unable to add the authorizables.RepositoryException - - thrown if unable to add the authorizables.void removeGroupMember(ResourceResolver resolver, String groupName, String authorizableId) throws GroupException, RepositoryException
repository - sling repository.groupName - user group name.authorizableId - authorizable ID.GroupException - - thrown if unable to remove the authorizable.RepositoryException - - thrown if unable to remove the authorizable.void removeGroupMembers(ResourceResolver resolver, String groupName, String[] authorizableIds) throws GroupException, RepositoryException
repository - sling repository.groupName - user group name.authorizableIds - a string array of authorizable IDs.GroupException - - thrown if unable to remove the authorizables.RepositoryException - - thrown if unable to remove the authorizables.void copyAccessControlPolicy(ResourceResolver resolver, String sourcePath, String langs, String destPath, String groupId, String type) throws GroupException, RepositoryException, AccessControlException
resolver - resource resolver.sourcePath - blueprint site path.langs - live copy languages.destPath - live copy site path.groupId - group id.type - community group privacy type.GroupException - - thrown if unable to copy ACL.RepositoryException - - thrown if unable to copy ACL.AccessControlException - - thrown if unable to copy ACL.void copyAccessControlPolicy(ResourceResolver msmResolver, ResourceResolver userManagerResolver, ResourceResolver aclResolver, String sourcePath, String langs, String destPath, String groupId, String type) throws GroupException, RepositoryException, AccessControlException
msmResolver - resource resolver with read/write access to /contentuserManagerResolver - resource resolver with all access to users/groups and their content.aclResolver - resource resolver with read/write ACL and node type management access to /content.sourcePath - blueprint site path.langs - live copy languages.destPath - live copy site path.groupId - group id.type - community group privacy type.GroupException - - thrown if unable to copy ACL.RepositoryException - - thrown if unable to copy ACL.AccessControlException - - thrown if unable to copy ACL.AccessControlList getACL(AccessControlManager acManager,
String path)
acManager - Access Control Manager.path - path."Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"