org.ogf.graap.wsag.wsrf.sg.impl
Class ServiceGroup
java.lang.Object
org.apache.muse.core.AbstractCapability
org.apache.muse.ws.resource.impl.AbstractWsResourceCapability
org.apache.muse.ws.resource.sg.impl.SimpleServiceGroup
org.ogf.graap.wsag.wsrf.sg.impl.ServiceGroup
- All Implemented Interfaces:
- org.apache.muse.core.Capability, org.apache.muse.core.Initialization, org.apache.muse.core.InitializationParameters, org.apache.muse.core.ResourceManagerListener, org.apache.muse.core.Shutdown, org.apache.muse.ws.resource.sg.ServiceGroup, org.apache.muse.ws.resource.WsResourceCapability
- Direct Known Subclasses:
- AgreementServiceGroup
public class ServiceGroup
- extends org.apache.muse.ws.resource.sg.impl.SimpleServiceGroup
WSAG4JServiceGroup
- Author:
- Oliver Waeldrich
Fields inherited from interface org.apache.muse.ws.resource.sg.ServiceGroup |
PROPERTIES |
Method Summary |
org.apache.muse.ws.resource.WsResource |
addEntry(org.apache.muse.ws.addressing.EndpointReference memberEPR,
org.apache.muse.ws.resource.WsResource entry)
Adds a new entry to the service group. |
void |
deleteProperty(QName arg0)
|
org.apache.muse.ws.resource.WsResource[] |
getEntry()
Returns all entries in this service group. |
org.apache.muse.ws.resource.WsResource |
getEntry(org.apache.muse.ws.addressing.EndpointReference memberEPR)
Retrieves the service group entry identified by the given EPR. |
void |
initialize()
Initializes the service group. |
void |
insertProperty(QName arg0,
Element[] arg1)
|
void |
removeEntry(org.apache.muse.ws.resource.WsResource entry)
Removes a resource from the service group. |
void |
resourceAdded(org.apache.muse.ws.addressing.EndpointReference memberEPR,
org.apache.muse.core.Resource resource)
For local resources we set the port type of the resource in the MembershipContentRuleContext. |
void |
resourceRemoved(org.apache.muse.ws.addressing.EndpointReference epr)
|
void |
updateProperty(QName arg0,
Element[] arg1)
|
Methods inherited from class org.apache.muse.ws.resource.sg.impl.SimpleServiceGroup |
addEntry, createEntry, createMembershipContentRules, getContentElements, getEntryContextPath, getEntryElements, getMembershipContentRule, getProperty, getPropertyNames, initializeEntry, isMatch, setMembershipContentRule, shutdown |
Methods inherited from class org.apache.muse.ws.resource.impl.AbstractWsResourceCapability |
createGettersAndSetters, deleteProperty, getGetter, getPropertyElements, getSetter, getWsResource, insertProperty, invokeMethod, setResource, updateProperty |
Methods inherited from class org.apache.muse.core.AbstractCapability |
getActions, getCapabilityURI, getEnvironment, getInitializationParameter, getInitializationParameters, getLog, getMessageHandler, getPersistence, getResource, hasBeenInitialized, hasBeenShutdown, initializeCompleted, prepareShutdown, setCapabilityURI, setEnvironment, setInitializationParameters, setLog, setMessageHandler, setMessageHandlers, setPersistence |
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.ws.resource.WsResourceCapability |
getWsResource |
Methods inherited from interface org.apache.muse.core.Capability |
getActions, getCapabilityURI, getEnvironment, getLog, getMessageHandler, getPersistence, getResource, initializeCompleted, prepareShutdown, setCapabilityURI, setEnvironment, setLog, setMessageHandlers, setPersistence, setResource |
Methods inherited from interface org.apache.muse.core.Initialization |
hasBeenInitialized |
Methods inherited from interface org.apache.muse.core.InitializationParameters |
getInitializationParameter, getInitializationParameters, setInitializationParameters |
Methods inherited from interface org.apache.muse.core.Shutdown |
hasBeenShutdown |
ServiceGroup
public ServiceGroup()
resourceAdded
public void resourceAdded(org.apache.muse.ws.addressing.EndpointReference memberEPR,
org.apache.muse.core.Resource resource)
throws org.apache.muse.ws.addressing.soap.SoapFault
- For local resources we set the port type of the resource in the MembershipContentRuleContext. After
invocation we remove it from the context.
- Specified by:
resourceAdded
in interface org.apache.muse.core.ResourceManagerListener
- Overrides:
resourceAdded
in class org.apache.muse.ws.resource.sg.impl.SimpleServiceGroup
- Parameters:
memberEPR
- the endpoint reference of the resource to add to the service groupresource
- the resource to add to the service group
- Throws:
org.apache.muse.ws.addressing.soap.SoapFault
- indicates an error while adding the resource- See Also:
SimpleServiceGroup.resourceAdded(org.apache.muse.ws.addressing.EndpointReference
, org.apache.muse.core.Resource)
initialize
public void initialize()
throws org.apache.muse.ws.addressing.soap.SoapFault
- Initializes the service group.
- Specified by:
initialize
in interface org.apache.muse.core.Initialization
- Overrides:
initialize
in class org.apache.muse.ws.resource.sg.impl.SimpleServiceGroup
- Throws:
org.apache.muse.ws.addressing.soap.SoapFault
- indicates an initialization error- See Also:
SimpleServiceGroup.initialize()
resourceRemoved
public void resourceRemoved(org.apache.muse.ws.addressing.EndpointReference epr)
throws org.apache.muse.ws.addressing.soap.SoapFault
- Specified by:
resourceRemoved
in interface org.apache.muse.core.ResourceManagerListener
- Overrides:
resourceRemoved
in class org.apache.muse.ws.resource.sg.impl.SimpleServiceGroup
- Throws:
org.apache.muse.ws.addressing.soap.SoapFault
addEntry
public org.apache.muse.ws.resource.WsResource addEntry(org.apache.muse.ws.addressing.EndpointReference memberEPR,
org.apache.muse.ws.resource.WsResource entry)
- Adds a new entry to the service group.
- Specified by:
addEntry
in interface org.apache.muse.ws.resource.sg.ServiceGroup
- Overrides:
addEntry
in class org.apache.muse.ws.resource.sg.impl.SimpleServiceGroup
- Parameters:
memberEPR
- the endpoint reference of the resource to addentry
- the resource to add
- Returns:
- the new service group entry
getEntry
public org.apache.muse.ws.resource.WsResource[] getEntry()
- Returns all entries in this service group.
- Specified by:
getEntry
in interface org.apache.muse.ws.resource.sg.ServiceGroup
- Overrides:
getEntry
in class org.apache.muse.ws.resource.sg.impl.SimpleServiceGroup
- Returns:
- the service group entries
getEntry
public org.apache.muse.ws.resource.WsResource getEntry(org.apache.muse.ws.addressing.EndpointReference memberEPR)
- Retrieves the service group entry identified by the given EPR.
- Specified by:
getEntry
in interface org.apache.muse.ws.resource.sg.ServiceGroup
- Overrides:
getEntry
in class org.apache.muse.ws.resource.sg.impl.SimpleServiceGroup
- Parameters:
memberEPR
- the service group entry endpoint reference
- Returns:
- the service group entry
removeEntry
public void removeEntry(org.apache.muse.ws.resource.WsResource entry)
- Removes a resource from the service group.
- Specified by:
removeEntry
in interface org.apache.muse.ws.resource.sg.ServiceGroup
- Overrides:
removeEntry
in class org.apache.muse.ws.resource.sg.impl.SimpleServiceGroup
- Parameters:
entry
- the resource to remove
deleteProperty
public void deleteProperty(QName arg0)
throws org.apache.muse.ws.resource.basefaults.BaseFault
- Throws:
org.apache.muse.ws.resource.basefaults.BaseFault
insertProperty
public void insertProperty(QName arg0,
Element[] arg1)
throws org.apache.muse.ws.resource.basefaults.BaseFault
- Throws:
org.apache.muse.ws.resource.basefaults.BaseFault
updateProperty
public void updateProperty(QName arg0,
Element[] arg1)
throws org.apache.muse.ws.resource.basefaults.BaseFault
- Throws:
org.apache.muse.ws.resource.basefaults.BaseFault
Copyright © 2008-2012. All Rights Reserved.