de.fzj.unicore.wsrflite.xmlbeans.sg.impl
Class ServiceGroupRegistrationImpl

java.lang.Object
  extended by de.fzj.unicore.wsrflite.impl.WSRFInstanceImpl
      extended by de.fzj.unicore.wsrflite.xmlbeans.impl.WSResourceImpl
          extended by de.fzj.unicore.wsrflite.xmlbeans.sg.impl.ServiceGroupImpl
              extended by de.fzj.unicore.wsrflite.xmlbeans.sg.impl.ServiceGroupRegistrationImpl
All Implemented Interfaces:
WSRFConstants, WSRFInstance, ResourceLifetime, ResourceProperties, ServiceGroupRegistration, WSResource

public class ServiceGroupRegistrationImpl
extends ServiceGroupImpl
implements ServiceGroupRegistration

this extends ServiceGroup to add an Add() method

Author:
schuller

Field Summary
protected static org.apache.log4j.Logger logger
           
protected static long serialVersionUID
           
 
Fields inherited from class de.fzj.unicore.wsrflite.xmlbeans.sg.impl.ServiceGroupImpl
RPEntry, RPMembershipContentRule
 
Fields inherited from class de.fzj.unicore.wsrflite.xmlbeans.impl.WSResourceImpl
DELETE, INSERT, properties, UPDATE
 
Fields inherited from class de.fzj.unicore.wsrflite.impl.WSRFInstanceImpl
home, INIT_INITIAL_TERMINATION_TIME, INIT_UNIQUE_ID, isDirty
 
Fields inherited from interface de.fzj.unicore.wsrflite.xmlbeans.ResourceProperties
WSRP_DELETE_RP, WSRP_GET_MULTIPLE_RP, WSRP_GET_RP, WSRP_GET_RP_DOCUMENT, WSRP_INSERT_RP, WSRP_PUT_RP_DOCUMENT, WSRP_QUERY_RP, WSRP_RP_QueryExpressionDialect, WSRP_SET_RP, WSRP_UPDATE_RP
 
Fields inherited from interface de.fzj.unicore.wsrflite.WSRFConstants
QUERY_EXPRESSION_DIALECT_XPATH, RPcurrentTimeQName, RPterminationTimeQName, WSRL_BASENS, WSRL_DESTROY, WSRL_DESTROY_PORT, WSRL_SCHEDULED, WSRL_SET_TERMTIME_PORT, WSRP_BASENS, WSRP_DELETE_RP_PORT, WSRP_GET_MULTIPLE_RP_PORT, WSRP_GET_RP_DOCUMENT_PORT, WSRP_GET_RP_PORT, WSRP_INSERT_RP_PORT, WSRP_PUT_RP_DOCUMENT_PORT, WSRP_QUERY_RP_PORT, WSRP_SET_RP_PORT, WSRP_UPDATE_RP_PORT
 
Constructor Summary
ServiceGroupRegistrationImpl()
           
 
Method Summary
 org.oasisOpen.docs.wsrf.sg2.AddResponseDocument Add(org.oasisOpen.docs.wsrf.sg2.AddDocument in)
          add a service to this service group.
protected  org.w3.x2005.x08.addressing.EndpointReferenceType createServiceGroupEntry(Map<String,Object> initObjs)
           
 boolean equalEPRs(org.w3.x2005.x08.addressing.EndpointReferenceType epr1, org.w3.x2005.x08.addressing.EndpointReferenceType epr2)
          compare EPRs.
 Calendar getDefaultTerminationTime()
           
 org.oasisOpen.docs.wsrf.sg2.EntryDocument getEntry(org.w3.x2005.x08.addressing.EndpointReferenceType epr)
           
 Calendar makeCalendar(Object initialTT)
          make a Calendar instance from the initial TT as supplied to Add()
the SG spec says this is either xsd:dateTime or xsd:duration
 void updateServiceGroupEntry(org.oasisOpen.docs.wsrf.sg2.EntryDocument entry, org.w3.x2005.x08.addressing.EndpointReferenceType epr, Calendar tt, org.oasisOpen.docs.wsrf.sg2.ContentType content, org.w3.x2005.x08.addressing.EndpointReferenceType memberEPR)
          update both the service group entry instance and the Entry document stored in the service group
 
