T
- is a OperationExtension
that will be used as hooks by the extending class.U
- is a Operation
that is being provided by the extending class.public abstract class AbstractCommunityMemberGroupProfileOperationService<T extends OperationExtension,U extends Operation> extends AbstractOperationService<T,U,CommunityMemberGroup> implements CommunityMemberGroupProfileOperations
PROP_ADDED_MEMBER_ID, PROP_DELETED_MEMBER_ID, PROP_GROUP_DESCRIPTION, PROP_GROUP_ID, PROP_GROUP_NAME, PROP_MEMBER_ID
Constructor and Description |
---|
AbstractCommunityMemberGroupProfileOperationService() |
Modifier and Type | Method and Description |
---|---|
Resource |
addMember(Resource resource,
java.util.Map<java.lang.String,java.lang.Object> requestParams,
ClientUtilities clientUtils)
Add member to a group representing by the specified resource.
|
Resource |
addMember(SlingHttpServletRequest request)
Add member to
CommunityMemberGroup base on the specified SlingHttpServletRequest . |
Resource |
addOrRemoveMember(Resource resource,
java.util.Map<java.lang.String,java.lang.Object> requestParams,
U operation) |
Resource |
create(SlingHttpServletRequest request)
Create a new
CommunityMemberGroup base on the specified SlingHttpServletRequest . |
Resource |
createGroup(Resource resource,
java.util.Map<java.lang.String,java.lang.Object> requestParams,
ClientUtilities clientUtils)
Add group representing by the specified resource.
|
SocialComponent |
getSocialComponentForGroup(Resource group,
ClientUtilities clientUtilities) |
SocialComponent |
getSocialComponentForGroup(Resource group,
SlingHttpServletRequest request)
|
Resource |
removeMember(Resource resource,
java.util.Map<java.lang.String,java.lang.Object> requestParams,
ClientUtilities clientUtils)
Remove member from a group representing by the specified resource.
|
Resource |
removeMember(SlingHttpServletRequest request)
Remove member from
CommunityMemberGroup base on the specified SlingHttpServletRequest . |
Resource |
update(Resource resource,
java.util.Map<java.lang.String,java.lang.Object> requestParams,
ClientUtilities clientUtils)
Update a group representing by the specified resource.
|
Resource |
update(SlingHttpServletRequest request)
Update
CommunityMemberGroup base on the specified SlingHttpServletRequest . |
addOperationExtension, getInheritedOperationExtensionManager, performAfterActions, performBeforeActions, removeOperationExtension
public AbstractCommunityMemberGroupProfileOperationService()
public SocialComponent getSocialComponentForGroup(Resource group, SlingHttpServletRequest request)
getSocialComponentForGroup
in interface CommunityMemberGroupProfileOperations
group
- the target grouprequest
- the client requestSocialComponent
public SocialComponent getSocialComponentForGroup(Resource group, ClientUtilities clientUtilities)
public Resource update(SlingHttpServletRequest request) throws OperationException
CommunityMemberGroupProfileOperations
CommunityMemberGroup
base on the specified SlingHttpServletRequest
.update
in interface CommunityMemberGroupProfileOperations
request
- the client requestCommunityMemberGroup
OperationException
- if there is an error occurspublic Resource update(Resource resource, java.util.Map<java.lang.String,java.lang.Object> requestParams, ClientUtilities clientUtils) throws OperationException
CommunityMemberGroupProfileOperations
update
in interface CommunityMemberGroupProfileOperations
resource
- the resource.requestParams
- a map that contains the groupId and membersId.clientUtils
- clientUtilsOperationException
- operationExceptionpublic Resource addMember(SlingHttpServletRequest request) throws OperationException
CommunityMemberGroupProfileOperations
CommunityMemberGroup
base on the specified SlingHttpServletRequest
.addMember
in interface CommunityMemberGroupProfileOperations
request
- the client requestCommunityMemberGroup
OperationException
- if there is an error occurspublic Resource addMember(Resource resource, java.util.Map<java.lang.String,java.lang.Object> requestParams, ClientUtilities clientUtils) throws OperationException
CommunityMemberGroupProfileOperations
addMember
in interface CommunityMemberGroupProfileOperations
resource
- the resource belonging to a tenant.requestParams
- a map that contains the group id and membersId.clientUtils
- clientUtilsOperationException
- operationExceptionpublic Resource removeMember(SlingHttpServletRequest request) throws OperationException
CommunityMemberGroupProfileOperations
CommunityMemberGroup
base on the specified SlingHttpServletRequest
.removeMember
in interface CommunityMemberGroupProfileOperations
request
- the client requestCommunityMemberGroup
OperationException
- if there is an error occurspublic Resource removeMember(Resource resource, java.util.Map<java.lang.String,java.lang.Object> requestParams, ClientUtilities clientUtils) throws OperationException
CommunityMemberGroupProfileOperations
removeMember
in interface CommunityMemberGroupProfileOperations
resource
- the resource belonging to a tenant.requestParams
- a map that contains the group id and membersId.clientUtils
- clientUtilsOperationException
- operationExceptionpublic Resource addOrRemoveMember(Resource resource, java.util.Map<java.lang.String,java.lang.Object> requestParams, U operation) throws OperationException
OperationException
public Resource create(SlingHttpServletRequest request) throws OperationException
CommunityMemberGroupProfileOperations
CommunityMemberGroup
base on the specified SlingHttpServletRequest
.create
in interface CommunityMemberGroupProfileOperations
request
- the client requestCommunityMemberGroup
OperationException
- if there is an error occurspublic Resource createGroup(Resource resource, java.util.Map<java.lang.String,java.lang.Object> requestParams, ClientUtilities clientUtils) throws OperationException
CommunityMemberGroupProfileOperations
createGroup
in interface CommunityMemberGroupProfileOperations
resource
- the resource belonging to a tenant.requestParams
- a map that contains the group id.clientUtils
- clientUtilsOperationException
- operationExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved