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

java.lang.Object
  extended by uk.ac.soton.ecs.iam.grid.client.staterepos.AccountConversationImpl
      extended by uk.ac.soton.ecs.iam.grid.client.staterepos.PrivateAccountConversationImpl
All Implemented Interfaces:
Comparable<StorableInStateRepository>, AccountConversation, Conversation, PrivateAccountConversation, StorableInStateRepository, AccountResource, PrivateAccountResource, SimpleRegistry, FederationSelector, PolicyManagement, ResourceMetadata, Signallable

Deprecated.

@Deprecated
public class PrivateAccountConversationImpl
extends AccountConversationImpl
implements PrivateAccountConversation

The default implementation of AccountConversation.


Field Summary
 
Fields inherited from interface uk.ac.soton.itinnovation.grid.comms.account.PrivateAccountResource
PRIVATE_ACCOUNT_RESOURCE_TYPE
 
Fields inherited from interface uk.ac.soton.itinnovation.grid.types.FederationSelector
DEFAULT_FEDERATION_SELECTOR
 
Constructor Summary
PrivateAccountConversationImpl(StateRepository repository, org.apache.axis.message.addressing.EndpointReferenceType EPR)
          Deprecated.  
 
Method Summary
 void addAccessControlRule(MatchRule rule)
          Deprecated.  
 void addPeerAccount(Conversation peer)
          Deprecated. Convenience wrapper that adds the service's certificate to the EPR.
 void addPeerAccount(org.apache.axis.message.addressing.EndpointReferenceType peer)
          Deprecated. Add 'peer' to the list of peers of this account.
 void addPolicyRule(PolicyRule rule)
          Deprecated. Add an access control rule to this resource's dynamic access control policy.
 int compareTo(StorableInStateRepository other)
          Deprecated.  
 void finish()
          Deprecated. Indicate that this conversation is no longer required.
 MatchRule[] getAccessControlRules()
          Deprecated.  
 String[] getAvailableSignals()
          Deprecated. List the signals which are available given the resource's current state.
 org.apache.axis.message.addressing.EndpointReferenceType getBillingEPR(org.apache.axis.message.addressing.EndpointReferenceType[] targetTrustedResources, org.apache.axis.message.addressing.EndpointReferenceType targetService)
          Deprecated. Gets an EPR for a resource to which usage of another service can be billed.
 StorableInStateRepository[] getChildConversations()
          Deprecated. Returns an array of all conversations having this one as a parent.
 String getDescription()
          Deprecated. Returns a textual description of the object.
 org.apache.axis.message.addressing.EndpointReferenceType getEndpointRef()
          Deprecated. Return an EndpointReferenceType for this conversation.
 org.apache.axis.message.addressing.EndpointReferenceType getEPR()
          Deprecated. Get the EPR for this resource.
 Class getInterface()
          Deprecated. Returns the type of this object.
 URL getParentURL()
          Deprecated. Returns the URL of this object's parent.
 org.apache.axis.message.addressing.EndpointReferenceType[] getPeerAccounts()
          Deprecated. List the current peer accounts.
 PolicyRule[] getPolicyRules()
          Deprecated. Get the access control rules in this resource's dynamic access control policy.
 org.apache.axis.message.addressing.EndpointReferenceType[] getRegisteredResources(String resourceType)
          Deprecated. List the currently registered resources.
 StateRepository getRepository()
          Deprecated. Get the StateRepository holding this object.
 RemoteService getService()
          Deprecated. Return the conversation's RemoteService.
 URL getURL()
          Deprecated. Returns the globally unique identifier.
 String[] getValidRoles()
          Deprecated. List the roles the caller is permitted to see.
 boolean isFinished()
          Deprecated. Returns true if the finish method has been called.
 void outOfDate()
          Deprecated. Used by the StateRepository if the server returns new resource with our ID.
 void registerResource(org.apache.axis.message.addressing.EndpointReferenceType resource)
          Deprecated. Add 'resource' to the list of resources registered to this account.
 void removeAccessControlRule(MatchRule rule)
          Deprecated.  
 void removePeerAccount(Conversation peer)
          Deprecated. Convenience wrapper that adds the service's certificate to the EPR.
 void removePeerAccount(org.apache.axis.message.addressing.EndpointReferenceType peer)
          Deprecated. Remove a peer previously added with addPeerAccount.
 void removePolicyRule(PolicyRule rule)
          Deprecated. Remove an access control rule from this resource's dynamic access control policy.
 void setDescription(String description)
          Deprecated. Change the textual description, as returned by getDescription.
 void setLabel(String label)
          Deprecated. Change the resource's label.
 String signal(String signalName)
          Deprecated. Signal an event to the resource's PBAC process.
 void unregisterResource(org.apache.axis.message.addressing.EndpointReferenceType resource)
          Deprecated. Remove a resource previously added with SimpleRegistry.registerResource(org.apache.axis.message.addressing.EndpointReferenceType).
 
