public interface RevisionManager
| Modifier and Type | Method and Description |
|---|---|
CheckReport |
checkBranch(SessionToken session,
long branch,
java.util.Locale... locales)
Checks the designated branch for inheritance conflicts.
|
Branch |
createBranch(SessionToken session,
java.lang.String comment)
Creates a new branch with the designated comment.
|
java.util.Collection<Branch> |
getAllBranches(SessionToken session)
Gets all branches that are currently in use by this manager.
|
RemoteIterator<java.util.List<Branch>> |
getAllBranchesIterator(SessionToken session)
The same as
getAllBranches(SessionToken) but with partial
retrieval of the branches. |
Branch |
getBranchData(SessionToken session,
long branch)
Gets detailed information on the designated branch, that is, the base
revision, the creation time of the branch, the last modification time, the
creator and a comment.
|
Revision |
getLatestRevision(SessionToken session)
Gets detailed information on the latest revision of this activity
repository.
|
Revision |
getRevisionData(SessionToken session,
long revision)
Gets detailed information on the designated revision, that is, the creation
time of the revision, the creator and a comment.
|
void |
releaseBranch(SessionToken session,
long branch,
java.lang.String comment)
Releases the designated branch and creates a new production revision which
will set all former revisions to outdated.
|
void |
removeBranch(SessionToken session,
long branch)
Removes the branch by completely dropping all changes.
|
CheckReport |
updateBranch(SessionToken session,
long branch,
boolean force,
java.util.Locale... locales)
Updates the designated branch, that is, all changes made to the production revisions since
creating or last updating the branch will be incorporated in the branch.
|
Revision getLatestRevision(SessionToken session)
session - The session which is used to check for access rights on this
method.Revision getRevisionData(SessionToken session, long revision)
session - The session which is used to check for access rights on this
method.revision - The revision count for which to retrieve detailed
information.UnknownEntityException - If the
designated revision does not exist, an
UnknownEntityException will be thrown.java.util.Collection<Branch> getAllBranches(SessionToken session)
session - The session which is used to check for access rights on this
method.RemoteIterator<java.util.List<Branch>> getAllBranchesIterator(SessionToken session)
getAllBranches(SessionToken) but with partial
retrieval of the branches.session - The session which is used to check for access rights on this
method.Branch getBranchData(SessionToken session, long branch)
session - The session which is used to check for access rights on this
method.branch - The branch count for which to retrieve detailed information.UnknownEntityException - If the
designated branch does not exist, an
UnknownEntityException will be thrown.Branch createBranch(SessionToken session, java.lang.String comment)
releasing a branch, they
need to be based on the latest revision which can be done by
updating them.session - The session which is used to check for access rights on this
method and to identify the creating agent and the corresponding
organisational position.comment - A comment for the newly created branch providing information
on the intended changes. This is especially useful when having
many concurrent branches.CheckReport checkBranch(SessionToken session, long branch, java.util.Locale... locales)
Inheritance conflicts may occur for instance when setting an overridden configuration value to
fixed or declaring configuration entries which already exist but are incompatible with each
other or by attributes that may only be overridden in dedicated ways.
Note that these conflicts are different from versioning conflicts. The latter occur due to
concurrent changes in the same entity, inheritance conflicts are due to incompatible changes
between two entities in the activity model whereas one entity may override attributes of the
other one.
session - The session which is used to check for access rights on this method.branch - The branch which to check for inheritance conflicts.locales - The locale(s) for the messages in the check report. If this is null,
Locale.ROOT will be used.CheckReport updateBranch(SessionToken session, long branch, boolean force, java.util.Locale... locales)
session - The session which is used to check for access rights on this methodbranch - The branch which to update (and check for versioning conflicts).force - Whether conflicting attributes should be taken from the development branch and the
ones from the latest production revision.locales - The locale(s) for the messages in the check report. If this is null,
Locale.ROOT will be used.UnknownEntityException - If the designated branch does not
exist, an UnknownEntityException will be thrown.void releaseBranch(SessionToken session, long branch, java.lang.String comment) throws RevisionConflictException, InheritanceConflictException
removing the branch.
Therefore after releasing a branch will be empty. session - The session which is used to check for access rights on this
method and to identify the releasing agent and the corresponding
organisational position.branch - The branch which to release.comment - The comment for the new revision to be created. Use null to adopt the branch's comment as release comment.RevisionConflictException - If there are revision conflicts, that is
the branch is not based on the latest revision of the repository,
a RevisionConflictException will be thrown. You will
have to update
the branch beforehand.InheritanceConflictException - If there are conflicts due to
inheritance, for instance, a child entity overrides a fixed
configuration entry of a parent entity, an
InheritanceConflictException will be thrown. Use
checkBranch(SessionToken, long, Locale...) for detailed information
on the inheritance conflicts.void removeBranch(SessionToken session, long branch)
session - The session which is used to check for access rights on this
method.branch - The branch to remove completely including all changed
entities in it.UnknownEntityException - If the
designated branch is currently unused, an
UnknownEntityException will be thrown.