de.fzj.unicore.wsrflite.xmlbeans.sg.impl
Class ServiceGroupRegistrationImpl
java.lang.Object
de.fzj.unicore.wsrflite.impl.WSRFInstanceImpl
de.fzj.unicore.wsrflite.xmlbeans.impl.WSResourceImpl
de.fzj.unicore.wsrflite.xmlbeans.sg.impl.ServiceGroupImpl
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
| 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 |
|
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.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.WSRFInstance |
clearChangeFlag, clearSecurityContext, destroy, getSecurityContext, getServiceName, getTerminationTime, getUniqueID, hasChanged, isDestroyed, isExpired, passivate, postActivate, processMessages, setHome, setSecurityContext, setServiceName, setUniqueID |
serialVersionUID
protected static final long serialVersionUID
- See Also:
- Constant Field Values
logger
protected static final org.apache.log4j.Logger logger
ServiceGroupRegistrationImpl
public ServiceGroupRegistrationImpl()
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 documentepr - - the EPR of the service group entry instancett - - the new termination timecontent - - the new contentmemberEPR - - the new member service EPR
- Throws:
Exception
getDefaultTerminationTime
public Calendar getDefaultTerminationTime()
Copyright © 2010. All Rights Reserved.