CodeBeamer 5.4.0.1-RC API

com.intland.codebeamer.persistence.dto
Class ForumPostDto

java.lang.Object
  extended by com.intland.codebeamer.persistence.dto.base.IdentifiableDto
      extended by com.intland.codebeamer.persistence.dto.base.NamedDto
          extended by com.intland.codebeamer.persistence.dto.base.DescribeableDto
              extended by com.intland.codebeamer.persistence.dto.base.AbstractCommentDto
                  extended by com.intland.codebeamer.persistence.dto.ForumPostDto
All Implemented Interfaces:
BaseDto, IndexableDto, ProjectAwareDto, ReferableDto, WriteControlledDto, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable

public class ForumPostDto
extends AbstractCommentDto
implements ProjectAwareDto, ReferableDto, IndexableDto, WriteControlledDto

Wraps a forum post.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.intland.codebeamer.persistence.dto.base.DescribeableDto
DescribeableDto.DescriptionComparator
 
Nested classes/interfaces inherited from class com.intland.codebeamer.persistence.dto.base.NamedDto
NamedDto.NameComparator
 
Nested classes/interfaces inherited from class com.intland.codebeamer.persistence.dto.base.IdentifiableDto
IdentifiableDto.IdComparator
 
Nested classes/interfaces inherited from interface com.intland.codebeamer.persistence.dto.base.ReferableDto
ReferableDto.DescriptionComparator
 
Field Summary
static java.lang.String INTERWIKI_LINK_TYPE
           
 
Fields inherited from interface com.intland.codebeamer.persistence.dto.base.ReferableDto
HEAD_VERSION, SECTION_DELIMITER, VERSION_DELIMITER
 
Constructor Summary
ForumPostDto()
           
 
Method Summary
 int compareTo(java.lang.Object obj)
          Caution: NamedDto compareTo violates the rule that a.equals(b) is equivalent to a.compareTo(b) == 0, because only the names are compared
 java.lang.String getAttachmentFileName()
           
 java.lang.String getAttachmentIndexed()
           
 java.lang.Integer getAttachmentLength()
           
 java.lang.String getAttachmentMimeType()
           
 ForumDto getForum()
           
 java.lang.String getIconUrl()
          Returns the URL of the (small) icon image that represents this DTO type.
 java.lang.String getInterwikiLink()
          Returns the interwiki link that points to the web page where this DTO is managed.
 ProjectDto getProject()
           
 java.lang.Integer getReplyToId()
           
 java.lang.String getShortDescription()
          Get the name/subject of this forum post.
 java.lang.String getSubject()
          Get the name/subject of this forum post.
 java.lang.String getSubmitterEmail()
           
 java.lang.Integer getThreadId()
           
 java.lang.Boolean getThreadIsWatched()
           
 java.lang.String getUrlLink()
          Returns the local URL that points to the web page where this DTO is managed.
 boolean isWritable()
           
 void setAttachmentFileName(java.lang.String attachmentFileName)
           
 void setAttachmentIndexed(java.lang.String attachmentIndexed)
           
 void setAttachmentLength(java.lang.Integer attachmentLength)
           
 void setAttachmentMimeType(java.lang.String attachmentMimeType)
           
 void setForum(ForumDto forum)
           
 void setProject(ProjectDto project)
           
 void setReplyToId(java.lang.Integer replyToId)
           
 void setSubject(java.lang.String subject)
          Set the name/subject of this forum post.
 void setSubmitterEmail(java.lang.String submitterEmail)
           
 void setThreadId(java.lang.Integer threadId)
           
 void setThreadIsWatched(java.lang.Boolean watchedThread)
           
 void setWritable(boolean editable)
           
 
Methods inherited from class com.intland.codebeamer.persistence.dto.base.AbstractCommentDto
compareDates, equals, getSubmittedAt, getSubmitter, isIndexed, setIndexed, setSubmittedAt, setSubmitter
 
Methods inherited from class com.intland.codebeamer.persistence.dto.base.DescribeableDto
compareByDescription, getDescription, getDescriptionFormat, setDescription, setDescriptionFormat
 
