uk.ac.soton.itinnovation.grid.client.proxy
Class LegacyProxyHelpers<T>

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.client.proxy.AbstractProxyHelpers<T>
      extended by uk.ac.soton.itinnovation.grid.client.proxy.LegacyProxyHelpers<T>
All Implemented Interfaces:
Comparable<StorableInStateRepository>, Conversation, StorableInStateRepository, ProxyHelpers, WebProxy
Direct Known Subclasses:
CltMgtRegistryResourceHelpers, CltMgtRegistryServiceHelpers, DataServiceHelpers, DataStagerHelpers, JobHelpers, JobServiceHelpers, MembershipGroupHelpers, MembershipServiceHelpers, OgsaDaiResourceConversationHelpers, OgsaDaiRoleConversationHelpers, OgsaDaiSubscriptionConversationHelpers, PrivateAccountHelpers, PrivateAccountServiceHelpers, RemoteOgsaDaiServiceHelpers, SampleServiceHelpers, SLAHelpers, SLAServiceHelpers, SLATemplateHelpers, TradeAccountHelpers, TradeAccountServiceHelpers

public abstract class LegacyProxyHelpers<T>
extends AbstractProxyHelpers<T>
implements Comparable<StorableInStateRepository>, Conversation

Useful base class for proxy helpers that implement part of the old GRIA 5.2 API.


Field Summary
 
Fields inherited from class uk.ac.soton.itinnovation.grid.client.proxy.AbstractProxyHelpers
helperProxyFactory, log, rawProxy, target, transport
 
Constructor Summary
LegacyProxyHelpers()
           
 
Method Summary
 int compareTo(StorableInStateRepository other)
           
 MatchPattern createMatchPattern()
          Deprecated. 
 MatchRule createMatchRule(String role)
           
protected  MatchPattern getClientMatchPattern()
          Return a pattern that matches this client user.
 String getDescription()
          Returns a textual description of the object.
 URL getEndpoint()
           
 org.apache.axis.message.addressing.EndpointReferenceType getEndpointRef()
          Return an EndpointReferenceType for this conversation.
protected  MatchRule getOwnerRule()
           
 RemoteService getService()
          Return the service that created the resource.
protected  Class<? extends RemoteService> getServiceIface()
           
 MatchPattern getServiceMatchPattern()
           
 URL getURL()
          Returns the globally unique identifier.
 void setDescription(String description)
          Change the textual description, as returned by getDescription.
 void setLabel(String description)
           
 String 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

LegacyProxyHelpers

public LegacyProxyHelpers()
Method Detail

getURL

public URL getURL()
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

getOwnerRule

protected MatchRule getOwnerRule()
                          throws RemoteException
Throws:
RemoteException

getClientMatchPattern

protected MatchPattern getClientMatchPattern()
                                      throws RemoteException
Return a pattern that matches this client user. This is useful for setting policies.

Throws:
RemoteException

getEndpointRef

public org.apache.axis.message.addressing.EndpointReferenceType getEndpointRef()
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

setLabel

public void setLabel(String description)
              throws RemoteException
Throws:
RemoteException

setDescription

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

Specified by:
setDescription in interface StorableInStateRepository

getDescription

public String getDescription()
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

getEndpoint

public URL getEndpoint()

getService

public RemoteService getService()
Description copied from interface: Conversation
Return the service that created the resource.

Specified by:
getService in interface Conversation

getServiceIface

protected Class<? extends RemoteService> getServiceIface()

compareTo

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

createMatchRule

public MatchRule createMatchRule(String role)
                          throws RemoteException
Throws:
RemoteException

getServiceMatchPattern

public MatchPattern getServiceMatchPattern()
                                    throws RemoteException
Throws:
RemoteException

createMatchPattern

@Deprecated
public MatchPattern createMatchPattern()
                                throws RemoteException
Deprecated. 

Throws:
RemoteException

toString

public String toString()
Overrides:
toString in class AbstractProxyHelpers<T>


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