Package org.alfresco.repo.dictionary
Class DictionaryModelType.DictionaryModelTypeTransactionListener
java.lang.Object
org.alfresco.repo.transaction.TransactionListenerAdapter
org.alfresco.repo.dictionary.DictionaryModelType.DictionaryModelTypeTransactionListener
- All Implemented Interfaces:
TransactionListener,org.alfresco.util.transaction.TransactionListener
- Enclosing class:
- DictionaryModelType
public class DictionaryModelType.DictionaryModelTypeTransactionListener
extends TransactionListenerAdapter
Dictionary model type transaction listener class.
-
Constructor Summary
ConstructorsConstructorDescriptionDictionaryModelTypeTransactionListener(NodeService nodeService, ContentService contentService) -
Method Summary
Modifier and TypeMethodDescriptionvoidInvoked after transaction commit.voidbeforeCommit(boolean readOnly) Called before a transaction is committed.booleanMethods inherited from class org.alfresco.repo.transaction.TransactionListenerAdapter
afterRollback, beforeCompletion, flushMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.alfresco.util.transaction.TransactionListener
getCustomOrder
-
Constructor Details
-
DictionaryModelTypeTransactionListener
public DictionaryModelTypeTransactionListener(NodeService nodeService, ContentService contentService)
-
-
Method Details
-
afterCommit
public void afterCommit()Description copied from class:TransactionListenerAdapterInvoked after transaction commit.Any exceptions generated here will only be logged and will have no effect on the state of the transaction.
Although all transaction resources are still available, this method should be used only for cleaning up resources after a commit has occured.
- Specified by:
afterCommitin interfaceTransactionListener- Specified by:
afterCommitin interfaceorg.alfresco.util.transaction.TransactionListener- Overrides:
afterCommitin classTransactionListenerAdapter
-
beforeCommit
public void beforeCommit(boolean readOnly) Description copied from class:TransactionListenerAdapterCalled before a transaction is committed.All transaction resources are still available.
- Specified by:
beforeCommitin interfaceTransactionListener- Specified by:
beforeCommitin interfaceorg.alfresco.util.transaction.TransactionListener- Overrides:
beforeCommitin classTransactionListenerAdapter- Parameters:
readOnly- true if the transaction is read-only- See Also:
-
equals
-