|
|||||||||
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.CreateStoreTxnListener
public class CreateStoreTxnListener
Transaction listener for firing create store events.
Constructor Summary | |
---|---|
CreateStoreTxnListener()
Default constructor. |
Method Summary | |
---|---|
void |
addCallback(CreateStoreCallback cb)
Register a callback. |
void |
afterCommit()
Invoked after transaction commit. |
void |
afterRollback()
Invoked after transaction rollback. |
void |
storeCreated(java.lang.String storeName)
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 CreateStoreTxnListener()
Method Detail |
---|
public void afterCommit()
TransactionListenerAdapter
Any 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 TransactionListener
afterCommit
in class TransactionListenerAdapter
public void afterRollback()
TransactionListenerAdapter
Although all transaction resources are still available, this method should be used only for cleaning up resources after a rollback has occured.
afterRollback
in interface TransactionListener
afterRollback
in class TransactionListenerAdapter
public void storeCreated(java.lang.String storeName)
storeName
- The name of the store that has been created.public void addCallback(CreateStoreCallback cb)
cb
- The callback.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |