Package org.alfresco.repo.discussion
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 ofTopicInfo- Since:
- 4.0
- Author:
- Nick Burch (based on existing webscript controllers in the REST API)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TopicInfoImpl()Creates a new, emptyTopicInfoTopicInfoImpl(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.cmr.repository.NodeRef containerNodeRef, String systemName)Create aTopicInfoobject from an existing node
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)org.alfresco.service.cmr.repository.NodeRefgetContainerNodeRef()DategetCreatedAt()StringgetCreator()DategetModifiedAt()StringgetModifier()org.alfresco.service.cmr.repository.NodeRefgetNodeRef()Get the underlying node value that needs to be permission checked.StringgetShortSiteName()StringgetSystemName()List<String>getTags()StringgetTitle()inthashCode()voidsetCreatedAt(Date createdAt)voidsetCreator(String creator)voidsetModifiedAt(Date modifiedAt)voidsetModifier(String modifier)voidsetShortSiteName(String shortSiteName)voidsetTags(List<String> tags)voidsetTitle(String title)Sets the Title of the topic.
-
-
-
Constructor Detail
-
TopicInfoImpl
public TopicInfoImpl()
Creates a new, emptyTopicInfo
-
-
Method Detail
-
getContainerNodeRef
public org.alfresco.service.cmr.repository.NodeRef getContainerNodeRef()
- Specified by:
getContainerNodeRefin interfaceTopicInfo- Returns:
- the NodeRef of the container this belongs to (Site or Otherwise)
-
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 interfaceTopicInfo- Returns:
- the NodeRef of the underlying topic
-
getSystemName
public String getSystemName()
- Specified by:
getSystemNamein interfaceTopicInfo- Returns:
- the System generated name for the topic
-
getTitle
public String getTitle()
-
getCreator
public String getCreator()
- Specified by:
getCreatorin interfaceTopicInfo- Returns:
- the creator of the topic
-
getModifier
public String getModifier()
- Specified by:
getModifierin interfaceTopicInfo- Returns:
- the modifier of the wiki page
-
getCreatedAt
public Date getCreatedAt()
- Specified by:
getCreatedAtin interfaceTopicInfo- Returns:
- the creation date and time
-
getModifiedAt
public Date getModifiedAt()
- Specified by:
getModifiedAtin interfaceTopicInfo- Returns:
- the modification date and time
-
setTitle
public void setTitle(String title)
Description copied from interface:TopicInfoSets the Title of the topic. The Title of the topic will be shared with the Primary Post
-
setCreator
public void setCreator(String creator)
-
setModifier
public void setModifier(String modifier)
-
setCreatedAt
public void setCreatedAt(Date createdAt)
-
setModifiedAt
public void setModifiedAt(Date modifiedAt)
-
getShortSiteName
public String getShortSiteName()
- Specified by:
getShortSiteNamein interfaceTopicInfo- Returns:
- the site this topic is associated with
-
setShortSiteName
public void setShortSiteName(String shortSiteName)
-
-