Methods inherited from class uk.ac.soton.ecs.iam.grid.client.staterepos.AccountConversationImpl
addBudgetHolderRule, addUserRule, checkUser, closeAccount, getAccountStatement, getAccountStatus, getBudgetHolderRules, getUserRules, removeBudgetHolderRule, removeUserRule
 
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.itinnovation.grid.comms.account.AccountResource
addBudgetHolderRule, addUserRule, checkUser, closeAccount, getAccountStatement, getAccountStatus, getBudgetHolderRules, getUserRules, removeBudgetHolderRule, removeUserRule
 
Methods inherited from interface uk.ac.soton.itinnovation.grid.comms.account.AccountResource
addBudgetHolderRule, addUserRule, checkUser, closeAccount, getAccountStatement, getAccountStatus, getBudgetHolderRules, getUserRules, removeBudgetHolderRule, removeUserRule
 

Constructor Detail

PrivateAccountConversationImpl

public PrivateAccountConversationImpl(StateRepository repository,
                                      org.apache.axis.message.addressing.EndpointReferenceType EPR)
                               throws ObjectAlreadyExists
Deprecated. 
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
Overrides:
getInterface in class AccountConversationImpl

outOfDate

public void outOfDate()
Deprecated. 
Description copied from interface: Conversation
Used by the StateRepository if the server returns new resource with our ID.

Specified by:
outOfDate in interface Conversation

getChildConversations

public StorableInStateRepository[] getChildConversations()
Deprecated. 
Description copied from interface: Conversation
Returns an array of all conversations having this one as a parent.

Specified by:
getChildConversations in interface Conversation

finish

public void finish()
Deprecated. 
Description copied from interface: Conversation
Indicate that this conversation is no longer required. It will be removed from the StateRepository. No other methods on a Conversation can be called once finish() has been invoked.

Note that this does not close the conversation with the remote supplier. You should normally call a different method, such as WSResourceLifetime.destroy().

Specified by:
finish in interface Conversation

isFinished

public boolean isFinished()
Deprecated. 
Description copied from interface: Conversation
Returns true if the finish method has been called.

Specified by:
isFinished in interface Conversation

getURL

public URL getURL()
Deprecated. 
Description copied from interface: StorableInStateRepository
Returns the globally unique identifier. No two distinct objects may have the same URL, even if they have different types.

Specified by:
getURL in interface StorableInStateRepository

getEndpointRef

public org.apache.axis.message.addressing.EndpointReferenceType getEndpointRef()
Deprecated. 
Description copied from interface: StorableInStateRepository
Return an EndpointReferenceType for this conversation. This contains both the endpoint address of the service, and the resource itself.

Specified by:
getEndpointRef in interface StorableInStateRepository

getParentURL

public URL getParentURL()
Deprecated. 
Description copied from interface: StorableInStateRepository
Returns the URL of this object's parent. Returns null if this is a top-level (service) object.

Specified by:
getParentURL in interface StorableInStateRepository

getDescription

public String getDescription()
Deprecated. 
Description copied from interface: StorableInStateRepository
Returns a textual description of the object. This can be presented to the user when choosing from a list, for example.

Specified by:
getDescription in interface StorableInStateRepository

setDescription

public void setDescription(String description)
Deprecated. 
Description copied from interface: StorableInStateRepository
Change the textual description, as returned by getDescription.

