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 resolver,
String groupName,
String[] authorizableIds)
Add authorizables to a 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(SlingRepository repository,
ResourceResolver resolver,
String groupName,
String intermediatePath,
String liveCopyPath,
String liveCopyName,
String type)
Returns a user group.
|
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
Group createGroup(SlingRepository repository, ResourceResolver resolver, String groupName, String intermediatePath, String liveCopyPath, String liveCopyName, String type) throws GroupException, RepositoryException
repository
- sling repository.resolver
- resource resolver.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.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 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 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.AccessControlList getACL(AccessControlManager acManager, String path)
acManager
- Access Control Manager.path
- path."Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"