public class OnPremiseRatingsServiceImpl extends AbstractRatingsService
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<OnPremiseRatingsServiceImpl> |
CREATOR |
CONTENT_CACHE, RENDITION_CACHE, session
Constructor and Description |
---|
OnPremiseRatingsServiceImpl(android.os.Parcel o) |
OnPremiseRatingsServiceImpl(RepositorySession repositorySession)
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
computeIsRated(org.apache.chemistry.opencmis.commons.impl.UrlBuilder url)
Internal method to compute data from server and retrieve if the user has
rate this node.
|
protected int |
computeRatingsCount(org.apache.chemistry.opencmis.commons.impl.UrlBuilder url)
Internal method to compute data from server and retrieve the number of
"like".
|
protected org.apache.chemistry.opencmis.commons.impl.json.JSONObject |
getRatingsObject()
Internal method to retrieve the ratings object from json data
|
protected org.apache.chemistry.opencmis.commons.impl.UrlBuilder |
getRatingsUrl(Node node)
Internal method to retrieve a specific ratings url to like a node.
|
protected org.apache.chemistry.opencmis.commons.impl.UrlBuilder |
getUnlikeUrl(Node node)
Internal method to retrieve a specific ratings url to unlike a node.
|
getLikeCount, isLiked, like, unlike
clear, convertException, convertNode, convertNode, convertStatusCode, delete, describeContents, getHttpInvoker, getSessionHttp, isCloudSession, isListNull, isMapNull, isObjectNull, isOnPremiseSession, isStringNull, post, put, read, saveContentStream, writeToParcel
public static final android.os.Parcelable.Creator<OnPremiseRatingsServiceImpl> CREATOR
public OnPremiseRatingsServiceImpl(RepositorySession repositorySession)
repositorySession
- : Repository Session.public OnPremiseRatingsServiceImpl(android.os.Parcel o)
protected org.apache.chemistry.opencmis.commons.impl.UrlBuilder getRatingsUrl(Node node)
getRatingsUrl
in class AbstractRatingsService
node
- : a rated nodeprotected org.apache.chemistry.opencmis.commons.impl.json.JSONObject getRatingsObject()
getRatingsObject
in class AbstractRatingsService
protected org.apache.chemistry.opencmis.commons.impl.UrlBuilder getUnlikeUrl(Node node)
getUnlikeUrl
in class AbstractRatingsService
node
- : a rated nodeprotected int computeRatingsCount(org.apache.chemistry.opencmis.commons.impl.UrlBuilder url)
AbstractRatingsService
computeRatingsCount
in class AbstractRatingsService
url
- : Alfresco REST API activity urlprotected boolean computeIsRated(org.apache.chemistry.opencmis.commons.impl.UrlBuilder url)
AbstractRatingsService
computeIsRated
in class AbstractRatingsService
url
- : Alfresco REST API activity urlCopyright © 2012-2018 Alfresco Software. All Rights Reserved.