Package org.alfresco.repo.discussion
Class TopicInfoImpl
- java.lang.Object
-
- org.alfresco.repo.discussion.TopicInfoImpl
-
- All Implemented Interfaces:
java.io.Serializable,PermissionCheckValue,TopicInfo
public class TopicInfoImpl extends java.lang.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, java.lang.String systemName)Create aTopicInfoobject from an existing node
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)org.alfresco.service.cmr.repository.NodeRefgetContainerNodeRef()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.StringgetShortSiteName()java.lang.StringgetSystemName()java.util.List<java.lang.String>getTags()java.lang.StringgetTitle()inthashCode()voidsetCreatedAt(java.util.Date createdAt)voidsetCreator(java.lang.String creator)voidsetModifiedAt(java.util.Date modifiedAt)voidsetModifier(java.lang.String modifier)voidsetShortSiteName(java.lang.String shortSiteName)voidsetTags(java.util.List<java.lang.String> tags)voidsetTitle(java.lang.String title)Sets the Title of the topic.
-
-
-
Constructor Detail
-
TopicInfoImpl
public TopicInfoImpl()
Creates a new, emptyTopicInfo
-
TopicInfoImpl
public TopicInfoImpl(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.cmr.repository.NodeRef containerNodeRef, java.lang.String systemName)Create aTopicInfoobject from an existing node
-
-
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 java.lang.String getSystemName()
- Specified by:
getSystemNamein interfaceTopicInfo- Returns:
- the System generated name for the topic
-
getTitle
public java.lang.String getTitle()
-
getCreator
public java.lang.String getCreator()
- Specified by:
getCreatorin interfaceTopicInfo- Returns:
- the creator of the topic
-
getModifier
public java.lang.String getModifier()
- Specified by:
getModifierin interfaceTopicInfo- Returns:
- the modifier of the wiki page
-
getCreatedAt
public java.util.Date getCreatedAt()
- Specified by:
getCreatedAtin interfaceTopicInfo- Returns:
- the creation date and time
-
getModifiedAt
public java.util.Date getModifiedAt()
- Specified by:
getModifiedAtin interfaceTopicInfo- Returns:
- the modification date and time
-
getTags
public java.util.List<java.lang.String> getTags()
-
setTitle
public void setTitle(java.lang.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(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)
-
setTags
public void setTags(java.util.List<java.lang.String> tags)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
getShortSiteName
public java.lang.String getShortSiteName()
- Specified by:
getShortSiteNamein interfaceTopicInfo- Returns:
- the site this topic is associated with
-
setShortSiteName
public void setShortSiteName(java.lang.String shortSiteName)
-
-