Package org.saidone.restless.sdk
Class GrpcGroupsApi
java.lang.Object
org.saidone.restless.sdk.GrpcGroupsApi
- All Implemented Interfaces:
org.alfresco.core.handler.GroupsApi,org.alfresco.core.handler.GroupsApiClient
public final class GrpcGroupsApi
extends Object
implements org.alfresco.core.handler.GroupsApiClient
SDK adapter for the group memberships of a person.
-
Constructor Summary
ConstructorsConstructorDescriptionGrpcGroupsApi(GroupServiceClient groups) Creates the SDK group adapter with default Feign error mapping. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<org.alfresco.core.model.GroupEntry> createGroup(org.alfresco.core.model.GroupBodyCreate body, List<String> include, List<String> fields) org.springframework.http.ResponseEntity<org.alfresco.core.model.GroupMemberEntry> createGroupMembership(String groupId, org.alfresco.core.model.GroupMembershipBodyCreate body, List<String> fields) org.springframework.http.ResponseEntity<Void> deleteGroup(String groupId, Boolean cascade) org.springframework.http.ResponseEntity<Void> deleteGroupMembership(String groupId, String memberId) org.springframework.http.ResponseEntity<org.alfresco.core.model.GroupEntry> org.springframework.http.ResponseEntity<org.alfresco.core.model.GroupMemberPaging> listGroupMemberships(String groupId, Integer skipCount, Integer maxItems, List<String> orderBy, String where, List<String> fields) org.springframework.http.ResponseEntity<org.alfresco.core.model.GroupPaging> listGroupMembershipsForPerson(String personId, Integer skipCount, Integer maxItems, List<String> orderBy, List<String> include, String where, List<String> fields) Returns a page of direct and indirect memberships using Alfresco's native authorization and filtering.org.springframework.http.ResponseEntity<org.alfresco.core.model.GroupPaging> listGroups(Integer skipCount, Integer maxItems, List<String> orderBy, List<String> include, String where, List<String> fields) org.springframework.http.ResponseEntity<org.alfresco.core.model.GroupEntry>
-
Constructor Details
-
GrpcGroupsApi
Creates the SDK group adapter with default Feign error mapping.- Parameters:
groups- shared group service client
-
-
Method Details
-
listGroupMembershipsForPerson
public org.springframework.http.ResponseEntity<org.alfresco.core.model.GroupPaging> listGroupMembershipsForPerson(String personId, Integer skipCount, Integer maxItems, List<String> orderBy, List<String> include, String where, List<String> fields) Returns a page of direct and indirect memberships using Alfresco's native authorization and filtering.- Specified by:
listGroupMembershipsForPersonin interfaceorg.alfresco.core.handler.GroupsApi- Parameters:
personId- person ID or-me-skipCount- zero-based offset, default zeromaxItems- page size from 1 to 1000, default 100orderBy- native group sort criteriainclude- optionalparentIdsandzoneswhere- native group predicate, or nullfields- optional flat response fields- Returns:
- a group page including count, total when available, and continuation
-
createGroup
public org.springframework.http.ResponseEntity<org.alfresco.core.model.GroupEntry> createGroup(org.alfresco.core.model.GroupBodyCreate body, List<String> include, List<String> fields) - Specified by:
createGroupin interfaceorg.alfresco.core.handler.GroupsApi- Throws:
feign.FeignException- with HTTP 501 when this operation is unavailable
-
createGroupMembership
public org.springframework.http.ResponseEntity<org.alfresco.core.model.GroupMemberEntry> createGroupMembership(String groupId, org.alfresco.core.model.GroupMembershipBodyCreate body, List<String> fields) - Specified by:
createGroupMembershipin interfaceorg.alfresco.core.handler.GroupsApi- Throws:
feign.FeignException- with HTTP 501 when this operation is unavailable
-
deleteGroup
- Specified by:
deleteGroupin interfaceorg.alfresco.core.handler.GroupsApi- Throws:
feign.FeignException- with HTTP 501 when this operation is unavailable
-
deleteGroupMembership
public org.springframework.http.ResponseEntity<Void> deleteGroupMembership(String groupId, String memberId) - Specified by:
deleteGroupMembershipin interfaceorg.alfresco.core.handler.GroupsApi- Throws:
feign.FeignException- with HTTP 501 when this operation is unavailable
-
getGroup
public org.springframework.http.ResponseEntity<org.alfresco.core.model.GroupEntry> getGroup(String groupId, List<String> include, List<String> fields) - Specified by:
getGroupin interfaceorg.alfresco.core.handler.GroupsApi- Throws:
feign.FeignException- with HTTP 501 when this operation is unavailable
-
listGroupMemberships
public org.springframework.http.ResponseEntity<org.alfresco.core.model.GroupMemberPaging> listGroupMemberships(String groupId, Integer skipCount, Integer maxItems, List<String> orderBy, String where, List<String> fields) - Specified by:
listGroupMembershipsin interfaceorg.alfresco.core.handler.GroupsApi- Throws:
feign.FeignException- with HTTP 501 when this operation is unavailable
-
listGroups
public org.springframework.http.ResponseEntity<org.alfresco.core.model.GroupPaging> listGroups(Integer skipCount, Integer maxItems, List<String> orderBy, List<String> include, String where, List<String> fields) - Specified by:
listGroupsin interfaceorg.alfresco.core.handler.GroupsApi- Throws:
feign.FeignException- with HTTP 501 when this operation is unavailable
-
updateGroup
public org.springframework.http.ResponseEntity<org.alfresco.core.model.GroupEntry> updateGroup(String groupId, org.alfresco.core.model.GroupBodyUpdate body, List<String> include, List<String> fields) - Specified by:
updateGroupin interfaceorg.alfresco.core.handler.GroupsApi- Throws:
feign.FeignException- with HTTP 501 when this operation is unavailable
-