uk.ac.soton.itinnovation.grid.service.account
Class ApproveAlways

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.service.account.ApproveAlways
All Implemented Interfaces:
NewAccountChecker

public class ApproveAlways
extends Object
implements NewAccountChecker

This class is just for testing.


Constructor Summary
ApproveAlways()
           
 
Method Summary
 BigDecimal checkNewAccount(Account account)
          Account 'account' has just been created by a client.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApproveAlways

public ApproveAlways()
Method Detail

checkNewAccount

public BigDecimal checkNewAccount(Account account)
                           throws GridFailureException
Description copied from interface: NewAccountChecker
Account 'account' has just been created by a client. Begin the approval process. This process will call either approveAccount or denyAccount at some point in the future. This call may return before the account has been approved or rejected.

Specified by:
checkNewAccount in interface NewAccountChecker
Returns:
initial credit limit, or null to leave in pending state
Throws:
GridFailureException - to deny the account TODO: this isn't a good interface.


Copyright © 2001-2008 University of Southampton IT Innovation Centre. All Rights Reserved.