|
CodeBeamer 5.4.0.1-RC API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.intland.codebeamer.persistence.dto.base.IdentifiableDto
com.intland.codebeamer.persistence.dto.base.NamedDto
com.intland.codebeamer.persistence.dto.base.DescribeableDto
com.intland.codebeamer.persistence.dto.base.AbstractCommentDto
public abstract class AbstractCommentDto
Each comment DTO must extend this.
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 |
Constructor Summary | |
---|---|
AbstractCommentDto()
|
|
AbstractCommentDto(AbstractCommentDto comment)
|
|
AbstractCommentDto(java.util.Date submittedAt,
UserDto submitter,
java.lang.String name,
java.lang.String description,
java.lang.String format)
|
Method Summary | |
---|---|
static int |
compareDates(java.util.Date d1,
java.util.Date d2)
Compare two Dates that may be null |
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 |
boolean |
equals(java.lang.Object obj)
|
java.util.Date |
getSubmittedAt()
Get the date and time this comment was submitted/created |
UserDto |
getSubmitter()
Get the user that submitted this post |
boolean |
isIndexed()
Check whether this post has been indexed for search |
void |
setIndexed(boolean indexed)
Set whether this post has been indexed for search |
void |
setSubmittedAt(java.util.Date submittedAt)
Set the date and time this post was submitted/created |
void |
setSubmitter(UserDto submitter)
Set the user that submitted this post |
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 |
Constructor Detail |
---|
public AbstractCommentDto()
public AbstractCommentDto(java.util.Date submittedAt, UserDto submitter, java.lang.String name, java.lang.String description, java.lang.String format)
public AbstractCommentDto(AbstractCommentDto comment)
Method Detail |
---|
public java.util.Date getSubmittedAt()
public void setSubmittedAt(java.util.Date submittedAt)
submittedAt
- date (and time)public UserDto getSubmitter()
public void setSubmitter(UserDto submitter)
submitter
- is the user that submitted this postpublic boolean isIndexed()
isIndexed
in interface IndexableDto
public void setIndexed(boolean indexed)
setIndexed
in interface IndexableDto
indexed
- is true if the post has been indexed for search, otherwise falsepublic int compareTo(java.lang.Object obj)
NamedDto
a.equals(b)
is equivalent to a.compareTo(b) == 0
, because only the names are compared
compareTo
in interface java.lang.Comparable
compareTo
in class NamedDto
public boolean equals(java.lang.Object obj)
equals
in class NamedDto
public static int compareDates(java.util.Date d1, java.util.Date d2)
d1
- is the first Date, or nulld2
- is the second Date, or null
|
CodeBeamer 5.4.0.1-RC API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |