com.atlassian.confluence.plugin
Class ActiveObjectsTestResource

java.lang.Object
  extended by com.atlassian.confluence.plugin.ActiveObjectsTestResource

public class ActiveObjectsTestResource
extends java.lang.Object


Constructor Summary
ActiveObjectsTestResource(com.atlassian.activeobjects.external.ActiveObjects ao, com.atlassian.sal.api.transaction.TransactionTemplate template, SpaceManager spaceManager, UserAccessor userAccessor)
           
 
Method Summary
 javax.ws.rs.core.Response createAccount()
           
 javax.ws.rs.core.Response createAccount(BankAccount bankAccount)
           
 void deleteAccount(java.lang.String ids, java.lang.Boolean throwException)
           
 javax.ws.rs.core.Response flushEntityManager()
           
 javax.ws.rs.core.Response gc()
           
 javax.ws.rs.core.Response getAccount(java.lang.Integer id)
           
 javax.ws.rs.core.Response testSpaceCreationIsRolledBackInNestedTransaction()
           
 javax.ws.rs.core.Response testTransfer(java.lang.Integer fromId, java.lang.Integer toId, java.lang.Integer amount, java.lang.Boolean throwException)
           
 javax.ws.rs.core.Response testTransferWithExceptionOutsideAO(java.lang.Integer fromId, java.lang.Integer toId, java.lang.Integer amount)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActiveObjectsTestResource

public ActiveObjectsTestResource(com.atlassian.activeobjects.external.ActiveObjects ao,
                                 com.atlassian.sal.api.transaction.TransactionTemplate template,
                                 SpaceManager spaceManager,
                                 UserAccessor userAccessor)
Method Detail

testTransfer

public javax.ws.rs.core.Response testTransfer(java.lang.Integer fromId,
                                              java.lang.Integer toId,
                                              java.lang.Integer amount,
                                              java.lang.Boolean throwException)

testTransferWithExceptionOutsideAO

public javax.ws.rs.core.Response testTransferWithExceptionOutsideAO(java.lang.Integer fromId,
                                                                    java.lang.Integer toId,
                                                                    java.lang.Integer amount)

flushEntityManager

public javax.ws.rs.core.Response flushEntityManager()

gc

public javax.ws.rs.core.Response gc()

testSpaceCreationIsRolledBackInNestedTransaction

public javax.ws.rs.core.Response testSpaceCreationIsRolledBackInNestedTransaction()

createAccount

public javax.ws.rs.core.Response createAccount(BankAccount bankAccount)

createAccount

public javax.ws.rs.core.Response createAccount()

deleteAccount

public void deleteAccount(java.lang.String ids,
                          java.lang.Boolean throwException)

getAccount

public javax.ws.rs.core.Response getAccount(java.lang.Integer id)


Copyright © 2003-2014 Atlassian. All Rights Reserved.