Methods inherited from class de.fzj.unicore.wsrflite.xmlbeans.sg.impl.ServiceGroupImpl
addEntry, deleteEntry, getContentElements, getMemberInterfaces, getResourcePropertyDocumentQName, getResourcePropertyResponseDocument, initialise
 
Methods inherited from class de.fzj.unicore.wsrflite.xmlbeans.impl.WSResourceImpl
activate, DeleteResourceProperties, Destroy, fillResourcePropertyDocument, GetMultipleResourceProperties, GetResourceProperty, getResourceProperty, GetResourcePropertyDocument, getResourcePropertyObject, getResourcePropertyQNames, getResourcePropertyXML, InsertResourceProperties, isModifyable, PutResourcePropertyDocument, QueryResourceProperties, SetResourceProperties, SetTerminationTime, UpdateResourceProperties
 
Methods inherited from class de.fzj.unicore.wsrflite.impl.WSRFInstanceImpl
clearChangeFlag, clearSecurityContext, destroy, getDefaultLifetime, getSecurityContext, getServiceName, getTerminationTime, getUniqueID, hasChanged, isDestroyed, isExpired, passivate, postActivate, processMessages, setDirty, setHome, setSecurityContext, setServiceName, setTerminationTime, setUniqueID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.fzj.unicore.wsrflite.xmlbeans.ResourceProperties
DeleteResourceProperties, GetMultipleResourceProperties, GetResourceProperty, GetResourcePropertyDocument, InsertResourceProperties, PutResourcePropertyDocument, QueryResourceProperties, SetResourceProperties, UpdateResourceProperties
 
Methods inherited from interface de.fzj.unicore.wsrflite.WSRFInstance
clearChangeFlag, clearSecurityContext, destroy, getSecurityContext, getServiceName, getTerminationTime, getUniqueID, hasChanged, isDestroyed, isExpired, passivate, postActivate, processMessages, setHome, setSecurityContext, setServiceName, setUniqueID
 

Field Detail

serialVersionUID

protected static final long serialVersionUID
See Also:
Constant Field Values

logger

protected static final org.apache.log4j.Logger logger
Constructor Detail

ServiceGroupRegistrationImpl

public ServiceGroupRegistrationImpl()
Method Detail

Add

public org.oasisOpen.docs.wsrf.sg2.AddResponseDocument Add(org.oasisOpen.docs.wsrf.sg2.AddDocument in)
                                                    throws BaseFault
add a service to this service group. this will create a new ws resource to represent the entry.

Specified by:
Add in interface ServiceGroupRegistration
Throws:
BaseFault

createServiceGroupEntry

protected org.w3.x2005.x08.addressing.EndpointReferenceType createServiceGroupEntry(Map<String,Object> initObjs)
                                                                             throws Exception
Throws:
Exception

makeCalendar

public Calendar makeCalendar(Object initialTT)
make a Calendar instance from the initial TT as supplied to Add()
the SG spec says this is either xsd:dateTime or xsd:duration

Parameters:
initialTT -
Returns:
Calendar

getEntry

public org.oasisOpen.docs.wsrf.sg2.EntryDocument getEntry(org.w3.x2005.x08.addressing.EndpointReferenceType epr)

equalEPRs

public boolean equalEPRs(org.w3.x2005.x08.addressing.EndpointReferenceType epr1,
                         org.w3.x2005.x08.addressing.EndpointReferenceType epr2)
compare EPRs. Since this can be very tricky, we compare the address only.

Parameters:
epr1 -
epr2 -
Returns:
true, if the EPRs are sufficiently "equal"

updateServiceGroupEntry

public void updateServiceGroupEntry(org.oasisOpen.docs.wsrf.sg2.EntryDocument entry,
                                    org.w3.x2005.x08.addressing.EndpointReferenceType epr,
                                    Calendar tt,
                                    org.oasisOpen.docs.wsrf.sg2.ContentType content,
                                    org.w3.x2005.x08.addressing.EndpointReferenceType memberEPR)
                             throws Exception
update both the service group entry instance and the Entry document stored in the service group

Parameters:
entry - - the entry document
epr - - the EPR of the service group entry instance
tt - - the new termination time
content - - the new content
memberEPR - - the new member service EPR
Throws:
Exception

getDefaultTerminationTime

public Calendar getDefaultTerminationTime()


Copyright © 2010. All Rights Reserved.