|
|||||||||
| 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.CreateVersionTxnListener
public class CreateVersionTxnListener
Transaction listener that fires create version events.
| Constructor Summary | |
|---|---|
CreateVersionTxnListener()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
addCallback(CreateVersionCallback cb)
Register a callback. |
void |
afterCommit()
Invoked after transaction commit. |
void |
afterRollback()
Invoked after transaction rollback. |
void |
versionCreated(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 CreateVersionTxnListener()
| 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 versionCreated(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(CreateVersionCallback cb)
cb - The callback.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||