uk.ac.soton.itinnovation.grid.comms.account
Class TradeAccountHelpers

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.client.proxy.AbstractProxyHelpers<T>
      extended by uk.ac.soton.itinnovation.grid.client.proxy.LegacyProxyHelpers<TradeAccountResource>
          extended by uk.ac.soton.itinnovation.grid.comms.account.TradeAccountHelpers
All Implemented Interfaces:
Comparable<StorableInStateRepository>, Conversation, StorableInStateRepository, ProxyHelpers, WebProxy

@RawProxyInterface(value=TradeAccountResource.class)
public class TradeAccountHelpers
extends LegacyProxyHelpers<TradeAccountResource>


Field Summary
 
Fields inherited from class uk.ac.soton.itinnovation.grid.client.proxy.AbstractProxyHelpers
helperProxyFactory, log, rawProxy, target, transport
 
Constructor Summary
TradeAccountHelpers()
           
 
Method Summary
 void addPolicyRule(PolicyRule rule)
           
 void ensureIsUser(SubjectDescription subject)
          Determine if a user can use an account.
 PolicyRule[] getPolicyRules()
           
protected  Class<RemoteTradeAccountService> getServiceIface()
           
 String[] getValidRoles()
           
 void removePolicyRule(PolicyRule rule)
           
 
Methods inherited from class uk.ac.soton.itinnovation.grid.client.proxy.LegacyProxyHelpers
compareTo, createMatchPattern, createMatchRule, getClientMatchPattern, getDescription, getEndpoint, getEndpointRef, getOwnerRule, getService, getServiceMatchPattern, getURL, setDescription, setLabel, toString
 
Methods inherited from class uk.ac.soton.itinnovation.grid.client.proxy.AbstractProxyHelpers
initProxyHelpers, proxyGetInvocationEngine, proxyGetRemoteMethod, proxyGetTarget, proxyHasMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TradeAccountHelpers

public TradeAccountHelpers()
Method Detail

getPolicyRules

public PolicyRule[] getPolicyRules()
                            throws RemoteException
Throws:
RemoteException

addPolicyRule

public void addPolicyRule(PolicyRule rule)
                   throws RemoteException
Throws:
RemoteException

removePolicyRule

public void removePolicyRule(PolicyRule rule)
                      throws RemoteException
Throws:
RemoteException

getValidRoles

public String[] getValidRoles()
                       throws RemoteException
Throws:
RemoteException

ensureIsUser

public void ensureIsUser(SubjectDescription subject)
                  throws RemoteException,
                         GridFailureException,
                         TokenInvalidException
Determine if a user can use an account. Calls the Account Service's WS-Trust interface (5.1 upwards) or falls back to checkUser.

Throws:
RemoteException
GridFailureException
TokenInvalidException

getServiceIface

protected Class<RemoteTradeAccountService> getServiceIface()
Overrides:
getServiceIface in class LegacyProxyHelpers<TradeAccountResource>


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