uk.ac.soton.itinnovation.grid.service.registry.util.content
Class ConversationExtractionStrategyHelper

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.service.registry.util.content.ConversationExtractionStrategyHelper
All Implemented Interfaces:
ContentExtractionStrategy
Direct Known Subclasses:
DefaultConversationExtractionStrategy, JobConversationExtractionStrategy, SlaConversationExtractionStrategy

public abstract class ConversationExtractionStrategyHelper
extends Object
implements ContentExtractionStrategy


Field Summary
protected static org.apache.log4j.Logger logger
           
protected  ProxyFactory proxyFactory
           
 
Constructor Summary
ConversationExtractionStrategyHelper()
           
 
Method Summary
 String extractAndRegister(Registration registration, RegistryDataResourceRoleBean user, org.apache.axis.message.addressing.EndpointReferenceType resource)
          Extracts and registers a specific resource.
 String extractAndUpdate(Registration registration, RegistryDataResourceRoleBean user, org.apache.axis.message.addressing.EndpointReferenceType resource)
          Extracts and updates a specific resource.
protected abstract  void hookSpecialisedConversationExtraction(Registration registration, RegistryDataResourceRoleBean user, org.apache.axis.message.addressing.EndpointReferenceType resource, StorableInStateRepository object, String conversationEPRKey)
          Implement this method for special behaviour during content extraction of specialized conversations, e.g.
protected abstract  void hookSpecialisedUpdateConversationExtraction(Registration registration, RegistryDataResourceRoleBean user, org.apache.axis.message.addressing.EndpointReferenceType resource, StorableInStateRepository object, String conversationEPRKey)
          Implement this method for special behaviour during content extraction of specialized conversations, e.g.
protected  String registerServiceOnDemand(Registration registration, RegistryDataResourceRoleBean user, Conversation conv)
          This method checks if the parent service of the conversation is already registered.
 void setProxyFactory(ProxyFactory proxyFactory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.apache.log4j.Logger logger

proxyFactory

protected ProxyFactory proxyFactory
Constructor Detail

ConversationExtractionStrategyHelper

public ConversationExtractionStrategyHelper()
Method Detail

setProxyFactory

public void setProxyFactory(ProxyFactory proxyFactory)
Specified by:
setProxyFactory in interface ContentExtractionStrategy

registerServiceOnDemand

protected final String registerServiceOnDemand(Registration registration,
                                               RegistryDataResourceRoleBean user,
                                               Conversation conv)
                                        throws ContentExtractionException
This method checks if the parent service of the conversation is already registered. If not then it will be registered automatically.

Parameters:
registration -
user -
keyGenEPR -
jobConv -
Returns:
key of the registered service
Throws:
ContentExtractionException

extractAndUpdate

public String extractAndUpdate(Registration registration,
                               RegistryDataResourceRoleBean user,
                               org.apache.axis.message.addressing.EndpointReferenceType resource)
                        throws ContentExtractionException
Description copied from interface: ContentExtractionStrategy
Extracts and updates a specific resource.

Specified by:
extractAndUpdate in interface ContentExtractionStrategy
Returns:
the key used for registration
Throws:
ContentExtractionException

hookSpecialisedUpdateConversationExtraction

protected abstract void hookSpecialisedUpdateConversationExtraction(Registration registration,
                                                                    RegistryDataResourceRoleBean user,
                                                                    org.apache.axis.message.addressing.EndpointReferenceType resource,
                                                                    StorableInStateRepository object,
                                                                    String conversationEPRKey)
                                                             throws ContentExtractionException
Implement this method for special behaviour during content extraction of specialized conversations, e.g. SLAConversation.

Parameters:
registration -
user -
resource -
object -
conversationEPRKey -
Throws:
ContentExtractionException

extractAndRegister

public final String extractAndRegister(Registration registration,
                                       RegistryDataResourceRoleBean user,
                                       org.apache.axis.message.addressing.EndpointReferenceType resource)
                                throws ContentExtractionException
Description copied from interface: ContentExtractionStrategy
Extracts and registers a specific resource.

Specified by:
extractAndRegister in interface ContentExtractionStrategy
Returns:
the key used for registration
Throws:
ContentExtractionException

hookSpecialisedConversationExtraction

protected abstract void hookSpecialisedConversationExtraction(Registration registration,
                                                              RegistryDataResourceRoleBean user,
                                                              org.apache.axis.message.addressing.EndpointReferenceType resource,
                                                              StorableInStateRepository object,
                                                              String conversationEPRKey)
                                                       throws ContentExtractionException
Implement this method for special behaviour during content extraction of specialized conversations, e.g. SLAConversation.

Parameters:
registration -
user -
resource -
object -
conversationEPRKey -
Throws:
ContentExtractionException


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