public abstract class AbstractPersonService extends AlfrescoService implements PersonService
CONTENT_CACHE, RENDITION_CACHE, session
Constructor and Description |
---|
AbstractPersonService(AlfrescoSession repositorySession)
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected abstract Person |
computePerson(org.apache.chemistry.opencmis.commons.impl.UrlBuilder url)
Internal method to compute data from server and transform it as high
level object.
|
ContentFile |
getAvatar(Person person)
Retrieves the avatar rendition for the specified username.
|
ContentFile |
getAvatar(String personIdentifier)
Retrieves the avatar rendition for the specified username.
|
ContentStream |
getAvatarStream(String personIdentifier)
Retrieves the avatar rendition for the specified username.
|
abstract org.apache.chemistry.opencmis.commons.impl.UrlBuilder |
getAvatarUrl(String personIdentifier) |
Person |
getPerson(String personIdentifier) |
protected abstract org.apache.chemistry.opencmis.commons.impl.UrlBuilder |
getPersonDetailssUrl(String personIdentifier)
Internal method to retrieve personDetails url.
|
clear, convertException, convertNode, convertNode, convertStatusCode, delete, describeContents, getHttpInvoker, getSessionHttp, isCloudSession, isListNull, isMapNull, isObjectNull, isOnPremiseSession, isStringNull, post, put, read, saveContentStream, writeToParcel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
refresh, search, search
public AbstractPersonService(AlfrescoSession repositorySession)
repositorySession
- : Repository Session.protected abstract org.apache.chemistry.opencmis.commons.impl.UrlBuilder getPersonDetailssUrl(String personIdentifier)
personIdentifier
- : person who wants to retrieve informations.public Person getPerson(String personIdentifier)
getPerson
in interface PersonService
personIdentifier
- : unique identifier of a personpublic abstract org.apache.chemistry.opencmis.commons.impl.UrlBuilder getAvatarUrl(String personIdentifier)
public ContentStream getAvatarStream(String personIdentifier)
personIdentifier
- : Username of personpublic ContentFile getAvatar(String personIdentifier)
personIdentifier
- : Username of personpublic ContentFile getAvatar(Person person)
getAvatar
in interface PersonService
person
- : Person objectprotected abstract Person computePerson(org.apache.chemistry.opencmis.commons.impl.UrlBuilder url)
url
- : Alfresco REST API activity urlCopyright © 2012-2018 Alfresco Software. All Rights Reserved.