Methods inherited from class com.intland.codebeamer.persistence.dto.base.NamedDto
compareNames, compareString, compareStringIgnoreCase, createLookupMap, getName, hashCode, setName, toString
 
Methods inherited from class com.intland.codebeamer.persistence.dto.base.IdentifiableDto
clone, compare, compareInteger, equals, getId, hashCode, setId
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.intland.codebeamer.persistence.dto.base.IndexableDto
isIndexed, setIndexed
 

Field Detail

INTERWIKI_LINK_TYPE

public static final java.lang.String INTERWIKI_LINK_TYPE
See Also:
Constant Field Values
Constructor Detail

ForumPostDto

public ForumPostDto()
Method Detail

getProject

public ProjectDto getProject()
Specified by:
getProject in interface ProjectAwareDto

setProject

public void setProject(ProjectDto project)
Specified by:
setProject in interface ProjectAwareDto

getForum

public ForumDto getForum()

setForum

public void setForum(ForumDto forum)

getThreadId

public java.lang.Integer getThreadId()

setThreadId

public void setThreadId(java.lang.Integer threadId)

getSubmitterEmail

public java.lang.String getSubmitterEmail()

setSubmitterEmail

public void setSubmitterEmail(java.lang.String submitterEmail)

getSubject

public java.lang.String getSubject()
Get the name/subject of this forum post. This is equivalent to NamedDto.getName()

Returns:
the name/subject of this forum post

setSubject

public void setSubject(java.lang.String subject)
Set the name/subject of this forum post. This is equivalent to NamedDto.setName(String)

Parameters:
subject - is the name/subject of this forum post

getShortDescription

public java.lang.String getShortDescription()
Get the name/subject of this forum post. This is equivalent to NamedDto.getName() and getSubject()

Specified by:
getShortDescription in interface ReferableDto
Returns:
the name/subject of this forum post

getAttachmentFileName

public java.lang.String getAttachmentFileName()

setAttachmentFileName

public void setAttachmentFileName(java.lang.String attachmentFileName)

getAttachmentIndexed

public java.lang.String getAttachmentIndexed()

setAttachmentIndexed

public void setAttachmentIndexed(java.lang.String attachmentIndexed)

getAttachmentMimeType

public java.lang.String getAttachmentMimeType()

setAttachmentMimeType

public void setAttachmentMimeType(java.lang.String attachmentMimeType)

getAttachmentLength

public java.lang.Integer getAttachmentLength()

setAttachmentLength

public void setAttachmentLength(java.lang.Integer attachmentLength)

getReplyToId

public java.lang.Integer getReplyToId()

setReplyToId

public void setReplyToId(java.lang.Integer replyToId)

getThreadIsWatched

public java.lang.Boolean getThreadIsWatched()

setThreadIsWatched

public void setThreadIsWatched(java.lang.Boolean watchedThread)

isWritable

public boolean isWritable()
Specified by:
isWritable in interface WriteControlledDto

setWritable

public void setWritable(boolean editable)
Specified by:
setWritable in interface WriteControlledDto

getUrlLink

public java.lang.String getUrlLink()
Description copied from interface: ReferableDto
Returns the local URL that points to the web page where this DTO is managed.

Specified by:
getUrlLink in interface ReferableDto

getInterwikiLink

public java.lang.String getInterwikiLink()
Description copied from interface: ReferableDto
Returns the interwiki link that points to the web page where this DTO is managed.

Specified by:
getInterwikiLink in interface ReferableDto

getIconUrl

public java.lang.String getIconUrl()
Description copied from interface: ReferableDto
Returns the URL of the (small) icon image that represents this DTO type.

Specified by:
getIconUrl in interface ReferableDto

compareTo

public int compareTo(java.lang.Object obj)
Description copied from class: NamedDto
Caution: NamedDto compareTo violates the rule that a.equals(b) is equivalent to a.compareTo(b) == 0, because only the names are compared

Specified by:
compareTo in interface java.lang.Comparable
Overrides:
compareTo in class AbstractCommentDto

CodeBeamer 5.4.0.1-RC API

Copyright © 2006-2009 Intland Software. All rights reserved.