Class WikiPageInfoImpl

java.lang.Object
org.alfresco.repo.wiki.WikiPageInfoImpl
All Implemented Interfaces:
Serializable, org.alfresco.repo.security.permissions.PermissionCheckValue, WikiPageInfo

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

    • WikiPageInfoImpl

      public WikiPageInfoImpl()
      Creates a new, empty WikiPageInfo
    • WikiPageInfoImpl

      public WikiPageInfoImpl(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.cmr.repository.NodeRef containerNodeRef, String systemName)
      Create a WikiPageInfo object from an existing node
  • Method Details

    • getContainerNodeRef

      public org.alfresco.service.cmr.repository.NodeRef getContainerNodeRef()
      Specified by:
      getContainerNodeRef in interface WikiPageInfo
      Returns:
      the NodeRef of the site container this belongs to
    • getNodeRef

      public org.alfresco.service.cmr.repository.NodeRef getNodeRef()
      Specified by:
      getNodeRef in interface org.alfresco.repo.security.permissions.PermissionCheckValue
      Specified by:
      getNodeRef in interface WikiPageInfo
      Returns:
      the NodeRef of the underlying wiki page
    • getSystemName

      public String getSystemName()
      Specified by:
      getSystemName in interface WikiPageInfo
      Returns:
      the name of the wiki page
    • getTitle

      public String getTitle()
      Specified by:
      getTitle in interface WikiPageInfo
      Returns:
      the Title of the wiki page
    • getContents

      public String getContents()
      Specified by:
      getContents in interface WikiPageInfo
      Returns:
      the HTML Content of the wiki page
    • getCreator

      public String getCreator()
      Specified by:
      getCreator in interface WikiPageInfo
      Returns:
      the creator of the wiki page
    • getModifier

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

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

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

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

      public void setTitle(String title)
      Description copied from interface: WikiPageInfo
      Sets the Title of the wiki page
      Specified by:
      setTitle in interface WikiPageInfo
    • setContents

      public void setContents(String contents)
      Description copied from interface: WikiPageInfo
      Sets the (HTML) Content of the wiki page
      Specified by:
      setContents in interface WikiPageInfo
    • 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)