public class OnPremiseCommentServiceImpl extends AbstractCommentService
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<OnPremiseCommentServiceImpl> |
CREATOR |
CONTENT_CACHE, RENDITION_CACHE, session
SORT_PROPERTY_CREATED_AT
Constructor and Description |
---|
OnPremiseCommentServiceImpl(AlfrescoSession repositorySession)
Default Constructor.
|
OnPremiseCommentServiceImpl(android.os.Parcel o) |
Modifier and Type | Method and Description |
---|---|
protected PagingResult<Comment> |
computeComment(org.apache.chemistry.opencmis.commons.impl.UrlBuilder url)
Internal method to compute data from server and transform it as high
level object.
|
protected org.apache.chemistry.opencmis.commons.impl.UrlBuilder |
getCommentsUrl(Node node,
ListingContext listingContext,
boolean isReadOperation)
Internal method to retrieve node comments url.
|
protected org.apache.chemistry.opencmis.commons.impl.UrlBuilder |
getCommentUrl(Node node,
Comment comment)
Internal method to retrieve a specific comment url.
|
protected Comment |
parseData(Map<String,Object> json)
Parse Json Data response from the repository.
|
addComment, deleteComment, getComments, getComments, updateComment
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<OnPremiseCommentServiceImpl> CREATOR
public OnPremiseCommentServiceImpl(AlfrescoSession repositorySession)
repositorySession
- : Repository Session.public OnPremiseCommentServiceImpl(android.os.Parcel o)
protected org.apache.chemistry.opencmis.commons.impl.UrlBuilder getCommentsUrl(Node node, ListingContext listingContext, boolean isReadOperation)
getCommentsUrl
in class AbstractCommentService
node
- : a commented nodelistingContext
- : define characteristics of the result (Optional
for Onpremise)protected org.apache.chemistry.opencmis.commons.impl.UrlBuilder getCommentUrl(Node node, Comment comment)
getCommentUrl
in class AbstractCommentService
node
- : a commented nodecomment
- : the comment object (cloud only)protected Comment parseData(Map<String,Object> json)
AbstractCommentService
parseData
in class AbstractCommentService
json
- : Map of data.protected PagingResult<Comment> computeComment(org.apache.chemistry.opencmis.commons.impl.UrlBuilder url)
computeComment
in class AbstractCommentService
url
- : Alfresco REST API activity urlCopyright © 2012-2018 Alfresco Software. All Rights Reserved.