Class MockTransactionService

  • All Implemented Interfaces:
    Serializable, org.alfresco.service.transaction.TransactionService

    public class MockTransactionService
    extends Object
    implements org.alfresco.service.transaction.TransactionService, Serializable
    See Also:
    Serialized Form
    • Constructor Detail

      • MockTransactionService

        public MockTransactionService()
    • Method Detail

      • getAllowWrite

        public boolean getAllowWrite()
        Specified by:
        getAllowWrite in interface org.alfresco.service.transaction.TransactionService
      • isReadOnly

        public boolean isReadOnly()
        Specified by:
        isReadOnly in interface org.alfresco.service.transaction.TransactionService
      • getUserTransaction

        public javax.transaction.UserTransaction getUserTransaction()
        Specified by:
        getUserTransaction in interface org.alfresco.service.transaction.TransactionService
      • getUserTransaction

        public javax.transaction.UserTransaction getUserTransaction​(boolean readOnly)
        Specified by:
        getUserTransaction in interface org.alfresco.service.transaction.TransactionService
      • getUserTransaction

        public javax.transaction.UserTransaction getUserTransaction​(boolean readOnly,
                                                                    boolean ignoreSystemReadOnly)
        Specified by:
        getUserTransaction in interface org.alfresco.service.transaction.TransactionService
      • getNonPropagatingUserTransaction

        public javax.transaction.UserTransaction getNonPropagatingUserTransaction()
        Specified by:
        getNonPropagatingUserTransaction in interface org.alfresco.service.transaction.TransactionService
      • getNonPropagatingUserTransaction

        public javax.transaction.UserTransaction getNonPropagatingUserTransaction​(boolean readOnly)
        Specified by:
        getNonPropagatingUserTransaction in interface org.alfresco.service.transaction.TransactionService
      • getNonPropagatingUserTransaction

        public javax.transaction.UserTransaction getNonPropagatingUserTransaction​(boolean readOnly,
                                                                                  boolean ignoreSystemReadOnly)
        Specified by:
        getNonPropagatingUserTransaction in interface org.alfresco.service.transaction.TransactionService
      • getRetryingTransactionHelper

        public org.alfresco.repo.transaction.RetryingTransactionHelper getRetryingTransactionHelper()
        Specified by:
        getRetryingTransactionHelper in interface org.alfresco.service.transaction.TransactionService