public interface IProcessAttachment extends IProcessItem, IProcessAttachmentHandle
Modifier and Type | Field and Description |
---|---|
static IItemType |
ITEM_TYPE
The process attachment item type.
|
static java.lang.String |
PATH_PROPERTY_ID
Id of the path property.
|
DESCRIPTION_DETAILS_PROPERTY_ID, DESCRIPTION_SUMMARY_PROPERTY_ID, DEVELOPMENT_LINE, ITERATION, ITERATION_TYPE, NAME_PROPERTY_ID, PROCESS_ATTACHMENT, PROCESS_DEFINITION, PROCESS_DOMAIN_DEFINITION, PROJECT_AREA, PROJECT_LINK, READ_ACCESS_LIST, TEAM_AREA
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 |
---|---|
IContent |
getContent()
Returns the attachment's content.
|
java.lang.String |
getPath()
Returns this process attachment's path or
null . |
IProcessContainerHandle |
getProcessContainer()
Returns back pointer to the process container which contains this
attachment.
|
void |
setContent(IContent content)
Sets the attachment's content.
|
void |
setPath(java.lang.String path)
Sets the path at which this attachment is located, relative to its
process container.
|
void |
setProcessContainer(IProcessContainerHandle container)
Sets the back pointer to the process container which contains this
attachment.
|
getProcessItemType, getPropertyName
getDescription, getName, setName
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 PATH_PROPERTY_ID
java.lang.String getPath()
null
.
Each attachment's path must be unique for the process container they are associated with. Attachments which are associated with different containers may have the same path.
In order for this item to be saved to the repository this field must have
a non-null value, so it is safe to assume that this method will not
return null if it is an immutable copy fetched from the repository. It is
possible for an incomplete/invalid working copy, however, to return
null
.
null
void setPath(java.lang.String path)
path
- the new attachment pathIProcessContainerHandle getProcessContainer()
void setProcessContainer(IProcessContainerHandle container)
container
- the process containerIContent getContent()
void setContent(IContent content)
content
- the new content