Package org.alfresco.repo.discussion
Class PostInfoImpl
- java.lang.Object
-
- org.alfresco.repo.discussion.PostInfoImpl
-
- All Implemented Interfaces:
java.io.Serializable,PermissionCheckValue,PostInfo
public class PostInfoImpl extends java.lang.Object implements PostInfo
An implementation ofPostInfo- Since:
- 4.0
- Author:
- Nick Burch (based on existing webscript controllers in the REST API)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PostInfoImpl()Creates a new, emptyPostInfoPostInfoImpl(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.lang.String systemName, TopicInfo topic)Create aPostInfoobject from an existing node
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetContents()java.util.DategetCreatedAt()java.lang.StringgetCreator()java.util.DategetModifiedAt()java.lang.StringgetModifier()org.alfresco.service.cmr.repository.NodeRefgetNodeRef()Get the underlying node value that needs to be permission checked.java.lang.StringgetSystemName()java.lang.StringgetTitle()TopicInfogetTopic()java.util.DategetUpdatedAt()voidsetContents(java.lang.String contents)Sets the (HTML) Content of the postvoidsetCreatedAt(java.util.Date createdAt)voidsetCreator(java.lang.String creator)voidsetModifiedAt(java.util.Date modifiedAt)voidsetModifier(java.lang.String modifier)voidsetTitle(java.lang.String title)Sets the Title of the post.voidsetUpdatedAt(java.util.Date updatedAt)
-
-
-
Method Detail
-
getTopic
public TopicInfo getTopic()
-
getNodeRef
public org.alfresco.service.cmr.repository.NodeRef getNodeRef()
Description copied from interface:PermissionCheckValueGet the underlying node value that needs to be permission checked.- Specified by:
getNodeRefin interfacePermissionCheckValue- Specified by:
getNodeRefin interfacePostInfo- Returns:
- the NodeRef of the underlying post
-
getSystemName
public java.lang.String getSystemName()
- Specified by:
getSystemNamein interfacePostInfo- Returns:
- the System generated name for the post
-
getTitle
public java.lang.String getTitle()
-
getContents
public java.lang.String getContents()
- Specified by:
getContentsin interfacePostInfo- Returns:
- the HTML Content of the post
-
getCreator
public java.lang.String getCreator()
- Specified by:
getCreatorin interfacePostInfo- Returns:
- the creator of the post
-
getModifier
public java.lang.String getModifier()
- Specified by:
getModifierin interfacePostInfo- Returns:
- the modifier of the wiki page
-
getCreatedAt
public java.util.Date getCreatedAt()
- Specified by:
getCreatedAtin interfacePostInfo- Returns:
- the creation date and time
-
getModifiedAt
public java.util.Date getModifiedAt()
- Specified by:
getModifiedAtin interfacePostInfo- Returns:
- the modification date and time
-
getUpdatedAt
public java.util.Date getUpdatedAt()
- Specified by:
getUpdatedAtin interfacePostInfo- Returns:
- the updated-at date and time
-
setTitle
public void setTitle(java.lang.String title)
Description copied from interface:PostInfoSets the Title of the post. Normally only the Primary Post in a Topic has a Title set.
-
setContents
public void setContents(java.lang.String contents)
Description copied from interface:PostInfoSets the (HTML) Content of the post- Specified by:
setContentsin interfacePostInfo
-
setCreator
public void setCreator(java.lang.String creator)
-
setModifier
public void setModifier(java.lang.String modifier)
-
setCreatedAt
public void setCreatedAt(java.util.Date createdAt)
-
setModifiedAt
public void setModifiedAt(java.util.Date modifiedAt)
-
setUpdatedAt
public void setUpdatedAt(java.util.Date updatedAt)
-
-