public interface ExecutableComponentDescriptionManager
ExecutableComponentDescriptions which includes retrieval,
creation, updating and managing the states of
ExecutableComponentDescriptions. Executable component
descriptions are identified by their name which is therefore system-wide
unique.
If the provided entity (or its identifying attributes) of a method does not
exist, an UnknownEntityException will be thrown.
| Modifier and Type | Method and Description |
|---|---|
ExecutableComponentDescription |
getDevelopmentECD(SessionToken session,
java.lang.String ecName,
long branch)
Gets the (full-fledged object representing the) development version of the
designated executable component description in the designated branch.
|
java.util.Collection<ECDReference> |
getDevelopmentECDReferences(SessionToken session,
long branch)
Gets lightweight objects representing the development versions of all
executable component descriptions in the designated branch known by this
manager.
|
RemoteIterator<java.util.List<ECDReference>> |
getDevelopmentECDReferencesIterator(SessionToken session,
long branch)
The same as
getDevelopmentECDReferences(SessionToken, long) but
with partial retrieval of the references. |
java.util.List<ECDReference> |
getECDReferenceRevisions(SessionToken session,
java.lang.String ecName)
Gets lightweight objects representing all revisions of the designated
executable component description or an empty list in case there are no
revisions yet.
|
RemoteIterator<java.util.List<ECDReference>> |
getECDReferenceRevisionsIterator(SessionToken session,
java.lang.String ecName)
The same as
getECDReferenceRevisions(SessionToken, String) but
with partial retrieval of the references. |
java.util.Collection<ECDReference> |
getECDReferencesRevision(SessionToken session,
long revision)
Gets lightweight objects representing all executable component descriptions
of the designated revision known by this manager.
|
RemoteIterator<java.util.List<ECDReference>> |
getECDReferencesRevisionIterator(SessionToken session,
long revision)
The same as
getECDReferencesRevision(SessionToken, long) but with
partial retrieval of the references. |
ExecutableComponentDescription |
getECDRevision(SessionToken session,
java.lang.String ecName,
long revision)
Gets the (full-fledged object representing the) designated revision of the
designated executable component description.
|
ExecutableComponentDescription |
getLatestECD(SessionToken session,
java.lang.String ecName)
Gets the (full-fledged object representing the) latest revision of the
designated executable component description.
|
ECDReference |
getLatestECDReference(SessionToken session,
java.lang.String ecName)
Gets a lightweight object representing the latest revision of the
designated executable component description.
|
java.util.Collection<ECDReference> |
getLatestECDReferences(SessionToken session,
boolean productionOnly)
Gets lightweight objects representing the latest revisions (
IN_PRODUCTION and/or OUTDATED) of all executable
component descriptions known by this manager. |
RemoteIterator<java.util.List<ECDReference>> |
getLatestECDReferencesIterator(SessionToken session,
boolean productionOnly)
The same as
getLatestECDReferences(SessionToken, boolean) but with
partial retrieval of the references. |
void |
outdateECD(SessionToken session,
java.lang.String ecName)
Outdates the latest revision of the designated executable component
description explicitly which prevents its usage afterwards.
|
void |
revertDevelopmentECD(SessionToken session,
java.lang.String ecName,
long branch)
Reverts the designated development executable component description in the
designated branch that is all changes will be undone and the executable
component description will logically be the same as the base revision of
the branch.
|
CheckReport |
simulateUpdateOfDevelopmentECD(SessionToken session,
java.lang.String ecName,
long branch)
Simulates updating of the designated executable component description in
the designated branch, that is only the designated executable component
description of the branch is checked for whether it can be updated to the
latest revision.
|
void |
storeDevelopmentECD(SessionToken session,
StorageExecutableComponentDescription ecd,
long branch)
Stores the designated (storage representation of the) executable component
description in the designated branch and sets it
IN_DEVELOPMENT if not done yet. |
java.util.Collection<ECDReference> getLatestECDReferences(SessionToken session, boolean productionOnly)
IN_PRODUCTION and/or OUTDATED) of all executable
component descriptions known by this manager.session - The session which is used to check for access rights on this
method.productionOnly - Whether only the revisions
IN_PRODUCTCION should be retrieved.IN_PRODUCTION and/or
OUTDATED known by this manager.RemoteIterator<java.util.List<ECDReference>> getLatestECDReferencesIterator(SessionToken session, boolean productionOnly)
getLatestECDReferences(SessionToken, boolean) but with
partial retrieval of the references.session - The session which is used to check for access rights on this
method.productionOnly - Whether only the revisions
IN_PRODUCTCION should be retrieved.IN_PRODUCTION and/or
OUTDATED known by this manager as iterator.java.util.Collection<ECDReference> getECDReferencesRevision(SessionToken session, long revision)
IN_PRODUCTION or OUTDATED depending on whether
they have been changed or set to outdated from the designated to the latest
revision.session - The session which is used to check for access rights on this
method.revision - The revision of which to retrieve all executable component
descriptions known by this manager.RemoteIterator<java.util.List<ECDReference>> getECDReferencesRevisionIterator(SessionToken session, long revision)
getECDReferencesRevision(SessionToken, long) but with
partial retrieval of the references.session - The session which is used to check for access rights on this
method.revision - The revision of which to retrieve all executable component
descriptions known by this manager.ECDReference getLatestECDReference(SessionToken session, java.lang.String ecName)
session - The session which is used to check for access rights on this
method.ecName - The name of the executable component description of which to
retrieve a lightweight representation.UnknownEntityException - If the
designated executable component description does not exist, an
UnknownEntityException will be thrown.java.util.List<ECDReference> getECDReferenceRevisions(SessionToken session, java.lang.String ecName)
session - The session which is used to check for access rights on this
method.ecName - The name of the executable component description of which to
retrieve all revisions as lightweight representation.UnknownEntityException - If the
designated executable component description does not exist, an
UnknownEntityException will be thrown.RemoteIterator<java.util.List<ECDReference>> getECDReferenceRevisionsIterator(SessionToken session, java.lang.String ecName)
getECDReferenceRevisions(SessionToken, String) but
with partial retrieval of the references.session - The session which is used to check for access rights on this
method.ecName - The name of the executable component description of which to
retrieve all revisions as lightweight representation.UnknownEntityException - If the
designated executable component description does not exist, an
UnknownEntityException will be thrown.ExecutableComponentDescription getLatestECD(SessionToken session, java.lang.String ecName)
session - The session which is used to check for access rights on this
method.ecName - The name of the executable component description of which to
retrieve the latest revision.UnknownEntityException - If the
designated executable component description does not exist, an
UnknownEntityException will be thrown.ExecutableComponentDescription getECDRevision(SessionToken session, java.lang.String ecName, long revision)
session - The session which is used to check for access rights on this
method.ecName - The name of the executable component description of which to
retrieve a specific revision.revision - The revision of the executable component description which
to retrieve.UnknownEntityException - If the
designated executable component description or the revision does
not exist, an UnknownEntityException will be
thrown.java.util.Collection<ECDReference> getDevelopmentECDReferences(SessionToken session, long branch)
IN_DEVELOPMENT (changed entities),
IN_PRODUCTION (unchanged entities whereas the base revision is
the latest revision) or OUTDATED (unchanged entities).session - The session which is used to check for access rights on this
method.branch - The branch of which to retrieve lightweight objects for the
executable component descriptions.UnknownEntityException - If the
designated branch is currently unused, an
UnknownEntityException will be thrown.RemoteIterator<java.util.List<ECDReference>> getDevelopmentECDReferencesIterator(SessionToken session, long branch)
getDevelopmentECDReferences(SessionToken, long) but
with partial retrieval of the references.session - The session which is used to check for access rights on this
method.branch - The branch of which to retrieve lightweight objects for the
executable component descriptions.UnknownEntityException - If the
designated branch is currently unused, an
UnknownEntityException will be thrown.ExecutableComponentDescription getDevelopmentECD(SessionToken session, java.lang.String ecName, long branch)
IN_DEVELOPMENT if it has already
been changed with respect to its base revision. Otherwise the entity will a
copy of the base revision of the branch and therefore
IN_PRODUCTION (in case the base revision is the latest
revision) or OUTDATED (in case the base revision is already
outdated). This copy will be set IN_DEVELOPMENT as soon as
it is
stored the first time.session - The session which is used to check for access rights on this
method.ecName - The name of the executable component description of which to
retrieve the development version of the designated branch.branch - The branch of which to retrieve the corresponding executable
component description (or a new copy of the corresponding base
revision entity in case it has not been changed before in this
branch).UnknownEntityException - If the
designated executable component description does not exist or the
designated branch is currently unused, an
UnknownEntityException will be thrown.void storeDevelopmentECD(SessionToken session, StorageExecutableComponentDescription ecd, long branch)
IN_DEVELOPMENT if not done yet. All changes are therefore
persisted. The branch is usually the same as specified when
retrieving the
executable component description for development. However, it can be
changed but the content of the target branch will be overwritten. This can
be used to copy changes between branches.
When storing an executable component definition, the
IDs of all corresponding ActivityTemplateDefinitions will be
changed.
session - The session which is used to check for access rights on this
method and to identify the storing agent and the corresponding
organisational position.ecd - The executable component description providing the new
attributes to be set. Executable component descriptions are
identified by their name, therefore the name will not be able to
be changed if there is at least one production revision.branch - The branch in which to store the corresponding executable
component description.UnknownEntityException - If the
designated branch is currently unused, an
UnknownEntityException will be thrown.void revertDevelopmentECD(SessionToken session, java.lang.String ecName, long branch)
session - The session which is used to check for access rights on this
method.ecName - The name of the executable component description of which to
revert the development version in the designated branch.branch - The branch in which to revert the designated executable
component description and therefore undoing made changes.UnknownEntityException - If the
designated executable component description does not exist in the
designated branch or does not exist at all or the designated
branch is currently unused, an
UnknownEntityException will be thrown.CheckReport simulateUpdateOfDevelopmentECD(SessionToken session, java.lang.String ecName, long branch)
session - The session which is used to check for access rights on this
method.ecName - The name of the executable component description which to
check for versioning conflicts due to updating to the latest
revision.branch - The branch in which to check the designated executable
component description for versioning conflicts when updating.UnknownEntityException - If the
designated executable component description does not exist in the
designated branch or does not exist at all, an
UnknownEntityException will be thrown.void outdateECD(SessionToken session, java.lang.String ecName)
OUTDATED executable component description will be
ignored.session - The session which is used to check for access rights on this
method and to identify the outdating agent and the corresponding
organisational position.ecName - The name of the executable component description of which to
explicitly outdate the latest revision.UnknownEntityException - If the
designated executable component description does not exist, an
UnknownEntityException will be thrown.