Interface IBaselineCollection
- All Superinterfaces:
IAdaptable
,IChangeListener
,IHasCustomValues
,IHasValues
,IPObject
,IUniqueObject
- Since:
- 3.20.1
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from interface com.polarion.alm.projects.model.IUniqueObject
KEY_ID, KEY_PROJECT
-
Method Summary
Modifier and TypeMethodDescriptionaddElement
(IPObject object) Adds or updates the element for the given object.void
addUpstreamCollection
(IBaselineCollection collection) Adds a Collection to the list of upstream Collections, or updates the Collection's revision if it is already present.void
delete()
getElement
(IPObject object) Returns the element for the given object if there is one.getName()
void
removeElement
(IPObject object) Removes the element for the given object if there is one.void
removeUpstreamCollection
(IBaselineCollection collection) Removes the given Collection from the list of upstream Collections.void
void
setDescription
(Text description) void
Name of the Collection must be set before the Collection can be saved, and must not be empty or contain only whitespace.void
Methods inherited from interface com.polarion.platform.persistence.model.IAdaptable
adapt
Methods inherited from interface com.polarion.platform.persistence.model.IChangeListener
markChanged
Methods inherited from interface com.polarion.platform.persistence.model.IHasCustomValues
getCustomField, getCustomFieldPrototype, getCustomFieldsList, setCustomField
Methods inherited from interface com.polarion.platform.persistence.model.IPObject
can, copyTo, createStructureForKey, forget, getContextId, getDataRevision, getDataSvc, getEnumerationOptionForField, getEnumerationTypeForField, getFieldLabel, getFieldType, getIncompatibleCustomField, getIncompatibleCustomFieldPrototype, getIncompatibleCustomFieldsList, getLastRevision, getLocalId, getObjectId, getPrototype, getRevision, getUri, getValue, isModified, isPersisted, isReadOnly, isResolved, isUnresolvable, resolve, save, setEnumerationValue, setValue, update
Methods inherited from interface com.polarion.alm.projects.model.IUniqueObject
getId, getProject, getProjectId
-
Field Details
-
PROTO
- See Also:
-
KEY_NAME
- See Also:
-
KEY_ELEMENTS
- See Also:
-
KEY_AUTHOR
- See Also:
-
KEY_CREATED
- See Also:
-
KEY_UPDATED
- See Also:
-
KEY_LOCATION
- See Also:
-
KEY_CLOSED_ON
- See Also:
-
KEY_DESCRIPTION
- See Also:
-
KEY_REUSED_FROM
- Since:
- 3.20.2
- See Also:
-
KEY_BRANCHED_FROM
- Since:
- 3.21.2
- See Also:
-
KEY_UPSTREAM_COLLECTIONS
- Since:
- 3.24.10
- See Also:
-
KEY_DOWNSTREAM_COLLECTIONS
- Since:
- 3.24.10
- See Also:
-
DIFF_IGNORED_FIELDS
-
-
Method Details
-
getName
-
setName
Name of the Collection must be set before the Collection can be saved, and must not be empty or contain only whitespace.- Throws:
IllegalArgumentException
- if name is empty or contains only whitespace.
-
getCreated
-
getUpdated
-
getAuthor
-
setDescription
-
getDescription
-
getElements
-
getElement
Returns the element for the given object if there is one. (Works with any revision.) -
addElement
Adds or updates the element for the given object.The element's revision is set or updated to the revision of the object.
Currently, only
IModule
is allowed as the collection element's object.- Returns:
- the existing or created element for the object.
- Throws:
IllegalArgumentException
- if theobject
is not of a supported prototype.
-
removeElement
Removes the element for the given object if there is one. (Ignores revision.) -
delete
void delete() -
getClosedOn
-
setReusedFrom
- Since:
- 3.20.2
-
getReusedFrom
- Since:
- 3.20.2
-
setBranchedFrom
- Since:
- 3.21.2
-
getBranchedFrom
- Since:
- 3.21.2
-
addUpstreamCollection
Adds a Collection to the list of upstream Collections, or updates the Collection's revision if it is already present. A Collection with no revision will be rejected.- Throws:
RuntimeException
- if theIBaselineCollection
does not have a revision.- Since:
- 3.24.10
-
removeUpstreamCollection
Removes the given Collection from the list of upstream Collections. Ignores the revision.- Since:
- 3.24.10
-
getUpstreamCollections
- Returns:
- immutable list of direct upstream Collections.
- Since:
- 3.24.10
-
getDownstreamCollections
- Returns:
- A list of direct downstream Collections.
- Since:
- 3.24.10
-