public class Revision extends AbstractCloneable implements WorkflowBean
Revisioned
workflow beans point to their latest Revision, which
getIdentifier()
identifiers this version of the revisioned bean.
It is important that the identifier is world-wide unique, but also that it
always identifies the same revision. It is not a requirement that the actual
revision of the bean can be retrieved from the URI. Revisioned
objects can mint UUID based URIs within namespaces of
http://ns.taverna.org.uk/
when using
Revisioned.newRevision()
.
The getPreviousRevision()
indicates the previous step in the chain
of revisions which led to the current version. The revision only provides
metadata about that older version, not the actual representation. (that is
out of scope for scufl2, and should be handled by regular version control
systems such as git).
A revision might note that compared to its previous revision, it has added (
getAdditionOf()
), removed ( getRemovalOf()
) and/or modified
( getModificationsOf()
) resources. For instance, in a revision for a
Workflow
, the Revision might record the addition of a
Processor
; and in revision of a Profile, a modification of a
Configuration
.
Higher level, the revisions of a WorkflowBundle
would record addition
of a Workflow
(which itself would have a separate Revision chain) -
in this case getHadOriginalSources()
can indicate the workflow
bundle that nested workflow and its configurations came from.
Revisions might be given a custom getChangeSpecificationType()
to
indicate a particular kind of edit, for instance insertion of a nested
workflow.
AbstractCloneable.Cloning, AbstractCloneable.CopyVisitor
Constructor and Description |
---|
Revision() |
Revision(URI identifier,
Revision previousRevision) |
clone, cloneWorkflowBean
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clone
public URI getChangeSpecificationType()
public Calendar getGeneratedAtTime()
public URI getIdentifier()
public Revision getPreviousRevision()
public void setChangeSpecificationType(URI changeSpecificationType)
public void setGeneratedAtTime(Calendar generatedAtTime)
public void setIdentifier(URI identifier)
public void setPreviousRevision(Revision previousRevision)
public boolean accept(Visitor visitor)
WorkflowBean
Visitor
to this WorkflowBean
.accept
in interface WorkflowBean
visitor
- the Visitor
to accepttrue
if this WorkflowBeans
children should be visited.protected void cloneInto(WorkflowBean clone, AbstractCloneable.Cloning cloning)
cloneInto
in class AbstractCloneable
Copyright © 2013 myGrid. All rights reserved.