Specified by:
setDescription in interface StorableInStateRepository

getRepository

public StateRepository getRepository()
Deprecated. 
Description copied from interface: StorableInStateRepository
Get the StateRepository holding this object.

Specified by:
getRepository in interface StorableInStateRepository

getEPR

public org.apache.axis.message.addressing.EndpointReferenceType getEPR()
Deprecated. 
Description copied from interface: ResourceMetadata
Get the EPR for this resource. The EPR gives the canonical endpoint for the service, and various meta-data items.

Specified by:
getEPR in interface ResourceMetadata
See Also:
the label set with {@link setLabel}, a unique type URI, the state of the resource, the resource which manages this one (e.g. an SLA manages a job), the resource which contains this one (e.g. a job service is the parent of a job)

getService

public RemoteService getService()
Deprecated. 
Description copied from interface: Conversation
Return the conversation's RemoteService.

Specified by:
getService in interface Conversation

compareTo

public int compareTo(StorableInStateRepository other)
Deprecated. 
Specified by:
compareTo in interface Comparable<StorableInStateRepository>

addPolicyRule

public void addPolicyRule(PolicyRule rule)
                   throws RemoteException
Deprecated. 
Description copied from interface: PolicyManagement
Add an access control rule to this resource's dynamic access control policy.

Specified by:
addPolicyRule in interface PolicyManagement
Throws:
RemoteException
See Also:
PDP.addAccessControlRule(java.lang.String, uk.ac.soton.itinnovation.grid.types.MatchRule)

removePolicyRule

public void removePolicyRule(PolicyRule rule)
                      throws RemoteException
Deprecated. 
Description copied from interface: PolicyManagement
Remove an access control rule from this resource's dynamic access control policy.

Specified by:
removePolicyRule in interface PolicyManagement
Throws:
RemoteException
See Also:
PDP.removeAccessControlRule(java.lang.String, uk.ac.soton.itinnovation.grid.types.MatchRule)

getPolicyRules

public PolicyRule[] getPolicyRules()
                            throws RemoteException
Deprecated. 
Description copied from interface: PolicyManagement
Get the access control rules in this resource's dynamic access control policy. Rules are only returned for the roles the caller is permitted to see. Note: The rules are filtered to only include those for roles listed by PolicyManagement.getValidRoles().

Specified by:
getPolicyRules in interface PolicyManagement
Throws:
RemoteException
See Also:
PDP.getAccessControlRules(java.lang.String, java.lang.String)

setLabel

public void setLabel(String label)
              throws RemoteException
Deprecated. 
Description copied from interface: ResourceMetadata
Change the resource's label. Each resource is given a label by the client when it is created. This label is returned in the metadata from getResources, making it easier for other users to identify the resource.

Specified by:
setLabel in interface ResourceMetadata
Parameters:
label - the new label
Throws:
RemoteException

addAccessControlRule

public void addAccessControlRule(MatchRule rule)
                          throws RemoteException
Deprecated. 
Throws:
RemoteException

removeAccessControlRule

public void removeAccessControlRule(MatchRule rule)
                             throws RemoteException
Deprecated. 
Throws:
RemoteException

getAccessControlRules

public MatchRule[] getAccessControlRules()
                                  throws RemoteException
Deprecated. 
Throws:
RemoteException

getValidRoles

public String[] getValidRoles()
                       throws RemoteException
Deprecated. 
Description copied from interface: PolicyManagement
List the roles the caller is permitted to see. This is the list of roles whose rules are returned by PolicyManagement.getPolicyRules().

Specified by:
getValidRoles in interface PolicyManagement
Throws:
RemoteException
See Also:
PDP.getValidProcessRoles(java.lang.String)

addPeerAccount

public void addPeerAccount(org.apache.axis.message.addressing.EndpointReferenceType peer)
                    throws RemoteException
Deprecated. 
Description copied from interface: PrivateAccountResource
Add 'peer' to the list of peers of this account. After calling this, anyone with the user role on this account will be able to get a billing token valid at the peer. This account service must have the budget-holder role on the peer.

