public class CommentImpl extends Object implements Comment
Constructor and Description |
---|
CommentImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
canDelete()
Returns true if the current user can delete this comment.
|
boolean |
canEdit()
Returns true if the current user can edit this comment.
|
String |
getContent()
Returns the HTML formatted content of the comment.
|
GregorianCalendar |
getCreatedAt()
Returns the timestamp in the session’s locale when this comment was
created.
|
String |
getCreatedBy()
Returns the username of the user who created the comment.
|
Person |
getCreatedByPerson() |
String |
getIdentifier()
Returns the unique identifier of the comment.
|
GregorianCalendar |
getModifiedAt()
Returns the timestamp in the session’s locale when this comment has been
modified.
|
String |
getName()
Returns the name of this comment.
|
String |
getTitle()
Returns the title of this comment.
|
boolean |
isEdited()
Indicates whether the comment has been edited since it was initially
created.
|
static CommentImpl |
parseJson(Map<String,Object> json)
Parse Json Response from Alfresco REST API to create a comment Object.
|
static CommentImpl |
parsePublicAPIJson(Map<String,Object> json)
Parse Json Response from Alfresco Public API to create a comment Object.
|
public static CommentImpl parseJson(Map<String,Object> json)
json
- : json response that contains data from the repositorypublic static CommentImpl parsePublicAPIJson(Map<String,Object> json)
json
- : json response that contains data from the repositorypublic String getIdentifier()
getIdentifier
in interface Comment
public String getName()
public String getTitle()
public GregorianCalendar getCreatedAt()
getCreatedAt
in interface Comment
public GregorianCalendar getModifiedAt()
Comment
getModifiedAt
in interface Comment
public String getContent()
getContent
in interface Comment
public String getCreatedBy()
getCreatedBy
in interface Comment
public boolean isEdited()
public boolean canEdit()
public boolean canDelete()
public Person getCreatedByPerson()
Copyright © 2012-2018 Alfresco Software. All Rights Reserved.