Package org.alfresco.repo.discussion
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 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, String systemName, TopicInfo topic)Create aPostInfoobject from an existing node
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContents()DategetCreatedAt()StringgetCreator()DategetModifiedAt()StringgetModifier()org.alfresco.service.cmr.repository.NodeRefgetNodeRef()Get the underlying node value that needs to be permission checked.StringgetSystemName()StringgetTitle()TopicInfogetTopic()DategetUpdatedAt()voidsetContents(String contents)Sets the (HTML) Content of the postvoidsetCreatedAt(Date createdAt)voidsetCreator(String creator)voidsetModifiedAt(Date modifiedAt)voidsetModifier(String modifier)voidsetTitle(String title)Sets the Title of the post.voidsetUpdatedAt(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 String getSystemName()
- Specified by:
getSystemNamein interfacePostInfo- Returns:
- the System generated name for the post
-
getTitle
public String getTitle()
-
getContents
public String getContents()
- Specified by:
getContentsin interfacePostInfo- Returns:
- the HTML Content of the post
-
getCreator
public String getCreator()
- Specified by:
getCreatorin interfacePostInfo- Returns:
- the creator of the post
-
getModifier
public String getModifier()
- Specified by:
getModifierin interfacePostInfo- Returns:
- the modifier of the wiki page
-
getCreatedAt
public Date getCreatedAt()
- Specified by:
getCreatedAtin interfacePostInfo- Returns:
- the creation date and time
-
getModifiedAt
public Date getModifiedAt()
- Specified by:
getModifiedAtin interfacePostInfo- Returns:
- the modification date and time
-
getUpdatedAt
public Date getUpdatedAt()
- Specified by:
getUpdatedAtin interfacePostInfo- Returns:
- the updated-at date and time
-
setTitle
public void setTitle(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(String contents)
Description copied from interface:PostInfoSets the (HTML) Content of the post- Specified by:
setContentsin interfacePostInfo
-
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)
-
-