public class PublicAPIRatingsServiceImpl extends AbstractRatingsService
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<PublicAPIRatingsServiceImpl> |
CREATOR |
CONTENT_CACHE, RENDITION_CACHE, session
Constructor and Description |
---|
PublicAPIRatingsServiceImpl(AlfrescoSession repositorySession)
Default Constructor.
|
PublicAPIRatingsServiceImpl(android.os.Parcel o) |
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<PublicAPIRatingsServiceImpl> CREATOR
public PublicAPIRatingsServiceImpl(AlfrescoSession repositorySession)
repositorySession
- : Repository Session.public PublicAPIRatingsServiceImpl(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)
computeRatingsCount
in class AbstractRatingsService
url
- : Alfresco REST API activity urlprotected boolean computeIsRated(org.apache.chemistry.opencmis.commons.impl.UrlBuilder url)
computeIsRated
in class AbstractRatingsService
url
- : Alfresco REST API activity urlCopyright © 2012-2018 Alfresco Software. All Rights Reserved.