org.apache.muse.ws.resource.sg
Interface Entry

All Superinterfaces:
Capability, Initialization, InitializationParameters, Shutdown, WsResourceCapability, XmlSerializable
All Known Implementing Classes:
SimpleEntry

public interface Entry
extends WsResourceCapability, XmlSerializable

Entry represents the WS-RF ServiceGroupEntry resource type. Such resources represent a relationship between a resource and the service group of which it is a member; the modification or destruction of these resources represents a change in the resource's membership in a service group. Changes in the service group members do not necessarily affect membership.

Muse represents all WS-SG entries at WS-RF implied resources. They are accessible through a unique endpoint and can be destroyed via WS-RL if the WS-RL capabilities are used. Adding this capability to a resource type gives it all of the required features of a WS-RF ServiceGroupEntry.

Author:
Dan Jemiolo (danj)

Field Summary
static QName[] PROPERTIES
           
 
Method Summary
 void deleteProperty(QName property)
           
 Element getContent()
           
 EndpointReference getMemberEPR()
           
 Element[] getProperty(QName property)
           
 QName[] getPropertyNames()
          Concrete capability classes that define properties MUST override this method and provide the names of the properties.
 EndpointReference getServiceGroupEPR()
           
 void insertProperty(QName property, Element[] values)
           
 void setMemberEPR(EndpointReference memberEPR)
           
 void setServiceGroup(WsResource serviceGroup)
           
 void updateProperty(QName property, Element[] values)
           
 
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, initialize
 
Methods inherited from interface org.apache.muse.core.InitializationParameters
getInitializationParameter, getInitializationParameters, setInitializationParameters
 
Methods inherited from interface org.apache.muse.core.Shutdown
hasBeenShutdown, shutdown
 
Methods inherited from interface org.apache.muse.util.xml.XmlSerializable
toXML, toXML
 

Field Detail

PROPERTIES

static final QName[] PROPERTIES
Method Detail

getContent

Element getContent()
                   throws BaseFault
Returns:
The values of resource the properties (Element[]) that are found in the service group's MembershipContentRules and which are defined by the member service. The list may be empty if there were no membership rules. The values returned are not guaranteed to be current - they may include a snapshot of the values from when the entry was created. If you are unsure of the mutability of these values, you should ask the member resource directly.
Throws:
BaseFault

getMemberEPR

EndpointReference getMemberEPR()
                               throws BaseFault
Returns:
The EPR for the service group member this entry represents.
Throws:
BaseFault

getServiceGroupEPR

EndpointReference getServiceGroupEPR()
                                     throws BaseFault
Returns:
The EPR for the service group to which this entry belongs.
Throws:
BaseFault

setMemberEPR

void setMemberEPR(EndpointReference memberEPR)
                  throws BaseFault
Parameters:
member - A proxy for the service group member this entry represents.
Throws:
BaseFault

setServiceGroup

void setServiceGroup(WsResource serviceGroup)
                     throws BaseFault
Parameters:
owner - A reference for the service group to which this entry belongs.
Throws:
BaseFault

deleteProperty

void deleteProperty(QName property)
                    throws BaseFault
Throws:
BaseFault

getProperty

Element[] getProperty(QName property)
                      throws BaseFault
Throws:
BaseFault

getPropertyNames

QName[] getPropertyNames()
Concrete capability classes that define properties MUST override this method and provide the names of the properties.

Returns:
The names of the resource properties defined by this capability.

insertProperty

void insertProperty(QName property,
                    Element[] values)
                    throws BaseFault
Throws:
BaseFault

updateProperty

void updateProperty(QName property,
                    Element[] values)
                    throws BaseFault
Throws:
BaseFault


Copyright © 2005-2011 Apache Web Services - Muse. All Rights Reserved.