public interface IAttribute extends IAttributeHandle, IAuditable, IProjectScoped
IAttribute
s in the repository. An IAttribute
is scoped to a project area, carries meta-data like the data-type and can be
used to access the values of work items in the same project area.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BUILT_IN_PROPERTY
The built-in property, see
isBuiltIn() . |
static ItemProfile<IAttribute> |
DEFAULT_PROFILE |
static java.lang.String |
DEPENDENCIES_PROPERTY
The dependencies property, see
getDependencies() . |
static java.lang.String |
DISPLAY_NAME_PROPERTY
The name property, see
getDisplayName() . |
static java.lang.String |
EXTERNAL_URI_PROPERTY
The name property, see
getExternalURI() . |
static ItemProfile<IAttribute> |
FULL_PROFILE
The full item profile.
|
static java.lang.String |
FULL_TEXT_KIND_CONTENT
See
ISearchableFields.CONTENT . |
static java.lang.String |
FULL_TEXT_KIND_DEFAULT
Place-holder when creating an attribute for the type-dependent default full-text kind.
|
static java.lang.String |
FULL_TEXT_KIND_ID
See
ISearchableFields.ID . |
static java.lang.String |
FULL_TEXT_KIND_META
See
ISearchableFields.META . |
static java.lang.String |
FULL_TEXT_KIND_NAME
See
ISearchableFields.NAME . |
static java.lang.String |
FULL_TEXT_KIND_NONE
Full-text kind indicating that no full-text indexing of this attribute should be done.
|
static java.lang.String |
FULL_TEXT_KIND_PROPERTY
The full-text kind property, see
getFullTextKind() . |
static java.lang.String |
FULL_TEXT_KIND_TAGS
See
ISearchableFields.TAGS . |
static java.lang.String |
IDENTIFIER_PROPERTY
The identifier property, see
getIdentifier() . |
static java.lang.String |
INTERNAL_PROPERTY
The internal property, see
isInternal() . |
static IItemType |
ITEM_TYPE
The attribute item type.
|
static ItemProfile<IAttribute> |
LARGE_PROFILE |
static ItemProfile<IAttribute> |
MEDIUM_PROFILE |
static java.lang.String |
PROJECT_AREA_PROPERTY
The project area property, see
getProjectArea() . |
static java.lang.String |
READ_ONLY_PROPERTY
The read-only property, see
isReadOnly() . |
static ItemProfile<IAttribute> |
SMALL_PROFILE |
static java.lang.String |
TYPE_PROPERTY
The type property, see
getAttributeType() . |
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 |
---|---|
java.lang.String |
getAttributeType()
Returns the type identifier.
|
java.lang.Object |
getDefaultValue(IAuditableCommon auditableCommon,
IWorkItem workItem,
org.eclipse.core.runtime.IProgressMonitor monitor)
Returns the default value of this attribute.
|
java.util.List<IAttributeHandle> |
getDependencies()
Returns a list of attributes this attribute depends on.
|
java.lang.String |
getDisplayName()
Returns the name suitable for presenting it as part of a label to the user.
|
java.lang.String |
getExternalURI()
Returns the external URI.
|
java.lang.String |
getFullTextKind()
The full-text kind determines if and how values of this attribute
should be indexed in the full-text index.
|
java.lang.String |
getIdentifier()
Returns the identifier, unique within a project area.
|
java.lang.Object |
getNullValue(IAuditableCommon auditableCommon)
Deprecated.
add
IProgressMonitor as last parameter |
java.lang.Object |
getNullValue(IAuditableCommon auditableCommon,
org.eclipse.core.runtime.IProgressMonitor monitor)
Returns the null value of this attribute.
|
IProjectAreaHandle |
getProjectArea()
Returns the project area this attribute belongs to.
|
java.lang.Object |
getValue(IAuditableCommon auditableCommon,
IWorkItem workItem,
org.eclipse.core.runtime.IProgressMonitor monitor)
Returns the current -- calculated -- value of this attribute.
|
java.lang.Object[] |
getValueSet(IAuditableCommon auditableCommon,
IWorkItem workItem)
Deprecated.
add
IProgressMonitor as last parameter |
java.lang.Object[] |
getValueSet(IAuditableCommon auditableCommon,
IWorkItem workItem,
boolean includeArchived,
org.eclipse.core.runtime.IProgressMonitor monitor)
Returns a list of valid values for this attribute on the given work item.
|
java.lang.Object[] |
getValueSet(IAuditableCommon auditableCommon,
IWorkItem workItem,
org.eclipse.core.runtime.IProgressMonitor monitor)
Returns a list of valid values for this attribute on the given work item.
|
java.lang.Object[] |
getValueSet(com.ibm.team.workitem.common.internal.attributeValueProviders.IValueSetProvider2.ValueSetProviderInput input,
org.eclipse.core.runtime.IProgressMonitor monitor)
Returns a list of valid values for this attribute on the given work item.
|
boolean |
hasCalculatedValue(IAuditableCommon auditableCommon,
org.eclipse.core.runtime.IProgressMonitor monitor)
Returns true if this attribute has a calculated value provider.
|
boolean |
hasValueSet(IAuditableCommon auditableCommon,
org.eclipse.core.runtime.IProgressMonitor monitor)
Returns true if this attribute can have a value set.
|
boolean |
isBuiltIn()
Returns
true iff all work items have this attribute and
it cannot be removed from work items. |
boolean |
isInternal()
Returns
true iff this attribute is an implementation detail
and it and its value should not be shown to the user. |
boolean |
isReadOnly()
Returns
true iff a work item's value of this attribute
cannot be changed by a client, the system may still update the value. |
void |
setAttributeType(java.lang.String value)
Deprecated.
immutable
|
void |
setDisplayName(java.lang.String value)
Sets the name to the given value.
|
void |
setExternalURI(java.lang.String value)
Sets the external URI to the given value.
|
void |
setIdentifier(java.lang.String value)
Deprecated.
immutable
|
void |
setInternal(boolean isInternal)
Sets the internal flag to the given value.
|
org.eclipse.core.runtime.IStatus |
validate(IAuditableCommon auditableCommon,
IWorkItem workItem,
org.eclipse.core.runtime.IProgressMonitor monitor)
Validates the value of this attribute in the context of a work item.
|
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 PROJECT_AREA_PROPERTY
getProjectArea()
.static final java.lang.String IDENTIFIER_PROPERTY
getIdentifier()
.static final java.lang.String TYPE_PROPERTY
getAttributeType()
.static final java.lang.String DISPLAY_NAME_PROPERTY
getDisplayName()
.static final java.lang.String EXTERNAL_URI_PROPERTY
getExternalURI()
.static final java.lang.String DEPENDENCIES_PROPERTY
getDependencies()
.static final java.lang.String BUILT_IN_PROPERTY
isBuiltIn()
.static final java.lang.String READ_ONLY_PROPERTY
isReadOnly()
.static final java.lang.String INTERNAL_PROPERTY
isInternal()
.static final java.lang.String FULL_TEXT_KIND_PROPERTY
getFullTextKind()
.static final java.lang.String FULL_TEXT_KIND_DEFAULT
static final java.lang.String FULL_TEXT_KIND_NONE
static final java.lang.String FULL_TEXT_KIND_ID
ISearchableFields.ID
.static final java.lang.String FULL_TEXT_KIND_NAME
ISearchableFields.NAME
.static final java.lang.String FULL_TEXT_KIND_CONTENT
ISearchableFields.CONTENT
.static final java.lang.String FULL_TEXT_KIND_TAGS
ISearchableFields.TAGS
.static final java.lang.String FULL_TEXT_KIND_META
ISearchableFields.META
.static final ItemProfile<IAttribute> SMALL_PROFILE
static final ItemProfile<IAttribute> DEFAULT_PROFILE
static final ItemProfile<IAttribute> MEDIUM_PROFILE
static final ItemProfile<IAttribute> LARGE_PROFILE
static final ItemProfile<IAttribute> FULL_PROFILE
IProjectAreaHandle getProjectArea()
getProjectArea
in interface IProjectScoped
java.lang.String getIdentifier()
@Deprecated void setIdentifier(java.lang.String value)
java.lang.String getAttributeType()
AttributeTypes
@Deprecated void setAttributeType(java.lang.String value)
java.lang.String getDisplayName()
void setDisplayName(java.lang.String value)
value
- the new namejava.lang.String getExternalURI()
void setExternalURI(java.lang.String value)
value
- the new external URIjava.util.List<IAttributeHandle> getDependencies()
java.lang.Object getNullValue(IAuditableCommon auditableCommon, org.eclipse.core.runtime.IProgressMonitor monitor) throws TeamRepositoryException
auditableCommon
- the common auditable librarymonitor
- a progress monitor or null
TeamRepositoryException
- if anything goes wrongjava.lang.Object getDefaultValue(IAuditableCommon auditableCommon, IWorkItem workItem, org.eclipse.core.runtime.IProgressMonitor monitor) throws TeamRepositoryException
auditableCommon
- the common auditable librarymonitor
- a progress monitor or null
TeamRepositoryException
- if anything goes wrongjava.lang.Object getValue(IAuditableCommon auditableCommon, IWorkItem workItem, org.eclipse.core.runtime.IProgressMonitor monitor) throws TeamRepositoryException
auditableCommon
- the common auditable librarymonitor
- a progress monitor or null
TeamRepositoryException
- if anything goes wrongboolean hasCalculatedValue(IAuditableCommon auditableCommon, org.eclipse.core.runtime.IProgressMonitor monitor) throws TeamRepositoryException
auditableCommon
- the common auditable librarymonitor
- a progress monitor or null
TeamRepositoryException
- if anything goes wrongboolean hasValueSet(IAuditableCommon auditableCommon, org.eclipse.core.runtime.IProgressMonitor monitor) throws TeamRepositoryException
auditableCommon
- the common auditable librarymonitor
- a progress monitor or null
getValueSet(IAuditableCommon, IWorkItem)
always
returns an empty value set. True otherwise.TeamRepositoryException
- if anything goes wrongjava.lang.Object[] getValueSet(IAuditableCommon auditableCommon, IWorkItem workItem, org.eclipse.core.runtime.IProgressMonitor monitor) throws TeamRepositoryException
auditableCommon
- the common auditable libraryworkItem
- the work itemmonitor
- a progress monitor or null
TeamRepositoryException
- if anything goes wrongjava.lang.Object[] getValueSet(IAuditableCommon auditableCommon, IWorkItem workItem, boolean includeArchived, org.eclipse.core.runtime.IProgressMonitor monitor) throws TeamRepositoryException
auditableCommon
- the common auditable libraryworkItem
- the work itemincludeArchived
- if true
, will also return values that have
been archived and false
to ignore those.monitor
- a progress monitor or null
TeamRepositoryException
- if anything goes wrongjava.lang.Object[] getValueSet(com.ibm.team.workitem.common.internal.attributeValueProviders.IValueSetProvider2.ValueSetProviderInput input, org.eclipse.core.runtime.IProgressMonitor monitor) throws TeamRepositoryException
input
- a set of parameters passed to the value set providermonitor
- a progress monitor or null
TeamRepositoryException
- if anything goes wrongorg.eclipse.core.runtime.IStatus validate(IAuditableCommon auditableCommon, IWorkItem workItem, org.eclipse.core.runtime.IProgressMonitor monitor) throws TeamRepositoryException
workItem
- the work itemTeamRepositoryException
boolean isBuiltIn()
true
iff all work items have this attribute and
it cannot be removed from work items.true
iff the attribute is built-inboolean isReadOnly()
true
iff a work item's value of this attribute
cannot be changed by a client, the system may still update the value.true
iff this attribute is read-onlyboolean isInternal()
true
iff this attribute is an implementation detail
and it and its value should not be shown to the user.true
iff this attribute is internalvoid setInternal(boolean isInternal)
isInternal
- the new valuejava.lang.String getFullTextKind()
@Deprecated java.lang.Object[] getValueSet(IAuditableCommon auditableCommon, IWorkItem workItem) throws TeamRepositoryException
IProgressMonitor
as last parameterTeamRepositoryException
@Deprecated java.lang.Object getNullValue(IAuditableCommon auditableCommon) throws TeamRepositoryException
IProgressMonitor
as last parameterTeamRepositoryException