|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.fzj.unicore.wsrflite.impl.WSRFInstanceImpl
de.fzj.unicore.wsrflite.xmlbeans.impl.WSResourceImpl
public abstract class WSResourceImpl
Implementation of the WSResource Interface. This offers basic rp functions.
| Field Summary | |
|---|---|
static int |
DELETE
|
static int |
INSERT
|
protected static org.apache.log4j.Logger |
logger
|
protected HashMap<QName,ResourceProperty> |
properties
|
protected static long |
serialVersionUID
|
static int |
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 | |
|---|---|
WSResourceImpl()
default constructor further initialisation is done through initialise() or activate() |
|
| Method Summary | |
|---|---|
void |
activate(Map<String,Serializable> state)
reactivate the instance |
org.oasisOpen.docs.wsrf.rp2.DeleteResourcePropertiesResponseDocument |
DeleteResourceProperties(org.oasisOpen.docs.wsrf.rp2.DeleteResourcePropertiesDocument in)
delete RP |
org.oasisOpen.docs.wsrf.rl2.DestroyResponseDocument |
Destroy(org.oasisOpen.docs.wsrf.rl2.DestroyDocument in)
|
org.apache.xmlbeans.XmlObject |
fillResourcePropertyDocument()
fills the given resource property document in a schema-compliant way |
org.oasisOpen.docs.wsrf.rp2.GetMultipleResourcePropertiesResponseDocument |
GetMultipleResourceProperties(org.oasisOpen.docs.wsrf.rp2.GetMultipleResourcePropertiesDocument in)
|
org.oasisOpen.docs.wsrf.rp2.GetResourcePropertyResponseDocument |
GetResourceProperty(org.oasisOpen.docs.wsrf.rp2.GetResourcePropertyDocument in)
|
ResourceProperty<?> |
getResourceProperty(QName qn)
retrieve the XML for a resource property by QName. |
org.oasisOpen.docs.wsrf.rp2.GetResourcePropertyDocumentResponseDocument |
GetResourcePropertyDocument(org.oasisOpen.docs.wsrf.rp2.GetResourcePropertyDocumentDocument1 in)
Retrieve all the resource properties. |
abstract QName |
getResourcePropertyDocumentQName()
returns the QName of the resource properties document |
Object |
getResourcePropertyObject(QName qn)
retrieve the "backing object" of a resource property by its QName. |
QName[] |
getResourcePropertyQNames()
get the QNames of all registered resource properties |
org.apache.xmlbeans.XmlObject |
getResourcePropertyResponseDocument()
returns the resource property document |
org.apache.xmlbeans.XmlObject[] |
getResourcePropertyXML(QName qn)
retrieve the XML for a resource property by QName. |
void |
initialise(String serviceName,
Map<String,Object> initobjs)
initialise this WS Resource In subclasses, a call to super.initialise() is highly recommended! |
org.oasisOpen.docs.wsrf.rp2.InsertResourcePropertiesResponseDocument |
InsertResourceProperties(org.oasisOpen.docs.wsrf.rp2.InsertResourcePropertiesDocument in)
insert RP |
protected boolean |
isModifyable(ResourceProperty<?> rp,
int operation)
check whether the given rp is modifyable using the given operation |
org.oasisOpen.docs.wsrf.rp2.PutResourcePropertyDocumentResponseDocument |
PutResourcePropertyDocument(org.oasisOpen.docs.wsrf.rp2.PutResourcePropertyDocumentDocument1 in)
|
org.oasisOpen.docs.wsrf.rp2.QueryResourcePropertiesResponseDocument |
QueryResourceProperties(org.oasisOpen.docs.wsrf.rp2.QueryResourcePropertiesDocument in)
query resource properties. |
org.oasisOpen.docs.wsrf.rp2.SetResourcePropertiesResponseDocument |
SetResourceProperties(org.oasisOpen.docs.wsrf.rp2.SetResourcePropertiesDocument in)
|
org.oasisOpen.docs.wsrf.rl2.SetTerminationTimeResponseDocument |
SetTerminationTime(org.oasisOpen.docs.wsrf.rl2.SetTerminationTimeDocument in)
|
org.oasisOpen.docs.wsrf.rp2.UpdateResourcePropertiesResponseDocument |
UpdateResourceProperties(org.oasisOpen.docs.wsrf.rp2.UpdateResourcePropertiesDocument in)
|
| 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 |
| Field Detail |
|---|
protected static final long serialVersionUID
protected static final org.apache.log4j.Logger logger
public static final int INSERT
public static final int DELETE
public static final int UPDATE
@Persist protected HashMap<QName,ResourceProperty> properties
| Constructor Detail |
|---|
public WSResourceImpl()
| Method Detail |
|---|
public org.apache.xmlbeans.XmlObject[] getResourcePropertyXML(QName qn)
qn - the QName of the resource property
public ResourceProperty<?> getResourceProperty(QName qn)
qn - the QName of the resource property
public Object getResourcePropertyObject(QName qn)
qn - the QName of the resource property
public QName[] getResourcePropertyQNames()
QNames of all registered resource properties
public org.oasisOpen.docs.wsrf.rl2.DestroyResponseDocument Destroy(org.oasisOpen.docs.wsrf.rl2.DestroyDocument in)
throws ResourceNotDestroyedFault,
ResourceUnknownFault,
ResourceUnavailableFault
Destroy in interface ResourceLifetimeResourceNotDestroyedFault
ResourceUnknownFault
ResourceUnavailableFault
public org.oasisOpen.docs.wsrf.rl2.SetTerminationTimeResponseDocument SetTerminationTime(org.oasisOpen.docs.wsrf.rl2.SetTerminationTimeDocument in)
throws UnableToSetTerminationTimeFault,
TerminationTimeChangeRejectedFault,
ResourceUnknownFault,
ResourceUnavailableFault
SetTerminationTime in interface ResourceLifetimeUnableToSetTerminationTimeFault
TerminationTimeChangeRejectedFault
ResourceUnknownFault
ResourceUnavailableFault
public org.oasisOpen.docs.wsrf.rp2.DeleteResourcePropertiesResponseDocument DeleteResourceProperties(org.oasisOpen.docs.wsrf.rp2.DeleteResourcePropertiesDocument in)
throws ResourceUnknownFault,
ResourceUnavailableFault,
BaseFault
DeleteResourceProperties in interface ResourcePropertiesResourceUnknownFault
ResourceUnavailableFault
BaseFault
public org.oasisOpen.docs.wsrf.rp2.PutResourcePropertyDocumentResponseDocument PutResourcePropertyDocument(org.oasisOpen.docs.wsrf.rp2.PutResourcePropertyDocumentDocument1 in)
throws ResourceUnknownFault,
ResourceUnavailableFault,
BaseFault
PutResourcePropertyDocument in interface ResourcePropertiesResourceUnknownFault
ResourceUnavailableFault
BaseFault
public org.oasisOpen.docs.wsrf.rp2.InsertResourcePropertiesResponseDocument InsertResourceProperties(org.oasisOpen.docs.wsrf.rp2.InsertResourcePropertiesDocument in)
throws ResourceUnknownFault,
ResourceUnavailableFault,
BaseFault
InsertResourceProperties in interface ResourcePropertiesResourceUnknownFault
ResourceUnavailableFault
BaseFault
public org.apache.xmlbeans.XmlObject getResourcePropertyResponseDocument()
throws Exception
Exceptionpublic abstract QName getResourcePropertyDocumentQName()
public org.apache.xmlbeans.XmlObject fillResourcePropertyDocument()
T - rp -
@ConcurrentAccess
public org.oasisOpen.docs.wsrf.rp2.GetResourcePropertyDocumentResponseDocument GetResourcePropertyDocument(org.oasisOpen.docs.wsrf.rp2.GetResourcePropertyDocumentDocument1 in)
throws BaseFault,
ResourceUnknownFault,
ResourceUnavailableFault
GetResourcePropertyDocument in interface ResourcePropertiesBaseFault
ResourceUnknownFault
ResourceUnavailableFault
public org.oasisOpen.docs.wsrf.rp2.UpdateResourcePropertiesResponseDocument UpdateResourceProperties(org.oasisOpen.docs.wsrf.rp2.UpdateResourcePropertiesDocument in)
throws BaseFault
UpdateResourceProperties in interface ResourcePropertiesBaseFault
@ConcurrentAccess
public org.oasisOpen.docs.wsrf.rp2.GetResourcePropertyResponseDocument GetResourceProperty(org.oasisOpen.docs.wsrf.rp2.GetResourcePropertyDocument in)
throws BaseFault,
ResourceUnknownFault,
ResourceUnavailableFault,
InvalidResourcePropertyQNameFault
GetResourceProperty in interface ResourcePropertiesBaseFault
ResourceUnknownFault
ResourceUnavailableFault
InvalidResourcePropertyQNameFault
@ConcurrentAccess
public org.oasisOpen.docs.wsrf.rp2.GetMultipleResourcePropertiesResponseDocument GetMultipleResourceProperties(org.oasisOpen.docs.wsrf.rp2.GetMultipleResourcePropertiesDocument in)
throws BaseFault
GetMultipleResourceProperties in interface ResourcePropertiesBaseFault
@ConcurrentAccess
public org.oasisOpen.docs.wsrf.rp2.QueryResourcePropertiesResponseDocument QueryResourceProperties(org.oasisOpen.docs.wsrf.rp2.QueryResourcePropertiesDocument in)
throws BaseFault
QueryResourceProperties in interface ResourcePropertiesBaseFault
public org.oasisOpen.docs.wsrf.rp2.SetResourcePropertiesResponseDocument SetResourceProperties(org.oasisOpen.docs.wsrf.rp2.SetResourcePropertiesDocument in)
throws BaseFault
SetResourceProperties in interface ResourcePropertiesBaseFault
public void initialise(String serviceName,
Map<String,Object> initobjs)
throws Exception
initialise in interface WSRFInstanceinitialise in class WSRFInstanceImplhome - - the Home of this wsresourceinitobjs - - a MapExceptionpublic void activate(Map<String,Serializable> state)
activate in interface WSRFInstanceactivate in class WSRFInstanceImplstate - a map containing the state of the WS-Resource
protected boolean isModifyable(ResourceProperty<?> rp,
int operation)
rp - operation -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||