org.alfresco.repo.discussion
Class PostInfoImpl

java.lang.Object
  extended by org.alfresco.repo.discussion.PostInfoImpl
All Implemented Interfaces:
java.io.Serializable, PermissionCheckValue, PostInfo

public class PostInfoImpl
extends java.lang.Object
implements PostInfo

An implementation of PostInfo

Since:
4.0
See Also:
Serialized Form

Constructor Summary
PostInfoImpl()
          Creates a new, empty PostInfo
PostInfoImpl(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.lang.String systemName, TopicInfo topic)
          Create a PostInfo object from an existing node
 
Method Summary
 java.lang.String getContents()
           
 java.util.Date getCreatedAt()
           
 java.lang.String getCreator()
           
 java.util.Date getModifiedAt()
           
 java.lang.String getModifier()
           
 org.alfresco.service.cmr.repository.NodeRef getNodeRef()
          Get the underlying node value that needs to be permission checked.
 java.lang.String getSystemName()
           
 java.lang.String getTitle()
           
 TopicInfo getTopic()
           
 java.util.Date getUpdatedAt()
           
 void setContents(java.lang.String contents)
          Sets the (HTML) Content of the post
 void setCreatedAt(java.util.Date createdAt)
           
 void setCreator(java.lang.String creator)
           
 void setModifiedAt(java.util.Date modifiedAt)
           
 void setModifier(java.lang.String modifier)
           
 void setTitle(java.lang.String title)
          Sets the Title of the post.
 void setUpdatedAt(java.util.Date updatedAt)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostInfoImpl

public PostInfoImpl()
Creates a new, empty PostInfo


PostInfoImpl

public PostInfoImpl(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                    java.lang.String systemName,
                    TopicInfo topic)
Create a PostInfo object from an existing node

Method Detail

getTopic

public TopicInfo getTopic()
Specified by:
getTopic in interface PostInfo
Returns:
the TopicInfo representing the topic this belongs to

getNodeRef

public org.alfresco.service.cmr.repository.NodeRef getNodeRef()
Description copied from interface: PermissionCheckValue
Get the underlying node value that needs to be permission checked.

Specified by:
getNodeRef in interface PermissionCheckValue
Specified by:
getNodeRef in interface PostInfo
Returns:
the NodeRef of the underlying post

getSystemName

public java.lang.String getSystemName()
Specified by:
getSystemName in interface PostInfo
Returns:
the System generated name for the post

getTitle

public java.lang.String getTitle()
Specified by:
getTitle in interface PostInfo
Returns:
the Title of the post (if set)

getContents

public java.lang.String getContents()
Specified by:
getContents in interface PostInfo
Returns:
the HTML Content of the post

getCreator

public java.lang.String getCreator()
Specified by:
getCreator in interface PostInfo
Returns:
the creator of the post

getModifier

public java.lang.String getModifier()
Specified by:
getModifier in interface PostInfo
Returns:
the modifier of the wiki page

getCreatedAt

public java.util.Date getCreatedAt()
Specified by:
getCreatedAt in interface PostInfo
Returns:
the creation date and time

getModifiedAt

public java.util.Date getModifiedAt()
Specified by:
getModifiedAt in interface PostInfo
Returns:
the modification date and time

getUpdatedAt

public java.util.Date getUpdatedAt()
Specified by:
getUpdatedAt in interface PostInfo
Returns:
the updated-at date and time

setTitle

public void setTitle(java.lang.String title)
Description copied from interface: PostInfo
Sets the Title of the post. Normally only the Primary Post in a Topic has a Title set.

Specified by:
setTitle in interface PostInfo

setContents

public void setContents(java.lang.String contents)
Description copied from interface: PostInfo
Sets the (HTML) Content of the post

Specified by:
setContents in interface PostInfo

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)


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.