com.starteam
Class Requirement.WebCacheRequirement

java.lang.Object
  extended by com.starteam.LiveObject.WebCacheLiveObject
      extended by com.starteam.TrackedObject.WebCacheTrackedObject
          extended by com.starteam.VersionedObject.WebCacheVersionedObject
              extended by com.starteam.ViewMember.WebCacheViewMember
                  extended by com.starteam.Item.WebCacheItem
                      extended by com.starteam.TreeItem.WebCacheTreeItem
                          extended by com.starteam.Requirement.WebCacheRequirement
All Implemented Interfaces:
ArtifactCacheManager.Securable
Enclosing class:
Requirement

public static class Requirement.WebCacheRequirement
extends TreeItem.WebCacheTreeItem

Item accessor for cached SDK Requirement items contained objects are obtained from the artifact cache


Method Summary
static Requirement.WebCacheRequirement create(ArtifactCacheManager.Context cntxt, Folder.WebCacheFolder parent)
          Creates a Requirement on the server.
static Requirement.WebCacheRequirement create(ArtifactCacheManager.Context cntxt, Requirement.WebCacheRequirement parent)
          Creates a Requirement on the server.
 int getAmbiguitiesCount()
          Return the number of ambiguities found for the requirement.
 java.lang.String getComments()
          Comments recorded for the requirement
 int getExpectedEffort()
          The estimated effort expected for completing the requirement.
 int getHighEffort()
          The Highest effort expected for completing the requirement.
 int getLowEffort()
          The lowest effort expected for completing the requirement.
 java.lang.String getName()
          The name of the requirement
 java.lang.String getNotes()
          Notes recorded for the requirement
 User.WebCacheUser getOwner()
          Owner of the requirement
 Requirement.Priority getPriority()
          Priority of the requirement
 int getRequirementNumber()
          Requirement number
 Requirement.RequirementType getRequirementType()
          Type of the requirement
 User.WebCacheUser[] getResponsibleUsers()
          The users responsible for the requirement.
 User.WebCacheUser[] getReviewedBy()
          Users who reviewed the requirement
 java.lang.String getRevisedDescription()
          Revised description for the requirement
 Requirement.Status getStatus()
          Returns the status (Draft, Submitted, Pending, Accepted, etc.) of the requirement.
 Requirement.StreamState getStreamState()
          Returns the Stream State
 void setAmbiguitiesCount(int numAmbiguities)
          Set the number of ambiguities for the requirement.
 void setComments(java.lang.String comments)
          Set the comments recorded for the requirement
 void setExpectedEffort(int effort)
          The estimated effort expected for completing the requirement.
 void setHighEffort(int effort)
          The highest effort expected for completing the requirement.
 void setLowEffort(int effort)
          Set the lowest effort expected for completing the requirement.
 void setName(java.lang.String name)
          Set the name for the requirement
 void setNotes(java.lang.String notes)
          Set the notes recorded for the requirement
 void setOwner(User.WebCacheUser owner)
          Set the owner for the requirement
 void setPriority(Requirement.Priority priority)
          Set the priority of the requirement
 void setRequirementType(Requirement.RequirementType reqType)
          Set the type of the requirement
 void setResponsibleUsers(User.WebCacheUser[] responsibleUsers)
          Set the users responsible for the requirement.
 void setReviewedBy(User.WebCacheUser[] users)
          Set the users who reviewed the requirement
 void setRevisedDescription(java.lang.String revisedDesc)
          Set the revised description for the requirement
 void setStatus(Requirement.Status status)
          Sets the status of the requirement.
 void setStreamState(Requirement.StreamState streamState)
          Sets the stream state of the Requirement
 
Methods inherited from class com.starteam.TreeItem.WebCacheTreeItem
create, create, getChildren, getParent, hasChildren, moveTo, setAfter, setBefore, setBetween, setFirst, setLast
 
Methods inherited from class com.starteam.Item.WebCacheItem
create, getLabels, getLinks, getParentFolder, moveTo, moveTo
 
Methods inherited from class com.starteam.ViewMember.WebCacheViewMember
getAttachments, getComment, getDisplayValue, getHistory, getLocker, getRights, getShareTree, getTraces, getView, isDeleted, isFloating, isPinned, isUnread, lock, lock, modifyReadStatus, pinTo, setAttachments, setRights, unlock, unpin, updateRevisionComent
 
Methods inherited from class com.starteam.VersionedObject.WebCacheVersionedObject
getDotNotation, getRevisionNumber, getRootObjectID, getViewVersion, isFromHistory
 
Methods inherited from class com.starteam.TrackedObject.WebCacheTrackedObject
getModifiedBy, getModifiedTime
 
Methods inherited from class com.starteam.LiveObject.WebCacheLiveObject
equals, getContext, getCreatedBy, getCreatedTime, getDisplayName, getID, getObjectID, getServer, getType, getValue, getValue, hashCode, isDirty, isNew, refresh, remove, setValue, setValue, toStarTeamURL, update
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static Requirement.WebCacheRequirement create(ArtifactCacheManager.Context cntxt,
                                                     Folder.WebCacheFolder parent)
Creates a Requirement on the server. This requirement may be saved by assigning the various properties and then calling update() on the WebCacheRequirement object, or it may be added to a WebCacheViewMemberCollection, which is then saved in a transacted context.

Parameters:
cntxt - the ArtifactCacheManager User Session Context
parent - the parent folder in which this new folder will be created. The parent folder should be from the artifact cache
Returns:
the newly created Requirement.WebCacheRequirement, wrapping a new Requirement

