org.apache.muse.ws.dm.muws.impl
Class SimpleParticipant

java.lang.Object
  extended by org.apache.muse.ws.dm.muws.impl.SimpleParticipant
All Implemented Interfaces:
XmlSerializable, Participant

public class SimpleParticipant
extends Object
implements Participant

SimpleParticipant represents resources that are participating in a relationship through the Relationships capability. It has the information needed to locate the participants in a relationship and determine their roles.

Author:
Dan Jemiolo (danj)

Field Summary
 String _role
           
 
Constructor Summary
SimpleParticipant(Element xml)
           
SimpleParticipant(org.apache.muse.ws.addressing.EndpointReference resourceEPR, String resourceID, String role)
           
SimpleParticipant(WsResourceClient remote, String role)
           
SimpleParticipant(WsResource resource, String role)
           
 
Method Summary
 org.apache.muse.ws.addressing.EndpointReference getManageabilityReference()
           
 String getResourceId()
           
 String getRole()
           
 Element toXML()
           
 Element toXML(Document doc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_role

public String _role
Constructor Detail

SimpleParticipant

public SimpleParticipant(Element xml)
                  throws BaseFault
Parameters:
xml - The DOM Element representing the relationship participant.
Throws:
BaseFault -
  • If the participant XML is not formatted properly.

SimpleParticipant

public SimpleParticipant(org.apache.muse.ws.addressing.EndpointReference resourceEPR,
                         String resourceID,
                         String role)
Parameters:
resourceEPR - The participant's EPR.
resourceID - The participant's MUWS ResourceId.
role - The URI that identifies the participant's role in the relationship.

SimpleParticipant

public SimpleParticipant(WsResource resource,
                         String role)
                  throws BaseFault
Parameters:
resource - The participant resource. This will be used to gather its EPR and MUWS ResourceId.
role - The URI that identifies the participant's role in the relationship.
Throws:
BaseFault -
  • If the participant resource is unavailable.

SimpleParticipant

public SimpleParticipant(WsResourceClient remote,
                         String role)
                  throws BaseFault
Parameters:
remote - A proxy that points to the participant resource. This will be used to gather its EPR and MUWS ResourceId.
role - The URI that identifies the participant's role in the relationship.
Throws:
BaseFault -
  • If the participant resource is unavailable.
Method Detail

getManageabilityReference

public org.apache.muse.ws.addressing.EndpointReference getManageabilityReference()
Specified by:
getManageabilityReference in interface Participant
Returns:
The participant's EPR.

getResourceId

public String getResourceId()
Specified by:
getResourceId in interface Participant
Returns:
The participant's MUWS ResourceId.
See Also:
Identity.getResourceId()

getRole

public String getRole()
Specified by:
getRole in interface Participant
Returns:
The URI identifying the role of the participant in its relationship.

toXML

public Element toXML()
Specified by:
toXML in interface XmlSerializable

toXML

public Element toXML(Document doc)
Specified by:
toXML in interface XmlSerializable


Copyright © 2013 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.