Class TopicInfoImpl

java.lang.Object
org.alfresco.repo.discussion.TopicInfoImpl
All Implemented Interfaces:
Serializable, PermissionCheckValue, TopicInfo

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

    • TopicInfoImpl

      public TopicInfoImpl()
      Creates a new, empty TopicInfo
    • TopicInfoImpl

      public TopicInfoImpl(NodeRef nodeRef, NodeRef containerNodeRef, String systemName)
      Create a TopicInfo object from an existing node
  • Method Details

    • getContainerNodeRef

      public NodeRef getContainerNodeRef()
      Specified by:
      getContainerNodeRef in interface TopicInfo
      Returns:
      the NodeRef of the container this belongs to (Site or Otherwise)
    • 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 TopicInfo
      Returns:
      the NodeRef of the underlying topic
    • getSystemName

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

      public String getTitle()
      Specified by:
      getTitle in interface TopicInfo
      Returns:
      the Title of the topic.
    • getCreator

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

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

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

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

      public List<String> getTags()
      Specified by:
      getTags in interface TopicInfo
      Returns:
      the Tags associated with the topic
    • setTitle

      public void setTitle(String title)
      Description copied from interface: TopicInfo
      Sets the Title of the topic. The Title of the topic will be shared with the Primary Post
      Specified by:
      setTitle in interface TopicInfo
    • setCreator

      public void setCreator(String creator)
    • setModifier

      public void setModifier(String modifier)
    • setCreatedAt

      public void setCreatedAt(Date createdAt)
    • setModifiedAt

      public void setModifiedAt(Date modifiedAt)
    • setTags

      public void setTags(List<String> tags)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getShortSiteName

      public String getShortSiteName()
      Specified by:
      getShortSiteName in interface TopicInfo
      Returns:
      the site this topic is associated with
    • setShortSiteName

      public void setShortSiteName(String shortSiteName)