CodeBeamer 5.4.0.1-RC API

com.intland.codebeamer.persistence.dto
Class ReadOnlyTrackerDto

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.TrackerDto
                  extended by com.intland.codebeamer.persistence.dto.ReadOnlyTrackerDto
All Implemented Interfaces:
BaseDto, ProjectAwareDto, ReadOnlyDto, ReferableDto, WriteControlledDto, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable

public class ReadOnlyTrackerDto
extends TrackerDto
implements ReadOnlyDto

A special TrackerDto that doesn't allow to change it's attributes All attempts to invoke a property setter method will throw an UnsupportedOperationException

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
 
Fields inherited from class com.intland.codebeamer.persistence.dto.TrackerDto
BUG, CATEGORY_LINK_TYPE, CHANGE, GENERAL, INTERWIKI_LINK_TYPE, QA, REQUIREMENTS, TASK
 
Fields inherited from interface com.intland.codebeamer.persistence.dto.base.ReferableDto
HEAD_VERSION, SECTION_DELIMITER, VERSION_DELIMITER
 
Constructor Summary
ReadOnlyTrackerDto(TrackerDto tracker)
          Create a read-only version of the specified tracker
 
Method Summary
 java.lang.Object clone()
          Create a writable copy of this ReadOnlyDto Caution: The semantics are different than the standard Object.clone() method, because the returned object's class is typically different from the ReadOnlyDtos's class
 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 setDescription(java.lang.String details)
          Set the description text
 void setDescriptionFormat(java.lang.String descriptionFormat)
          Set the description format @see DescriptionFormat
 void setId(java.lang.Integer id)
          Sets its unique identifier.
 void setKeyName(java.lang.String shortName)
          Set the short/key name of the tracker
 void setName(java.lang.String name)
          Sets its (descriptive) name.
 void setOldAfterDays(java.lang.Integer oldAfterDays)
           
 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
 
Methods inherited from class com.intland.codebeamer.persistence.dto.TrackerDto
compareTo, compareTrackers, equals, getCreatedAt, getCreatedBy, getIconUrl, getInterwikiLink, getItemName, getKeyName, getOldAfterDays, getProcessDefinitionId, getProject, getShortDescription, getTemplateId, getTrackerTypeName, getType, getUrlLink, getVisible, isCategory, isReadable, isUsingWorkflow, isWritable, setProcessDefinitionId, toString
 
Methods inherited from class com.intland.codebeamer.persistence.dto.base.DescribeableDto
compareByDescription, getDescription, getDescriptionFormat
 
Methods inherited from class com.intland.codebeamer.persistence.dto.base.NamedDto
compareNames, compareString, compareStringIgnoreCase, createLookupMap, getName, hashCode
 
Methods inherited from class com.intland.codebeamer.persistence.dto.base.IdentifiableDto
compare, compareInteger, equals, getId, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReadOnlyTrackerDto

public ReadOnlyTrackerDto(TrackerDto tracker)
Create a read-only version of the specified tracker

Parameters:
tracker -
Method Detail

clone

public java.lang.Object clone()
Description copied from interface: ReadOnlyDto
Create a writable copy of this ReadOnlyDto Caution: The semantics are different than the standard Object.clone() method, because the returned object's class is typically different from the ReadOnlyDtos's class

Specified by:
clone in interface ReadOnlyDto
Overrides:
clone in class IdentifiableDto

setId

public void setId(java.lang.Integer id)
Description copied from class: IdentifiableDto
Sets its unique identifier.

Overrides:
setId in class IdentifiableDto

setName

public void setName(java.lang.String name)
Description copied from class: NamedDto
Sets its (descriptive) name.

Overrides:
setName in class NamedDto

setDescription

public void setDescription(java.lang.String details)
Description copied from class: DescribeableDto
Set the description text

Overrides:
setDescription in class DescribeableDto
Parameters:
details - the description text

setDescriptionFormat

public void setDescriptionFormat(java.lang.String descriptionFormat)
Description copied from class: DescribeableDto
Set the description format @see DescriptionFormat

Overrides:
setDescriptionFormat in class DescribeableDto
Parameters:
descriptionFormat - to set

setCreatedAt

public void setCreatedAt(java.util.Date createdAt)
Description copied from class: TrackerDto
Set the date and time the tracker was created

Overrides:
setCreatedAt in class TrackerDto
Parameters:
createdAt - is the date and time the tracker was created (must not be null)

setCreatedBy

public void setCreatedBy(UserDto createdByUser)
Description copied from class: TrackerDto
Set the user that created the tracker

Overrides:
setCreatedBy in class TrackerDto
Parameters:
createdByUser - is the user that created the tracker (must not be null)

setKeyName

public void setKeyName(java.lang.String shortName)
Description copied from class: TrackerDto
Set the short/key name of the tracker

Overrides:
setKeyName in class TrackerDto
Parameters:
shortName - for the tracker (must not be null)

setOldAfterDays

public void setOldAfterDays(java.lang.Integer oldAfterDays)
Overrides:
setOldAfterDays in class TrackerDto

setProject

public void setProject(ProjectDto project)
Description copied from class: TrackerDto
Set the project the tracker belongs to

Specified by:
setProject in interface ProjectAwareDto
Overrides:
setProject in class TrackerDto
Parameters:
project - of the tracker (must not be null)

setReadable

public void setReadable(boolean readable)
Description copied from class: TrackerDto
Access control flag: Can the current user see this tracker Note: This property is not persistent

Overrides:
setReadable in class TrackerDto
Parameters:
readable - true if the current user can see this tracker, otherwise false

setTemplateId

public void setTemplateId(java.lang.Integer templateId)
Description copied from class: TrackerDto
Set the ID of the configuration template tracker

Overrides:
setTemplateId in class TrackerDto
Parameters:
templateId - of the template tracker, or null (no configuration template)

setType

public void setType(TrackerTypeDto type)
Description copied from class: TrackerDto
Set the type of the tracker

Overrides:
setType in class TrackerDto
Parameters:
type - of the tracker to set (must not be null)

setUsingWorkflow

public void setUsingWorkflow(boolean workflowActive)
Description copied from class: TrackerDto
Set whether to use workflow for this tracker or not

Overrides:
setUsingWorkflow in class TrackerDto
Parameters:
workflowActive - is true to activate workflow, false to deactivate workflow

setVisible

public void setVisible(java.lang.Boolean visible)
Description copied from class: TrackerDto
Set whether the tracker is visible

Overrides:
setVisible in class TrackerDto
Parameters:
visible - should be TRUE to make the tracker visible, otherwise null or FALSE

setWritable

public void setWritable(boolean writable)
Description copied from class: TrackerDto
Access control flag: Can the current user edit this tracker Note: This property is not persistent

Specified by:
setWritable in interface WriteControlledDto
Overrides:
setWritable in class TrackerDto
Parameters:
writable - true if the current user may edit this tracker, otherwise false

CodeBeamer 5.4.0.1-RC API

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