|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.versioning.Versions
This class provides methods for rolling back to a previous point in the versioning log.
Field Summary | |
static EventProcessorManager |
EPM
This should be considered an implementation detail that is subject to change. |
static VersioningMetadata.NodeVisitor |
NODE_VISITOR
This should be considered an implementation detail that is subject to change. |
Method Summary | |
static Difference |
diff(OID oid,
BigInteger fromID,
BigInteger toID)
|
static Difference |
diff(OID oid,
Transaction from,
Transaction to)
|
static Audited |
getAuditInfo(OID oid)
Returns the audit info for the data object identified by oid . |
static BigInteger |
getMostRecentTxnID(OID oid,
String tag)
Returns the most recent versioning txn id for this oid that
has been tagged with tag . |
static TransactionCollection |
getTaggedTransactions(OID oid)
|
static TransactionCollection |
getTaggedTransactions(OID oid,
boolean down)
|
static void |
resumeVersioning()
Resumes the recording of changes to versioned data objects within the current transaction. |
static DataObject |
rollback(OID oid,
BigInteger txnID)
Rolls back the versioned data object specified by oid to an
earlier state specified by the changeID and returns the rolled
back data object. |
static void |
suspendVersioning()
Suspends the recording of changes to versioned data objects within the current transaction. |
static void |
tag(OID oid,
String tag)
Tags changes made in the current session. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final VersioningMetadata.NodeVisitor NODE_VISITOR
public static final EventProcessorManager EPM
Method Detail |
public static void tag(OID oid, String tag)
tag
- a short string identifying the set of changes made in the
current session.public static void suspendVersioning() throws VersioningException
Suspends the recording of changes to versioned data objects within the current transaction. All changes made after this call will be discarded. All pending tags will be applied.
VersioningException
- if there are unflushable pending eventsresumeVersioning()
public static void resumeVersioning() throws VersioningException
Resumes the recording of changes to versioned data objects within the current transaction.
VersioningException
- if there are unflushable pending eventssuspendVersioning()
public static BigInteger getMostRecentTxnID(OID oid, String tag)
oid
that
has been tagged with tag
.
public static TransactionCollection getTaggedTransactions(OID oid, boolean down)
public static TransactionCollection getTaggedTransactions(OID oid)
public static Difference diff(OID oid, BigInteger fromID, BigInteger toID)
public static Difference diff(OID oid, Transaction from, Transaction to)
public static DataObject rollback(OID oid, BigInteger txnID)
oid
to an
earlier state specified by the changeID
and returns the rolled
back data object.
The resulting rolled back data objects are not explicitly saved.
Unless you choose to call save()
explicitly in your own code
after rollback, the rolled back objects will be saved implicitly when the
transaction is committed.
public static Audited getAuditInfo(OID oid)
Returns the audit info for the data object identified by
oid
. May return null
if no auditing info can be
found for the specified oid
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |