uk.ac.soton.ecs.iam.grid.client.staterepos
Class AccountConversationImpl

java.lang.Object
  extended by uk.ac.soton.ecs.iam.grid.client.staterepos.AccountConversationImpl
All Implemented Interfaces:
Comparable<StorableInStateRepository>, AccountConversation, Conversation, StorableInStateRepository, AccountResource, PolicyManagement, ResourceMetadata, Signallable
Direct Known Subclasses:
PrivateAccountConversationImpl, TradeAccountConversationImpl

Deprecated.

@Deprecated
public abstract class AccountConversationImpl
extends Object
implements AccountConversation

The default implementation of AccountConversation.


Constructor Summary
AccountConversationImpl(StateRepository repository, org.apache.axis.message.addressing.EndpointReferenceType EPR)
          Deprecated. Create an AccountConversation.
 
Method Summary
 void addBudgetHolderRule(MatchRule rule)
          Deprecated. Add a rule controlling access to the budget-holder role.
 void addUserRule(MatchRule rule)
          Deprecated. Enable access to an account to another user
 boolean checkUser(SubjectDescription user)
          Deprecated. Test whether this user has the 'user' role.
 void closeAccount()
          Deprecated. Close an account
 AccountStatement getAccountStatement(Date from, Date to)
          Deprecated. Get a statement for an account
 String getAccountStatus()
          Deprecated. Get the current status of an account
 MatchRule[] getBudgetHolderRules()
          Deprecated. List the current rules used to determine whether someone has the 'budget-holder' role.
 Class getInterface()
          Deprecated. Returns the type of this object.
 MatchRule[] getUserRules()
          Deprecated. List the current rules used to determine whether someone has the 'user' role (which allows them to charge to this account.
 void removeBudgetHolderRule(MatchRule rule)
          Deprecated. Remove a rule controlling access to the budget-holder role.
 void removeUserRule(MatchRule rule)
          Deprecated. Disable access to an account for a user
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface uk.ac.soton.ecs.iam.grid.comms.client.Conversation
finish, getChildConversations, getService, isFinished, outOfDate
 
Methods inherited from interface uk.ac.soton.ecs.iam.grid.comms.client.StorableInStateRepository
getDescription, getEndpointRef, getParentURL, getRepository, getURL, setDescription
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface uk.ac.soton.itinnovation.grid.types.PolicyManagement
addPolicyRule, getPolicyRules, getValidRoles, removePolicyRule
 
Methods inherited from interface uk.ac.soton.itinnovation.grid.types.ResourceMetadata
getEPR, setLabel
 
Methods inherited from interface uk.ac.soton.itinnovation.grid.types.Signallable
getAvailableSignals, signal
 

Constructor Detail

AccountConversationImpl

public AccountConversationImpl(StateRepository repository,
                               org.apache.axis.message.addressing.EndpointReferenceType EPR)
                        throws ObjectAlreadyExists
Deprecated. 
Create an AccountConversation.

Throws:
ObjectAlreadyExists
Method Detail

getInterface

public Class getInterface()
Deprecated. 
Description copied from interface: StorableInStateRepository
Returns the type of this object. When loading the object, a StateRepository locates a class implementing the interface and uses that for the object.

Specified by:
getInterface in interface StorableInStateRepository

getAccountStatus

public String getAccountStatus()
                        throws RemoteException
Deprecated. 
Description copied from interface: AccountResource
Get the current status of an account

Specified by:
getAccountStatus in interface AccountResource
Returns:
the account's status
Throws:
RemoteException - If the account status cannot be accessed

getAccountStatement

public AccountStatement getAccountStatement(Date from,
                                            Date to)
                                     throws RemoteException
Deprecated. 
Description copied from interface: AccountResource
Get a statement for an account

Specified by:
getAccountStatement in interface AccountResource
Parameters:
from - - the start of the period the statement should cover
to - - the start of the period the statement should cover
Returns:
A generated statement for the account
Throws:
RemoteException - If the account statement cannot be generated

addBudgetHolderRule

public void addBudgetHolderRule(MatchRule rule)
                         throws RemoteException
Deprecated. 
Description copied from interface: AccountResource
Add a rule controlling access to the budget-holder role.

Specified by:
addBudgetHolderRule in interface AccountResource
Parameters:
rule - - the rule to add (role must be "budget-holder")
Throws:
RemoteException

removeBudgetHolderRule

public void removeBudgetHolderRule(MatchRule rule)
                            throws RemoteException
Deprecated. 
Description copied from interface: AccountResource
Remove a rule controlling access to the budget-holder role.

Specified by:
removeBudgetHolderRule in interface AccountResource
Parameters:
rule - - the rule to remove (role must be "budget-holder")
Throws:
RemoteException

getBudgetHolderRules

public MatchRule[] getBudgetHolderRules()
                                 throws RemoteException
Deprecated. 
Description copied from interface: AccountResource
List the current rules used to determine whether someone has the 'budget-holder' role.

Specified by:
getBudgetHolderRules in interface AccountResource
Throws:
RemoteException

addUserRule

public void addUserRule(MatchRule rule)
                 throws RemoteException
Deprecated. 
Description copied from interface: AccountResource
Enable access to an account to another user

Specified by:
addUserRule in interface AccountResource
Parameters:
rule - - the delegate
Throws:
RemoteException - If there is a problem enabling access to the account for the user

removeUserRule

public void removeUserRule(MatchRule rule)
                    throws RemoteException
Deprecated. 
Description copied from interface: AccountResource
Disable access to an account for a user

Specified by:
removeUserRule in interface AccountResource
Parameters:
rule - - the delegate
Throws:
RemoteException - If there is a problem disabling access to the account for the use

getUserRules

public MatchRule[] getUserRules()
                         throws RemoteException
Deprecated. 
Description copied from interface: AccountResource
List the current rules used to determine whether someone has the 'user' role (which allows them to charge to this account.

Specified by:
getUserRules in interface AccountResource
Throws:
RemoteException

checkUser

public boolean checkUser(SubjectDescription user)
                  throws RemoteException
Deprecated. 
Description copied from interface: AccountResource
Test whether this user has the 'user' role.

Specified by:
checkUser in interface AccountResource
Parameters:
user - user to test.
Returns:
true if this is a valid user of the account, or false if not
Throws:
RemoteException - if the caller is not permitted to check

closeAccount

public void closeAccount()
                  throws RemoteException
Deprecated. 
Description copied from interface: AccountResource
Close an account

Specified by:
closeAccount in interface AccountResource
Throws:
RemoteException - If the account cannot be closed


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