|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.transaction.TransactionListenerAdapter
org.alfresco.repo.avm.PurgeVersionTxnListener
public class PurgeVersionTxnListener
Transaction listener that fires purge version events.
| Constructor Summary | |
|---|---|
PurgeVersionTxnListener()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
addCallback(PurgeVersionCallback cb)
Register a callback. |
void |
afterCommit()
Invoked after transaction commit. |
void |
afterRollback()
Invoked after transaction rollback. |
void |
versionPurged(java.lang.String storeName,
int versionID)
During the transaction somebody is responsible for calling this. |
| Methods inherited from class org.alfresco.repo.transaction.TransactionListenerAdapter |
|---|
beforeCommit, beforeCompletion, flush |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PurgeVersionTxnListener()
| Method Detail |
|---|
public void afterCommit()
TransactionListenerAdapterAny exceptions generated here will cause the transaction to rollback.
Although all transaction resources are still available, this method should be used only for cleaning up resources after a commit has occured.
afterCommit in interface TransactionListenerafterCommit in class TransactionListenerAdapterpublic void afterRollback()
TransactionListenerAdapterAlthough all transaction resources are still available, this method should be used only for cleaning up resources after a rollback has occured.
afterRollback in interface TransactionListenerafterRollback in class TransactionListenerAdapter
public void versionPurged(java.lang.String storeName,
int versionID)
storeName - The name of the store that just created a new versionversionID - The id of the new version.public void addCallback(PurgeVersionCallback cb)
cb - The callback.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||