|
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
com.intland.codebeamer.persistence.dto.TrackerItemCommentDto
public class TrackerItemCommentDto
Wraps a tracker item comment.
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 |
URL_RESOURCE_PREFIX
URL prefix for tracker item comments. |
static int |
VISIBLE_TO_COMMENT_SUBMITTER
This comment should be visible for the comment owner/submitter |
static int |
VISIBLE_TO_ISSUE_ASSIGNEES
This comment should be visible for the users assigned to the issue |
static int |
VISIBLE_TO_ISSUE_SUBMITTER
This comment should be visible for the issue submitter |
static int |
VISIBLE_TO_ISSUE_SUPERVISORS
This comment should be visible for the users supervising to the issue |
static int |
VISIBLE_TO_SPECIFIC_ROLE
This comment should be visible for project members in the specified role |
Fields inherited from interface com.intland.codebeamer.persistence.dto.base.ReferableDto |
---|
HEAD_VERSION, SECTION_DELIMITER, VERSION_DELIMITER |
Constructor Summary | |
---|---|
TrackerItemCommentDto()
|
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 |
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 |
getResponseToId()
Get the ID of the comment (to the same tracker item) this is a response to |
java.lang.String |
getRestfulUrlLink()
FIXME This is temporary! In 5.5. |
RoleDto |
getRole()
Get the role of project members that have permission to see this comment, additionally to others defined by getVisibility() |
java.lang.String |
getShortDescription()
Returns the short description that represent this entity in the user interface. |
TrackerItemDto |
getTrackerItem()
|
java.lang.String |
getUrlLink()
Returns the local URL that points to the web page where this DTO is managed. |
java.lang.Integer |
getVisibility()
Get the special visibility of this comment, or null, if visibility is the same as trackerItem visibility. |
boolean |
isVisible(int bits)
Check if all of the specified bits are set in the visibility mask |
void |
setProject(ProjectDto project)
|
void |
setResponseToId(java.lang.Integer responseToId)
Set the ID of the comment (to the same tracker item) this is a response to |
void |
setRole(RoleDto role)
Set the role of project members that have permission to see this comment. |
void |
setTrackerItem(TrackerItemDto trackerItem)
|
void |
setVisibility(java.lang.Integer visibility)
Set the special visibility of this comment. |
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 |
Field Detail |
---|
public static final java.lang.String URL_RESOURCE_PREFIX
public static final int VISIBLE_TO_COMMENT_SUBMITTER
public static final int VISIBLE_TO_ISSUE_SUBMITTER
public static final int VISIBLE_TO_ISSUE_ASSIGNEES
public static final int VISIBLE_TO_ISSUE_SUPERVISORS
public static final int VISIBLE_TO_SPECIFIC_ROLE
Constructor Detail |
---|
public TrackerItemCommentDto()
Method Detail |
---|
public TrackerItemDto getTrackerItem()
public void setTrackerItem(TrackerItemDto trackerItem)
public java.lang.Integer getResponseToId()
public void setResponseToId(java.lang.Integer responseToId)
responseToId
- is the ID of the comment (to the same tracker item) this is a response topublic java.lang.Integer getVisibility()
VISIBLE_TO_COMMENT_SUBMITTER
VISIBLE_TO_ISSUE_SUBMITTER
VISIBLE_TO_ISSUE_ASSIGNEES
VISIBLE_TO_ISSUE_SUPERVISORS
VISIBLE_TO_SPECIFIC_ROLE
defined in getRole()
public void setVisibility(java.lang.Integer visibility)
VISIBLE_TO_COMMENT_SUBMITTER
VISIBLE_TO_ISSUE_SUBMITTER
VISIBLE_TO_ISSUE_ASSIGNEES
VISIBLE_TO_ISSUE_SUPERVISORS
VISIBLE_TO_SPECIFIC_ROLE
defined in getRole()
visibility
- is the special visibility of this comment, or nullpublic boolean isVisible(int bits)
public RoleDto getRole()
getVisibility()
public void setRole(RoleDto role)
VISIBLE_TO_SPECIFIC_ROLE
is included in the bitmask passed to setVisibility(Integer)
role
- of project members that have permission to see this commentpublic ProjectDto getProject()
getProject
in interface ProjectAwareDto
public void setProject(ProjectDto project)
setProject
in interface ProjectAwareDto
public java.lang.String getShortDescription()
ReferableDto
ProjectDto.getName()
or
TrackerItemDto.getSummary()
.
getShortDescription
in interface ReferableDto
public java.lang.String getUrlLink()
ReferableDto
getUrlLink
in interface ReferableDto
public java.lang.String getRestfulUrlLink()
public java.lang.String getInterwikiLink()
ReferableDto
getInterwikiLink
in interface ReferableDto
public java.lang.String getIconUrl()
ReferableDto
getIconUrl
in interface ReferableDto
public 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 AbstractCommentDto
|
CodeBeamer 5.4.0.1-RC API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |