Package org.saidone.restless.sdk
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 Summary
ConstructorsConstructorDescriptionGrpcPeopleApi(PersonServiceClient people) Creates the SDK adapter with default Feign error mapping. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<org.alfresco.core.model.PersonEntry> createPerson(org.alfresco.core.model.PersonBodyCreate body, List<String> fields) org.springframework.http.ResponseEntity<Void> deauthorizeUser(String personId) org.springframework.http.ResponseEntity<Void> deleteAvatarImage(String personId) org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> getAvatarImage(String personId, Boolean attachment, OffsetDateTime ifModifiedSince, Boolean placeholder) org.springframework.http.ResponseEntity<org.alfresco.core.model.PersonEntry> Reads the native person profile and capabilities under the client ticket's identity.org.springframework.http.ResponseEntity<org.alfresco.core.model.PersonPaging> listPeople(Integer skipCount, Integer maxItems, List<String> orderBy, List<String> include, List<String> fields) org.springframework.http.ResponseEntity<org.alfresco.core.model.AuthCodeEntry> reauthorizationCode(String personId) org.springframework.http.ResponseEntity<Void> reauthorizeUser(String personId, org.alfresco.core.model.AuthKey key) org.springframework.http.ResponseEntity<Void> requestPasswordReset(String personId, org.alfresco.core.model.ClientBody body) org.springframework.http.ResponseEntity<Void> resetPassword(String personId, org.alfresco.core.model.PasswordResetBody body) org.springframework.http.ResponseEntity<Void> updateAvatarImage(String personId, byte[] content) org.springframework.http.ResponseEntity<org.alfresco.core.model.PersonEntry> updatePerson(String personId, org.alfresco.core.model.PersonBodyUpdate body, List<String> fields)
-
Constructor Details
-
GrpcPeopleApi
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:
getPersonin interfaceorg.alfresco.core.handler.PeopleApi- Parameters:
personId- person ID or-me-for the current callerfields- 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:
createPersonin interfaceorg.alfresco.core.handler.PeopleApi- Throws:
feign.FeignException- with HTTP 501 when this operation is unavailable
-
deauthorizeUser
- Specified by:
deauthorizeUserin interfaceorg.alfresco.core.handler.PeopleApi- Throws:
feign.FeignException- with HTTP 501 when this operation is unavailable
-
deleteAvatarImage
- Specified by:
deleteAvatarImagein interfaceorg.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:
getAvatarImagein interfaceorg.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:
listPeoplein interfaceorg.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:
reauthorizationCodein interfaceorg.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:
reauthorizeUserin interfaceorg.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:
requestPasswordResetin interfaceorg.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:
resetPasswordin interfaceorg.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:
updateAvatarImagein interfaceorg.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:
updatePersonin interfaceorg.alfresco.core.handler.PeopleApi- Throws:
feign.FeignException- with HTTP 501 when this operation is unavailable
-