|
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.TrackerDto
public class TrackerDto
Wraps a tracker.
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 int |
BUG
|
static java.lang.String |
CATEGORY_LINK_TYPE
|
static int |
CHANGE
|
static int |
GENERAL
|
static java.lang.String |
INTERWIKI_LINK_TYPE
|
static int |
QA
|
static int |
REQUIREMENTS
|
static int |
TASK
|
Fields inherited from interface com.intland.codebeamer.persistence.dto.base.ReferableDto |
---|
HEAD_VERSION, SECTION_DELIMITER, VERSION_DELIMITER |
Constructor Summary | |
---|---|
TrackerDto()
|
|
TrackerDto(java.lang.Integer id,
java.lang.String name)
|
|
TrackerDto(TrackerDto tracker)
Tracker copy constructor |
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 |
static int |
compareTrackers(TrackerDto t1,
TrackerDto t2)
Compare two TrackerDtos that may be null |
boolean |
equals(java.lang.Object obj)
|
java.util.Date |
getCreatedAt()
Get the date and time the tracker was created |
UserDto |
getCreatedBy()
Get the user that created the tracker |
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. |
java.lang.String |
getItemName()
Get type name for items in this Tracker. |
java.lang.String |
getKeyName()
Get the short/key name of the tracker |
java.lang.Integer |
getOldAfterDays()
|
java.lang.Integer |
getProcessDefinitionId()
Get the underlying value used by isUsingWorkflow() |
ProjectDto |
getProject()
Get the project the tracker belongs to |
java.lang.String |
getShortDescription()
Get a short tracker description. |
java.lang.Integer |
getTemplateId()
Get the ID of the configuration template tracker |
java.lang.String |
getTrackerTypeName()
Get the type name of this tracker |
TrackerTypeDto |
getType()
Get the type of the tracker |
java.lang.String |
getUrlLink()
Returns the local URL that points to the web page where this DTO is managed. |
java.lang.Boolean |
getVisible()
Check if the tracker is visible |
boolean |
isCategory()
Check whether this TrackerDto is a Configuration Item Category or an Issue Tracker |
boolean |
isReadable()
Access control flag: Can the current user see this tracker |
boolean |
isUsingWorkflow()
Check if workflow is active for this tracker |
boolean |
isWritable()
Access control flag: Can the current user edit this tracker |
void |
setCreatedAt(java.util.Date createdAt)
Set the date and time the tracker was created |
void |
setCreatedBy(UserDto createdByUser)
Set the user that created the tracker |
void |
setKeyName(java.lang.String shortName)
Set the short/key name of the tracker |
void |
setOldAfterDays(java.lang.Integer oldAfterDays)
|
void |
setProcessDefinitionId(java.lang.Integer processDefinitionId)
Deprecated. replaced by setUsingWorkflow(boolean) |
void |
setProject(ProjectDto project)
Set the project the tracker belongs to |
void |
setReadable(boolean readable)
Access control flag: Can the current user see this tracker Note: This property is not persistent |
void |
setTemplateId(java.lang.Integer templateId)
Set the ID of the configuration template tracker |
void |
setType(TrackerTypeDto type)
Set the type of the tracker |
void |
setUsingWorkflow(boolean workflowActive)
Set whether to use workflow for this tracker or not |
void |
setVisible(java.lang.Boolean visible)
Set whether the tracker is visible |
void |
setWritable(boolean writable)
Access control flag: Can the current user edit this tracker Note: This property is not persistent |
java.lang.String |
toString()
Get a description string of the form "<trackerTypeName> <project.name> - <name> [<keyName>:<id>]" |
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 |
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 INTERWIKI_LINK_TYPE
public static final java.lang.String CATEGORY_LINK_TYPE
public static final int GENERAL
public static final int BUG
public static final int CHANGE
public static final int QA
public static final int REQUIREMENTS
public static final int TASK
Constructor Detail |
---|
public TrackerDto()
public TrackerDto(java.lang.Integer id, java.lang.String name)
public TrackerDto(TrackerDto tracker)
tracker
- to copyMethod Detail |
---|
public ProjectDto getProject()
getProject
in interface ProjectAwareDto
public void setProject(ProjectDto project)
setProject
in interface ProjectAwareDto
project
- of the tracker (must not be null)public TrackerTypeDto getType()
public void setType(TrackerTypeDto type)
type
- of the tracker to set (must not be null)public boolean isCategory()
public java.lang.String getTrackerTypeName()
public java.lang.String getKeyName()
public void setKeyName(java.lang.String shortName)
shortName
- for the tracker (must not be null)public java.lang.String getShortDescription()
NamedDto.getName()
getShortDescription
in interface ReferableDto
public java.lang.String getItemName()
public java.util.Date getCreatedAt()
public void setCreatedAt(java.util.Date createdAt)
createdAt
- is the date and time the tracker was created (must not be null)public UserDto getCreatedBy()
public void setCreatedBy(UserDto createdByUser)
createdByUser
- is the user that created the tracker (must not be null)public java.lang.Integer getTemplateId()
public void setTemplateId(java.lang.Integer templateId)
templateId
- of the template tracker, or null (no configuration template)public java.lang.Boolean getVisible()
public void setVisible(java.lang.Boolean visible)
visible
- should be TRUE to make the tracker visible, otherwise null or FALSEpublic boolean isUsingWorkflow()
public void setUsingWorkflow(boolean workflowActive)
workflowActive
- is true to activate workflow, false to deactivate workflowpublic java.lang.Integer getProcessDefinitionId()
isUsingWorkflow()
public void setProcessDefinitionId(java.lang.Integer processDefinitionId)
setUsingWorkflow(boolean)
public java.lang.Integer getOldAfterDays()
public void setOldAfterDays(java.lang.Integer oldAfterDays)
public boolean isReadable()
public void setReadable(boolean readable)
readable
- true if the current user can see this tracker, otherwise falsepublic boolean isWritable()
isWritable
in interface WriteControlledDto
public void setWritable(boolean writable)
setWritable
in interface WriteControlledDto
writable
- true if the current user may edit this tracker, otherwise falsepublic java.lang.String getUrlLink()
ReferableDto
getUrlLink
in interface ReferableDto
public java.lang.String getInterwikiLink()
ReferableDto
getInterwikiLink
in interface ReferableDto
public java.lang.String getIconUrl()
ReferableDto
getIconUrl
in interface ReferableDto
public boolean equals(java.lang.Object obj)
equals
in class NamedDto
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 NamedDto
public java.lang.String toString()
toString
in class NamedDto
public static int compareTrackers(TrackerDto t1, TrackerDto t2)
t1
- is the first TrackerDto, or nullt2
- is the second TrackerDto, 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 |