org.springframework.social.alfresco.api.entities
Class Comment

java.lang.Object
  extended by org.springframework.social.alfresco.api.entities.Comment

public class Comment
extends Object

A comment on folders and individual items to give other users information or notes specific to that content.

Author:
jottley

Constructor Summary
Comment()
           
 
Method Summary
 boolean canEdit()
           
 String getContent()
           
 Date getCreatedAt()
           
 Person getCreatedBy()
           
 String getId()
           
 Date getModifiedAt()
           
 Person getModifiedBy()
           
 boolean isCanDelete()
           
 boolean isEdited()
           
 void setCanDelete(boolean canDelete)
          Set True if this comment can be deleted by the current authenticated user.
 void setCanEdit(boolean canEdit)
          Set True if this comment can be edited by the current authenticated user.
 void setContent(String content)
          Set the comment
 void setCreatedAt(Date createdAt)
          Set the date time that the comment was created
 void setCreatedBy(Person createdBy)
          Set the People object describing the person who created this comment
 void setEdited(boolean edited)
          Set True if comment has been edited since it was first created
 void setId(String id)
          Set the unique opaque string id
 void setModifiedAt(Date modifiedAt)
          Set the date time that the comment was last modified
 void setModifiedBy(Person modifiedBy)
          Set the People object describing the person who last modified this comment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Comment

public Comment()
Method Detail

isEdited

public boolean isEdited()
Returns:
True if the comment has been edited since it was first created

setEdited

public void setEdited(boolean edited)
Set True if comment has been edited since it was first created

Parameters:
edited -

getContent

public String getContent()
Returns:
The comment itself

setContent

public void setContent(String content)
Set the comment

Parameters:
content -

getId

public String getId()
Returns:
A unique opaque string id

setId

public void setId(String id)
Set the unique opaque string id

Parameters:
id -

getModifiedAt

public Date getModifiedAt()
Returns:
The date time that the comment was last modified

setModifiedAt

public void setModifiedAt(Date modifiedAt)
Set the date time that the comment was last modified

Parameters:
modifiedAt -

getCreatedAt

public Date getCreatedAt()
Returns:
The date time that the comment was created

setCreatedAt

public void setCreatedAt(Date createdAt)
Set the date time that the comment was created

Parameters:
createdAt -

getCreatedBy

public Person getCreatedBy()
Returns:
An embedded People object describing the person who created this comment

setCreatedBy

public void setCreatedBy(Person createdBy)
Set the People object describing the person who created this comment

Parameters:
createdBy -

isCanDelete

public boolean isCanDelete()
Returns:
True if this comment can be deleted by the current authenticated user. False if not, or if the node that is being commented upon is either a working copy or locked.

setCanDelete

public void setCanDelete(boolean canDelete)
Set True if this comment can be deleted by the current authenticated user. False if not, or if the node that is being commented upon is either a working copy or locked.

Parameters:
canDelete -

getModifiedBy

public Person getModifiedBy()
Returns:
An embedded People object describing the person who last modified this comment

setModifiedBy

public void setModifiedBy(Person modifiedBy)
Set the People object describing the person who last modified this comment

Parameters:
modifiedBy -

canEdit

public boolean canEdit()
Returns:
True if this comment can be edited by the current authenticated user. False if not, or if the node that is being commented upon is either a working copy or locked.

setCanEdit

public void setCanEdit(boolean canEdit)
Set True if this comment can be edited by the current authenticated user. False if not, or if the node that is being commented upon is either a working copy or locked.

Parameters:
canEdit -


Copyright © 2012 Alfresco Software Inc.. All Rights Reserved.