Specified by:
addPeerAccount in interface PrivateAccountResource
Parameters:
peer - a trade account
Throws:
RemoteException

removePeerAccount

public void removePeerAccount(org.apache.axis.message.addressing.EndpointReferenceType peer)
                       throws RemoteException
Deprecated. 
Description copied from interface: PrivateAccountResource
Remove a peer previously added with addPeerAccount.

Specified by:
removePeerAccount in interface PrivateAccountResource
Throws:
RemoteException

getPeerAccounts

public org.apache.axis.message.addressing.EndpointReferenceType[] getPeerAccounts()
                                                                           throws RemoteException
Deprecated. 
Description copied from interface: PrivateAccountResource
List the current peer accounts.

Specified by:
getPeerAccounts in interface PrivateAccountResource
Throws:
RemoteException

registerResource

public void registerResource(org.apache.axis.message.addressing.EndpointReferenceType resource)
                      throws RemoteException
Deprecated. 
Description copied from interface: SimpleRegistry
Add 'resource' to the list of resources registered to this account.

Specified by:
registerResource in interface SimpleRegistry
Parameters:
resource - the resource to be added
Throws:
RemoteException

unregisterResource

public void unregisterResource(org.apache.axis.message.addressing.EndpointReferenceType resource)
                        throws RemoteException
Deprecated. 
Description copied from interface: SimpleRegistry
Remove a resource previously added with SimpleRegistry.registerResource(org.apache.axis.message.addressing.EndpointReferenceType).

Specified by:
unregisterResource in interface SimpleRegistry
Throws:
RemoteException

getRegisteredResources

public org.apache.axis.message.addressing.EndpointReferenceType[] getRegisteredResources(String resourceType)
                                                                                  throws RemoteException
Deprecated. 
Description copied from interface: SimpleRegistry
List the currently registered resources.

Specified by:
getRegisteredResources in interface SimpleRegistry
Parameters:
resourceType - the type of resources to return, or null to return all types. Returns resources added by SimpleRegistry.registerResource(org.apache.axis.message.addressing.EndpointReferenceType).
Throws:
RemoteException

getBillingEPR

public org.apache.axis.message.addressing.EndpointReferenceType getBillingEPR(org.apache.axis.message.addressing.EndpointReferenceType[] targetTrustedResources,
                                                                              org.apache.axis.message.addressing.EndpointReferenceType targetService)
                                                                       throws RemoteException
Deprecated. 
Description copied from interface: FederationSelector
Gets an EPR for a resource to which usage of another service can be billed.

Specified by:
getBillingEPR in interface FederationSelector
Parameters:
targetTrustedResources - - the trusted resources of the service
targetService - - the target service (which will pass the tokens on to its account service)
Returns:
an EPR for the chosen resource, including any security tokens needed to access it, or null if no EPR is required
Throws:
RemoteException - if there is a problem getting a billing token

signal

public String signal(String signalName)
              throws RemoteException
Deprecated. 
Description copied from interface: Signallable
Signal an event to the resource's PBAC process. The process state may be updated in response to this, according to the service policy.

Specified by:
signal in interface Signallable
Parameters:
signalName - the event causing the transition
Returns:
the new state of the resource
Throws:
RemoteException

getAvailableSignals

public String[] getAvailableSignals()
                             throws RemoteException
Deprecated. 
Description copied from interface: Signallable
List the signals which are available given the resource's current state.

Specified by:
getAvailableSignals in interface Signallable
Returns:
the list of possible signals
Throws:
RemoteException
See Also:
Signallable.signal(java.lang.String)

addPeerAccount

public void addPeerAccount(Conversation peer)
                    throws RemoteException
Deprecated. 
Description copied from interface: PrivateAccountConversation
Convenience wrapper that adds the service's certificate to the EPR.

Specified by:
addPeerAccount in interface PrivateAccountConversation
Throws:
RemoteException

removePeerAccount

public void removePeerAccount(Conversation peer)
                       throws RemoteException
Deprecated. 
Description copied from interface: PrivateAccountConversation
Convenience wrapper that adds the service's certificate to the EPR.

Specified by:
removePeerAccount in interface PrivateAccountConversation
Throws:
RemoteException


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