create

public static Requirement.WebCacheRequirement create(ArtifactCacheManager.Context cntxt,
                                                     Requirement.WebCacheRequirement parent)
Creates a Requirement on the server. This item may be saved by assigning the various properties and then calling update() on the WebCacheRequirement object, or it may be added to a WebCacheViewMemberCollection, which is then saved in a transacted context.

Parameters:
cntxt - the ArtifactCacheManager User Session Context
parent - the parent Requirement to this new Requirement . The parent Requirement should be from the artifact cache
Returns:
the newly created Requirement.WebCacheRequirement, wrapping a new Requirement

setNotes

public void setNotes(java.lang.String notes)
Set the notes recorded for the requirement

Parameters:
notes - - notes recorded for the requirement

getNotes

public java.lang.String getNotes()
Notes recorded for the requirement

Returns:
the notes recorded for the requirement

getResponsibleUsers

public User.WebCacheUser[] getResponsibleUsers()
The users responsible for the requirement.

Returns:
the users responsible for the requirement

setResponsibleUsers

public void setResponsibleUsers(User.WebCacheUser[] responsibleUsers)
Set the users responsible for the requirement.

Parameters:
responsibleUsers - the users responsible for the requirement

getAmbiguitiesCount

public int getAmbiguitiesCount()
Return the number of ambiguities found for the requirement.

Returns:
the number of ambiguities found for the requirement.

setAmbiguitiesCount

public void setAmbiguitiesCount(int numAmbiguities)
Set the number of ambiguities for the requirement.

Parameters:
numAmbiguities - the number of ambiguities found for the requirement.

getExpectedEffort

public int getExpectedEffort()
The estimated effort expected for completing the requirement.

Returns:
the estimated effort expected for completing the requirement.

setExpectedEffort

public void setExpectedEffort(int effort)
The estimated effort expected for completing the requirement.

Parameters:
effort - the estimated effort expected for completing the requirement.

getHighEffort

public int getHighEffort()
The Highest effort expected for completing the requirement.

Returns:
the highest effort expected for completing the requirement.

setHighEffort

public void setHighEffort(int effort)
The highest effort expected for completing the requirement.

Parameters:
effort - the estimated effort expected.

getLowEffort

public int getLowEffort()
The lowest effort expected for completing the requirement.

Returns:
the minimum effort expected for completing the requirement.

setLowEffort

public void setLowEffort(int effort)
Set the lowest effort expected for completing the requirement.

Parameters:
effort - the minimum effort expected.

getName

public java.lang.String getName()
The name of the requirement

Returns:
the name of the requirement

setName

public void setName(java.lang.String name)
Set the name for the requirement

Parameters:
name - the name for the requirement

getComments

public java.lang.String getComments()
Comments recorded for the requirement

Returns:
the comments recorded for the requirement

setComments

public void setComments(java.lang.String comments)
Set the comments recorded for the requirement

Parameters:
comments - - comments recorded for the requirement

getOwner

public User.WebCacheUser getOwner()
Owner of the requirement

Returns:
the owner of the requirement

setOwner

public void setOwner(User.WebCacheUser owner)
Set the owner for the requirement

Parameters:
owner - - owner for the requirement

getPriority

public Requirement.Priority getPriority()
Priority of the requirement

Returns:
the priority of the requirement

setPriority

public void setPriority(Requirement.Priority priority)
Set the priority of the requirement

Parameters:
priority - - priority of the requirement

getRequirementNumber

public int getRequirementNumber()
Requirement number

Returns:
the requirement number

getRequirementType

public Requirement.RequirementType getRequirementType()
Type of the requirement

Returns:
the type of the requirement

setRequirementType

public void setRequirementType(Requirement.RequirementType reqType)
Set the type of the requirement

Parameters:
reqType - requirement type

getReviewedBy

public User.WebCacheUser[] getReviewedBy()
Users who reviewed the requirement

Returns:
the users who reviewed the requirement

setReviewedBy

public void setReviewedBy(User.WebCacheUser[] users)
Set the users who reviewed the requirement

Parameters:
users - who reviewed the requirement

getRevisedDescription

public java.lang.String getRevisedDescription()
Revised description for the requirement

Returns:
the revised description for the requirement

setRevisedDescription

public void setRevisedDescription(java.lang.String revisedDesc)
Set the revised description for the requirement

Parameters:
revisedDesc - revised description.

getStatus

public Requirement.Status getStatus()
Returns the status (Draft, Submitted, Pending, Accepted, etc.) of the requirement.

Returns:
The status (Draft, Submitted, Pending, Accepted, etc.) of the requirement.
See Also:
Requirement.Status, Requirement.Type.StatusProperty, Requirement.Type.PropertyCollection.STATUS

setStatus

public void setStatus(Requirement.Status status)
Sets the status of the requirement.

Parameters:
status - The new status for the requirement.

getStreamState

public Requirement.StreamState getStreamState()
Returns the Stream State

Returns:
streamState of this Requirement
See Also:
Requirement.Type.StreamStateProperty.NAME

setStreamState

public void setStreamState(Requirement.StreamState streamState)
Sets the stream state of the Requirement

Parameters:
streamState - the stream state of the Requirement
See Also:
Requirement.Type.StreamStateProperty.NAME


StarTeam SDK 13.0, Build 31
Copyright © 2003-2012 Borland Software Corporation. All rights reserved.