com.atlassian.confluence.plugin
Class ActiveObjectsTestResource

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

public class ActiveObjectsTestResource
extends 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(String ids, Boolean throwException)
           
 javax.ws.rs.core.Response flushEntityManager()
           
 javax.ws.rs.core.Response gc()
           
 javax.ws.rs.core.Response getAccount(Integer id)
           
 javax.ws.rs.core.Response testSpaceCreationIsRolledBackInNestedTransaction()
           
 javax.ws.rs.core.Response testTransfer(Integer fromId, Integer toId, Integer amount, Boolean throwException)
           
 javax.ws.rs.core.Response testTransferWithExceptionOutsideAO(Integer fromId, Integer toId, 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(Integer fromId,
                                              Integer toId,
                                              Integer amount,
                                              Boolean throwException)

testTransferWithExceptionOutsideAO

public javax.ws.rs.core.Response testTransferWithExceptionOutsideAO(Integer fromId,
                                                                    Integer toId,
                                                                    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(String ids,
                          Boolean throwException)

getAccount

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


Copyright © 2003–2015 Atlassian. All rights reserved.