Class GrpcPeopleApi

java.lang.Object
org.saidone.restless.sdk.GrpcPeopleApi
All Implemented Interfaces:
org.alfresco.core.handler.PeopleApi, org.alfresco.core.handler.PeopleApiClient

public final class GrpcPeopleApi extends Object implements org.alfresco.core.handler.PeopleApiClient
SDK adapter for reads of a single Alfresco person.
  • Constructor Details

    • GrpcPeopleApi

      public GrpcPeopleApi(PersonServiceClient people)
      Creates the SDK adapter with default Feign error mapping.
      Parameters:
      people - shared client supplying the repository caller's ticket
  • Method Details

    • getPerson

      public org.springframework.http.ResponseEntity<org.alfresco.core.model.PersonEntry> getPerson(String personId, List<String> fields)
      Reads the native person profile and capabilities under the client ticket's identity.
      Specified by:
      getPerson in interface org.alfresco.core.handler.PeopleApi
      Parameters:
      personId - person ID or -me- for the current caller
      fields - optional flat response fields; null or empty selects the default profile
      Returns:
      the person entry with HTTP 200
    • createPerson

      public org.springframework.http.ResponseEntity<org.alfresco.core.model.PersonEntry> createPerson(org.alfresco.core.model.PersonBodyCreate body, List<String> fields)
      Specified by:
      createPerson in interface org.alfresco.core.handler.PeopleApi
      Throws:
      feign.FeignException - with HTTP 501 when this operation is unavailable
    • deauthorizeUser

      public org.springframework.http.ResponseEntity<Void> deauthorizeUser(String personId)
      Specified by:
      deauthorizeUser in interface org.alfresco.core.handler.PeopleApi
      Throws:
      feign.FeignException - with HTTP 501 when this operation is unavailable
    • deleteAvatarImage

      public org.springframework.http.ResponseEntity<Void> deleteAvatarImage(String personId)
      Specified by:
      deleteAvatarImage in interface org.alfresco.core.handler.PeopleApi
      Throws:
      feign.FeignException - with HTTP 501 when this operation is unavailable
    • getAvatarImage

      public org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> getAvatarImage(String personId, Boolean attachment, OffsetDateTime ifModifiedSince, Boolean placeholder)
      Specified by:
      getAvatarImage in interface org.alfresco.core.handler.PeopleApi
      Throws:
      feign.FeignException - with HTTP 501 when this operation is unavailable
    • listPeople

      public org.springframework.http.ResponseEntity<org.alfresco.core.model.PersonPaging> listPeople(Integer skipCount, Integer maxItems, List<String> orderBy, List<String> include, List<String> fields)
      Specified by:
      listPeople in interface org.alfresco.core.handler.PeopleApi
      Throws:
      feign.FeignException - with HTTP 501 when this operation is unavailable
    • reauthorizationCode

      public org.springframework.http.ResponseEntity<org.alfresco.core.model.AuthCodeEntry> reauthorizationCode(String personId)
      Specified by:
      reauthorizationCode in interface org.alfresco.core.handler.PeopleApi
      Throws:
      feign.FeignException - with HTTP 501 when this operation is unavailable
    • reauthorizeUser

      public org.springframework.http.ResponseEntity<Void> reauthorizeUser(String personId, org.alfresco.core.model.AuthKey key)
      Specified by:
      reauthorizeUser in interface org.alfresco.core.handler.PeopleApi
      Throws:
      feign.FeignException - with HTTP 501 when this operation is unavailable
    • requestPasswordReset

      public org.springframework.http.ResponseEntity<Void> requestPasswordReset(String personId, org.alfresco.core.model.ClientBody body)
      Specified by:
      requestPasswordReset in interface org.alfresco.core.handler.PeopleApi
      Throws:
      feign.FeignException - with HTTP 501 when this operation is unavailable
    • resetPassword

      public org.springframework.http.ResponseEntity<Void> resetPassword(String personId, org.alfresco.core.model.PasswordResetBody body)
      Specified by:
      resetPassword in interface org.alfresco.core.handler.PeopleApi
      Throws:
      feign.FeignException - with HTTP 501 when this operation is unavailable
    • updateAvatarImage

      public org.springframework.http.ResponseEntity<Void> updateAvatarImage(String personId, byte[] content)
      Specified by:
      updateAvatarImage in interface org.alfresco.core.handler.PeopleApi
      Throws:
      feign.FeignException - with HTTP 501 when this operation is unavailable
    • updatePerson

      public org.springframework.http.ResponseEntity<org.alfresco.core.model.PersonEntry> updatePerson(String personId, org.alfresco.core.model.PersonBodyUpdate body, List<String> fields)
      Specified by:
      updatePerson in interface org.alfresco.core.handler.PeopleApi
      Throws:
      feign.FeignException - with HTTP 501 when this operation is unavailable