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 Details

    • GrpcGroupsApi

      public GrpcGroupsApi(GroupServiceClient groups)
      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:
      listGroupMembershipsForPerson in interface org.alfresco.core.handler.GroupsApi
      Parameters:
      personId - person ID or -me-
      skipCount - zero-based offset, default zero
      maxItems - page size from 1 to 1000, default 100
      orderBy - native group sort criteria
      include - optional parentIds and zones
      where - native group predicate, or null
      fields - 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:
      createGroup in interface org.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:
      createGroupMembership in interface org.alfresco.core.handler.GroupsApi
      Throws:
      feign.FeignException - with HTTP 501 when this operation is unavailable
    • deleteGroup

      public org.springframework.http.ResponseEntity<Void> deleteGroup(String groupId, Boolean cascade)
      Specified by:
      deleteGroup in interface org.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:
      deleteGroupMembership in interface org.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:
      getGroup in interface org.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:
      listGroupMemberships in interface org.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:
      listGroups in interface org.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:
      updateGroup in interface org.alfresco.core.handler.GroupsApi
      Throws:
      feign.FeignException - with HTTP 501 when this operation is unavailable