Class PostInfoImpl

java.lang.Object
org.alfresco.repo.discussion.PostInfoImpl
All Implemented Interfaces:
Serializable, PermissionCheckValue, PostInfo

public class PostInfoImpl extends Object implements PostInfo
An implementation of PostInfo
Since:
4.0
Author:
Nick Burch (based on existing webscript controllers in the REST API)
See Also:
  • Constructor Details

    • PostInfoImpl

      public PostInfoImpl()
      Creates a new, empty PostInfo
    • PostInfoImpl

      public PostInfoImpl(NodeRef nodeRef, String systemName, TopicInfo topic)
      Create a PostInfo object from an existing node
  • Method Details

    • getTopic

      public TopicInfo getTopic()
      Specified by:
      getTopic in interface PostInfo
      Returns:
      the TopicInfo representing the topic this belongs to
    • getNodeRef

      public NodeRef getNodeRef()
      Description copied from interface: PermissionCheckValue
      Get the underlying node value that needs to be permission checked.
      Specified by:
      getNodeRef in interface PermissionCheckValue
      Specified by:
      getNodeRef in interface PostInfo
      Returns:
      the NodeRef of the underlying post
    • getSystemName

      public String getSystemName()
      Specified by:
      getSystemName in interface PostInfo
      Returns:
      the System generated name for the post
    • getTitle

      public String getTitle()
      Specified by:
      getTitle in interface PostInfo
      Returns:
      the Title of the post (if set)
    • getContents

      public String getContents()
      Specified by:
      getContents in interface PostInfo
      Returns:
      the HTML Content of the post
    • getCreator

      public String getCreator()
      Specified by:
      getCreator in interface PostInfo
      Returns:
      the creator of the post
    • getModifier

      public String getModifier()
      Specified by:
      getModifier in interface PostInfo
      Returns:
      the modifier of the wiki page
    • getCreatedAt

      public Date getCreatedAt()
      Specified by:
      getCreatedAt in interface PostInfo
      Returns:
      the creation date and time
    • getModifiedAt

      public Date getModifiedAt()
      Specified by:
      getModifiedAt in interface PostInfo
      Returns:
      the modification date and time
    • getUpdatedAt

      public Date getUpdatedAt()
      Specified by:
      getUpdatedAt in interface PostInfo
      Returns:
      the updated-at date and time
    • setTitle

      public void setTitle(String title)
      Description copied from interface: PostInfo
      Sets the Title of the post. Normally only the Primary Post in a Topic has a Title set.
      Specified by:
      setTitle in interface PostInfo
    • setContents

      public void setContents(String contents)
      Description copied from interface: PostInfo
      Sets the (HTML) Content of the post
      Specified by:
      setContents in interface PostInfo
    • setCreator

      public void setCreator(String creator)
    • setModifier

      public void setModifier(String modifier)
    • setCreatedAt

      public void setCreatedAt(Date createdAt)
    • setModifiedAt

      public void setModifiedAt(Date modifiedAt)
    • setUpdatedAt

      public void setUpdatedAt(Date updatedAt)