org.apache.muse.ws.dm.muws.impl
Class SimpleRelationships
java.lang.Object
org.apache.muse.core.AbstractCapability
org.apache.muse.ws.resource.impl.AbstractWsResourceCapability
org.apache.muse.ws.dm.muws.impl.AbstractManageabilityCapability
org.apache.muse.ws.dm.muws.impl.SimpleRelationships
- All Implemented Interfaces:
- Capability, Initialization, InitializationParameters, Shutdown, ManageabilityCapability, Relationships, WsResourceCapability
public class SimpleRelationships
- extends AbstractManageabilityCapability
- implements Relationships
SimpleRelationships is Muse's default implementation of the MUWS (Part 2)
Relationships capability. It performs the following tasks:
- Ensures that the application has a resource type with the
RelationshipResource capability so that
there will be SOAP-level access to the relationships resources,
- Provides lifecycle management for the relationship resources, and
- Implements the muws2:Relationship property and QueryRelationshipsByType
operation.
- Author:
- Dan Jemiolo (danj)
Method Summary |
WsResource |
addRelationship(String name,
RelationshipType type,
Participant[] participants)
|
protected MessageHandler |
createQueryHandler()
|
protected WsResource |
createRelationship(Element xml)
This method reads the relationship fields from the XML and forwards them
to createRelationship(String, RelationshipType, Participant[]). |
protected WsResource |
createRelationship(String name,
RelationshipType type,
Participant[] participants)
Creates a new relationship resource with the given fields, initializes
it, and adds it to the ResourceManager before returning it. |
void |
deleteProperty(QName arg0)
|
Element[] |
getProperty(QName propertyName)
|
QName[] |
getPropertyNames()
|
WsResource[] |
getRelationship()
|
protected String |
getRelationshipContextPath()
|
protected Element[] |
getRelationshipElements()
This method converts the WsResource[] returned by getRelationship()
into an Element[] with muws2:Relationship XML that is compliant with
the MUWS Part 2 spec. |
void |
initialize()
|
void |
insertProperty(QName arg0,
Element[] arg1)
|
WsResource[] |
queryRelationshipsByType(QName[] types)
|
void |
removeRelationship(WsResource relationship)
|
void |
updateProperty(QName arg0,
Element[] arg1)
|
Methods inherited from class org.apache.muse.core.AbstractCapability |
getActions, getCapabilityURI, getEnvironment, getInitializationParameter, getInitializationParameters, getLog, getMessageHandler, getPersistence, getResource, hasBeenInitialized, hasBeenShutdown, prepareShutdown, setCapabilityURI, setEnvironment, setInitializationParameters, setLog, setMessageHandler, setMessageHandlers, setPersistence, shutdown |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.muse.core.Capability |
getActions, getCapabilityURI, getEnvironment, getLog, getMessageHandler, getPersistence, getResource, initializeCompleted, prepareShutdown, setCapabilityURI, setEnvironment, setLog, setMessageHandlers, setPersistence, setResource |
SimpleRelationships
public SimpleRelationships()
addRelationship
public WsResource addRelationship(String name,
RelationshipType type,
Participant[] participants)
throws BaseFault
- Specified by:
addRelationship
in interface Relationships
- Throws:
BaseFault
createQueryHandler
protected MessageHandler createQueryHandler()
createRelationship
protected WsResource createRelationship(Element xml)
throws BaseFault
- This method reads the relationship fields from the XML and forwards them
to createRelationship(String, RelationshipType, Participant[]).
- Throws:
BaseFault
createRelationship
protected WsResource createRelationship(String name,
RelationshipType type,
Participant[] participants)
throws BaseFault
- Creates a new relationship resource with the given fields, initializes
it, and adds it to the ResourceManager before returning it.
- Throws:
BaseFault
getProperty
public Element[] getProperty(QName propertyName)
throws BaseFault
- Overrides:
getProperty
in class AbstractWsResourceCapability
- Throws:
BaseFault
getPropertyNames
public QName[] getPropertyNames()
- Overrides:
getPropertyNames
in class AbstractWsResourceCapability
getRelationship
public WsResource[] getRelationship()
- Specified by:
getRelationship
in interface Relationships
getRelationshipContextPath
protected String getRelationshipContextPath()
getRelationshipElements
protected Element[] getRelationshipElements()
- This method converts the WsResource[] returned by getRelationship()
into an Element[] with muws2:Relationship XML that is compliant with
the MUWS Part 2 spec.
initialize
public void initialize()
throws org.apache.muse.ws.addressing.soap.SoapFault
- Specified by:
initialize
in interface Initialization
- Overrides:
initialize
in class AbstractWsResourceCapability
- Throws:
org.apache.muse.ws.addressing.soap.SoapFault
queryRelationshipsByType
public WsResource[] queryRelationshipsByType(QName[] types)
throws BaseFault
- Specified by:
queryRelationshipsByType
in interface Relationships
- Throws:
BaseFault
removeRelationship
public void removeRelationship(WsResource relationship)
- Specified by:
removeRelationship
in interface Relationships
deleteProperty
public void deleteProperty(QName arg0)
throws BaseFault
- Throws:
BaseFault
insertProperty
public void insertProperty(QName arg0,
Element[] arg1)
throws BaseFault
- Throws:
BaseFault
updateProperty
public void updateProperty(QName arg0,
Element[] arg1)
throws BaseFault
- Throws:
BaseFault
Copyright © 2013 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.