public interface IWorkItem extends IWorkItemHandle, IAuditable, IProjectScoped
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
APPROVAL_DESCRIPTORS_PROPERTY
The approval descriptors property, see
getApprovals() . |
static java.lang.String |
APPROVALS_PROPERTY
The approvals property, see
getApprovals() . |
static java.lang.String |
ARCHIVED_PROPERTY
The archived property, not surfaced yet }.
|
static java.lang.String |
CATEGORY_PROPERTY
The 'filed against' property, see
getCategory() . |
static java.lang.String |
COMMENTS_PROPERTY
The comments property, see
getComments() . |
static java.lang.String |
CREATION_DATE_PROPERTY
The creation date property, see
getCreationDate() . |
static java.lang.String |
CREATOR_PROPERTY
The 'created by' property, see
getCreator() . |
static java.util.Collection<java.lang.String> |
CUSTOM_ATTRIBUTE_PROPERTIES |
static java.lang.String |
CUSTOM_ATTRIBUTES_PROPERTY
The custom attributes property, see
getCustomAttributes() . |
static ItemProfile<IWorkItem> |
DEFAULT_PROFILE |
static java.lang.String |
DESCRIPTION_PROPERTY
The description property, see
getHTMLDescription() . |
static java.lang.String |
DUE_DATE_PROPERTY
The due date property, see
getDueDate() . |
static java.lang.String |
DURATION_PROPERTY
The estimate property, see
getDuration() . |
static java.lang.String |
ESIGNATURE_RECORD_PROPERTY
The ESignatureRecord property, see
getESignatureRecords() . |
static java.lang.String |
FOUND_IN_PROPERTY
The 'found in' property.
|
static ItemProfile<IWorkItem> |
FULL_PROFILE
The full item profile.
|
static ItemProfile<IWorkItem> |
ID_PROFILE |
static java.lang.String |
ID_PROPERTY
The id property, see
getId() . |
static IItemType |
ITEM_TYPE
The Work Item item type.
|
static ItemProfile<IWorkItem> |
LARGE_PROFILE |
static ItemProfile<IWorkItem> |
MEDIUM_PROFILE |
static java.lang.String |
OWNER_PROPERTY
The owner property, see
getOwner() . |
static java.lang.String |
PRIORITY_PROPERTY
The priority property, see
getPriority() . |
static java.lang.String |
PROJECT_AREA_PROPERTY
The project area property, see
getProjectArea() . |
static java.lang.String |
RESOLUTION_DATE_PROPERTY
The resolution date property, see
getResolutionDate() . |
static java.lang.String |
RESOLUTION_PROPERTY
The resolution property, see
getResolution2() . |
static java.lang.String |
RESOLVER_PROPERTY
The 'resolved by' property, see
getState2() . |
static java.lang.String |
SEVERITY_PROPERTY
The severity property, see
getSeverity() . |
static ItemProfile<IWorkItem> |
SMALL_PROFILE |
static ItemProfile<IWorkItem> |
STATE_PROFILE |
static java.lang.String |
STATE_PROPERTY
The state property, see
getState2() . |
static java.lang.String |
STATE_TRANSITIONS_PROPERTY
The state transitions property, see
getStateTransitions() . |
static java.lang.String |
SUBSCRIPTIONS_PROPERTY
The subscribers property, see
getSubscriptions() . |
static java.lang.String |
SUMMARY_PROPERTY
The summary property, see
getHTMLSummary() . |
static java.lang.String |
TAGS_PROPERTY
The tags property, see
getTags() . |
static java.lang.String |
TARGET_PROPERTY
The 'planned for' property, see
getTarget() . |
static java.lang.String |
TYPE_PROPERTY
The type property, see
getWorkItemType() . |
static java.lang.String |
UNASSIGNED_FOUND_IN_NAME
'Found in' name when the value is
null . |
static java.lang.String |
UNASSIGNED_TARGET_NAME
'Planned for' name when the value is
null . |
static java.lang.String |
WORKFLOW_SURROGATE_PROPERTY
The workflow surrogate property.
|
static java.util.Collection<java.lang.String> |
WORKITEM_CUSTOM_ATTRIBUTE_PROPERTIES
The properties needed to work with custom attributes.
|
MERGE_PREDECESSOR_STATE_PROPERTY, PREDECESSOR_STATE_PROPERTY
CONTEXT_ID_PROPERTY, ITEM_ID_PROPERTY, MAX_LARGE_STRING_BYTES, MAX_MEDIUM_STRING_BYTES, MAX_SMALL_STRING_BYTES, MODIFIED_BY_PROPERTY, MODIFIED_PROPERTY, STATE_ID_PROPERTY
Modifier and Type | Method and Description |
---|---|
void |
addCustomAttribute(IAttribute attribute)
Adds the given custom attribute to the work item.
|
IApprovals |
getApprovals()
Returns the approvals
|
ICategoryHandle |
getCategory()
Returns the 'filed against' category.
|
IComments |
getComments()
Returns the comments.
|
java.sql.Timestamp |
getCreationDate()
Returns the creation date.
|
IContributorHandle |
getCreator()
Returns the creator.
|
java.util.List<IAttributeHandle> |
getCustomAttributes()
Returns the list of custom attributes.
|
java.sql.Timestamp |
getDueDate()
Returns the due date.
|
long |
getDuration()
Returns the estimate in milliseconds.
|
java.util.List |
getESignatureRecords()
Returns the ESignature records associated with this work item
|
com.ibm.team.foundation.common.text.XMLString |
getHTMLDescription()
Returns the description.
|
com.ibm.team.foundation.common.text.XMLString |
getHTMLSummary()
Returns the summary.
|
int |
getId()
Returns the numeric id.
|
IContributorHandle |
getOwner()
Returns the owner.
|
Identifier<IPriority> |
getPriority()
Returns the priority.
|
IProjectAreaHandle |
getProjectArea()
Returns the project area.
|
Identifier<IResolution> |
getResolution2()
Returns the resolution.
|
java.sql.Timestamp |
getResolutionDate()
Returns the resolution date.
|
IContributorHandle |
getResolver()
Returns the resolver.
|
Identifier<ISeverity> |
getSeverity()
Returns the severity.
|
Identifier<IState> |
getState2()
Returns the workflow state.
|
IStateTransitions |
getStateTransitions()
Returns the state transitions this work item went through
|
ISubscriptions |
getSubscriptions()
Returns the subscribers.
|
java.lang.String |
getTags()
Deprecated.
Use
getTags2() or getValue(IAttribute) |
java.util.List<java.lang.String> |
getTags2()
Returns the list of tags
|
IIterationHandle |
getTarget()
Returns the 'planned for' iteration.
|
java.lang.Object |
getValue(IAttribute attribute)
Returns the value of the given attribute.
|
java.lang.String |
getWorkItemType()
Returns the work item type.
|
boolean |
hasAttribute(IAttribute attribute)
Returns
true iff the work item has the given attribute. |
boolean |
hasBuiltInAttribute(IAttribute attribute) |
boolean |
hasCustomAttribute(IAttributeHandle attribute) |
boolean |
isAttributeSet(IAttribute attribute)
Returns
true iff the work item has the given attribute
and the attribute value is part of the work item's item profile. |
void |
removeCustomAttribute(IAttribute attribute)
Removes the given custom attribute from the work item.
|
void |
setAttributeChangedNotifier(com.ibm.team.workitem.common.internal.model.AttributeChangedNotifier notifier) |
void |
setCategory(ICategoryHandle value)
Sets the 'filed against' category.
|
void |
setCreationDate(java.sql.Timestamp value)
Internal
|
void |
setCreator(IContributorHandle value)
Internal
|
void |
setDueDate(java.sql.Timestamp value)
Sets the due date.
|
void |
setDuration(long duration)
Sets the estimate in milliseconds.
|
void |
setHTMLDescription(com.ibm.team.foundation.common.text.XMLString xmlString)
Sets the description to the given xml string.
|
void |
setHTMLSummary(com.ibm.team.foundation.common.text.XMLString xmlString)
Sets the summary to the given XML string.
|
void |
setOwner(IContributorHandle value)
Sets the owner.
|
void |
setPriority(Identifier<IPriority> value)
Sets the priority to the given identifier.
|
void |
setResolution2(Identifier<IResolution> value)
Sets the resolution.
|
void |
setSeverity(Identifier<ISeverity> value)
Sets the severity to the given identifier.
|
void |
setState2(Identifier<IState> value)
Deprecated.
|
void |
setTags(java.lang.String value)
Deprecated.
|
void |
setTags2(java.util.List<java.lang.String> tags)
Sets the tags
|
void |
setTarget(IIterationHandle value)
Sets the 'planned for' iteration.
|
void |
setValue(IAttribute attribute,
java.lang.Object value)
Sets the value of the given attribute.
|
void |
setWorkItemType(java.lang.String value)
|
getMergePredecessorState, getPredecessorState
isNewItem
getContextId, getItemHandle, getModifiedBy, getRedactedCopy, getRequestedModified, getRequestedStateId, getStateHandle, getWorkingCopy, hasHistory, isComplete, isPropertySet, isRedactedCopy, isWorkingCopy, modified, setContextId, setRequestedModified, setRequestedStateId
equals, getAdapter, getFullState, getItemId, getItemType, getOrigin, getStateId, hasFullState, hasStateId, isAuditable, isConfigurationAware, isImmutable, isSimple, isUnmanaged, makeImmutable, protect, sameItemId, sameStateId, size
static final IItemType ITEM_TYPE
static final java.lang.String ID_PROPERTY
getId()
.static final java.lang.String TYPE_PROPERTY
getWorkItemType()
.static final java.lang.String PROJECT_AREA_PROPERTY
getProjectArea()
.static final java.lang.String SUMMARY_PROPERTY
getHTMLSummary()
.static final java.lang.String CUSTOM_ATTRIBUTES_PROPERTY
getCustomAttributes()
.static final java.lang.String STATE_PROPERTY
getState2()
.static final java.lang.String CREATOR_PROPERTY
getCreator()
.static final java.lang.String OWNER_PROPERTY
getOwner()
.static final java.lang.String SEVERITY_PROPERTY
getSeverity()
.static final java.lang.String PRIORITY_PROPERTY
getPriority()
.static final java.lang.String FOUND_IN_PROPERTY
static final java.lang.String DESCRIPTION_PROPERTY
getHTMLDescription()
.static final java.lang.String WORKFLOW_SURROGATE_PROPERTY
static final java.lang.String CREATION_DATE_PROPERTY
getCreationDate()
.static final java.lang.String RESOLUTION_PROPERTY
getResolution2()
.static final java.lang.String DUE_DATE_PROPERTY
getDueDate()
.static final java.lang.String DURATION_PROPERTY
getDuration()
.static final java.lang.String CATEGORY_PROPERTY
getCategory()
.static final java.lang.String COMMENTS_PROPERTY
getComments()
.static final java.lang.String TARGET_PROPERTY
getTarget()
.static final java.lang.String RESOLVER_PROPERTY
getState2()
.static final java.lang.String RESOLUTION_DATE_PROPERTY
getResolutionDate()
.static final java.lang.String TAGS_PROPERTY
getTags()
.static final java.lang.String SUBSCRIPTIONS_PROPERTY
getSubscriptions()
.static final java.lang.String APPROVAL_DESCRIPTORS_PROPERTY
getApprovals()
.static final java.lang.String APPROVALS_PROPERTY
getApprovals()
.static final java.lang.String ARCHIVED_PROPERTY
static final java.lang.String STATE_TRANSITIONS_PROPERTY
getStateTransitions()
.static final java.lang.String ESIGNATURE_RECORD_PROPERTY
getESignatureRecords()
.static final java.util.Collection<java.lang.String> WORKITEM_CUSTOM_ATTRIBUTE_PROPERTIES
static final java.util.Collection<java.lang.String> CUSTOM_ATTRIBUTE_PROPERTIES
static final ItemProfile<IWorkItem> ID_PROFILE
static final ItemProfile<IWorkItem> SMALL_PROFILE
static final ItemProfile<IWorkItem> DEFAULT_PROFILE
static final ItemProfile<IWorkItem> MEDIUM_PROFILE
static final ItemProfile<IWorkItem> LARGE_PROFILE
static final ItemProfile<IWorkItem> STATE_PROFILE
static final ItemProfile<IWorkItem> FULL_PROFILE
static final java.lang.String UNASSIGNED_TARGET_NAME
null
.static final java.lang.String UNASSIGNED_FOUND_IN_NAME
null
.java.lang.Object getValue(IAttribute attribute)
attribute
- the attributehasAttribute(IAttribute)
void setValue(IAttribute attribute, java.lang.Object value)
attribute
- the attributevalue
- the valuehasAttribute(IAttribute)
,
addCustomAttribute(IAttribute)
,
IWorkItemCommon.findAttribute(IProjectAreaHandle, String, org.eclipse.core.runtime.IProgressMonitor)
,
IWorkItemCommon.createNewAttribute(IProjectAreaHandle, String, String, String, org.eclipse.core.runtime.IProgressMonitor)
boolean isAttributeSet(IAttribute attribute)
true
iff the work item has the given attribute
and the attribute value is part of the work item's item profile.attribute
- the attributetrue
iff the attribute is sethasAttribute(IAttribute)
,
ItemProfile
boolean hasAttribute(IAttribute attribute)
true
iff the work item has the given attribute.attribute
- the attributetrue
iff the work item has the given attributeboolean hasBuiltInAttribute(IAttribute attribute)
boolean hasCustomAttribute(IAttributeHandle attribute)
void addCustomAttribute(IAttribute attribute)
Clients should initialize the attribute to either a specific value or its default value.
attribute
- the custom attributehasAttribute(IAttribute)
,
AttributeTypes.isSupportedCustomAttributeType(String)
,
setValue(IAttribute, Object)
,
IAttribute.getDefaultValue(com.ibm.team.workitem.common.IAuditableCommon, IWorkItem, org.eclipse.core.runtime.IProgressMonitor)
void removeCustomAttribute(IAttribute attribute)
attribute
- the custom attributevoid setAttributeChangedNotifier(com.ibm.team.workitem.common.internal.model.AttributeChangedNotifier notifier)
java.lang.String getWorkItemType()
IWorkItemCommon.findWorkItemType(IProjectAreaHandle, String, org.eclipse.core.runtime.IProgressMonitor)
,
IWorkItemType
int getId()
-1
if not initializedIWorkItemCommon.findWorkItemById(int, ItemProfile, org.eclipse.core.runtime.IProgressMonitor)
IProjectAreaHandle getProjectArea()
getProjectArea
in interface IProjectScoped
IWorkItemType
Identifier<IState> getState2()
null
if not initializedIWorkflowInfo.getStateName(Identifier)
,
IWorkflowInfo.getStateIconName(Identifier)
@Deprecated void setState2(Identifier<IState> value)
com.ibm.team.workitem.service.IWorkItemServer#saveWorkItem2(IWorkItem, IWorkItemReferences, String)}
,
com.ibm.team.workitem.client.WorkItemWorkingCopy#setWorkflowAction(String)}
,
com.ibm.team.workitem.client.WorkItemWorkingCopy#save(IProgressMonitor)}
,
com.ibm.team.workitem.common.workflow.IWorkflowInfo#getActionIds(Identifier)}
Identifier<IResolution> getResolution2()
null
IWorkflowInfo.getResolutionName(Identifier)
,
IWorkflowInfo.getResolutionIconName(Identifier)
void setResolution2(Identifier<IResolution> value)
value
- the new resolution or null
IWorkflowInfo.getResolutionIds(Identifier)
IContributorHandle getResolver()
null
java.sql.Timestamp getResolutionDate()
null
com.ibm.team.foundation.common.text.XMLString getHTMLSummary()
void setHTMLSummary(com.ibm.team.foundation.common.text.XMLString xmlString)
xmlString
- the new summaryIdentifier<ISeverity> getSeverity()
null
IWorkItemCommon.resolveEnumeration(IAttributeHandle, org.eclipse.core.runtime.IProgressMonitor)
,
IEnumeration.findEnumerationLiteral(Identifier)
void setSeverity(Identifier<ISeverity> value)
value
- the new severityIWorkItemCommon.resolveEnumeration(IAttributeHandle, org.eclipse.core.runtime.IProgressMonitor)
,
IEnumeration.getEnumerationLiterals()
java.sql.Timestamp getCreationDate()
null
if not initializedvoid setCreationDate(java.sql.Timestamp value)
IContributorHandle getCreator()
null
if not initializedvoid setCreator(IContributorHandle value)
Identifier<IPriority> getPriority()
null
IWorkItemCommon.resolveEnumeration(IAttributeHandle, org.eclipse.core.runtime.IProgressMonitor)
,
IEnumeration.findEnumerationLiteral(Identifier)
void setPriority(Identifier<IPriority> value)
value
- the new priorityIWorkItemCommon.resolveEnumeration(IAttributeHandle, org.eclipse.core.runtime.IProgressMonitor)
,
IEnumeration.getEnumerationLiterals()
java.sql.Timestamp getDueDate()
null
void setDueDate(java.sql.Timestamp value)
value
- the new due date or null
long getDuration()
-1
if not setDuration
void setDuration(long duration)
duration
- the new estimate or -1
to clearDuration
IContributorHandle getOwner()
null
void setOwner(IContributorHandle value)
value
- the new owner or null
com.ibm.team.foundation.common.text.XMLString getHTMLDescription()
void setHTMLDescription(com.ibm.team.foundation.common.text.XMLString xmlString)
xmlString
- the new descriptionIComments getComments()
ICategoryHandle getCategory()
IWorkItemCommon.resolveHierarchicalName(ICategoryHandle, org.eclipse.core.runtime.IProgressMonitor)
void setCategory(ICategoryHandle value)
value
- the new 'filed against' categoryIWorkItemCommon.findCategories(IProjectAreaHandle, ItemProfile, org.eclipse.core.runtime.IProgressMonitor)
java.util.List<IAttributeHandle> getCustomAttributes()
NOTE: Clients must not change this list directly.
addCustomAttribute(IAttribute)
,
removeCustomAttribute(IAttribute)
ISubscriptions getSubscriptions()
IApprovals getApprovals()
IStateTransitions getStateTransitions()
java.util.List getESignatureRecords()
IIterationHandle getTarget()
void setTarget(IIterationHandle value)
value
- the new 'planned for' iterationIDevelopmentLine.getIterations()
,
IIteration.getChildren()
@Deprecated java.lang.String getTags()
TagsAttributeType.parseTags(String)
java.util.List<java.lang.String> getTags2()
@Deprecated void setTags(java.lang.String value)
value
- the new tagsvoid setTags2(java.util.List<java.lang.String> tags)
tags
- @Deprecated void setWorkItemType(java.lang.String value)