edu.internet2.middleware.grouper.ws.coresoap
Class WsMessage

java.lang.Object
  extended by edu.internet2.middleware.grouper.ws.coresoap.WsMessage
All Implemented Interfaces:
java.lang.Comparable<WsMessage>

public class WsMessage
extends java.lang.Object
implements java.lang.Comparable<WsMessage>

Result of one message being sent or received. The number of messages will equal the number of messages related to the result

Author:
vsachdeva

Constructor Summary
WsMessage()
          no arg constructor
WsMessage(GrouperMessage grouperMessage)
          construct based on grouperMessage
 
Method Summary
 int compareTo(WsMessage o2)
           
static WsMessage[] convertMessages(java.util.Set<GrouperMessage> messageSet)
          convert a set of messages to results
 java.lang.String getFromMemberId()
           
 java.lang.String getId()
           
 java.lang.String getMessageBody()
           
 void setFromMemberId(java.lang.String fromMemberId1)
           
 void setId(java.lang.String id1)
           
 void setMessageBody(java.lang.String messageBody1)
           
 java.lang.String toString()
          make sure this is an explicit toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WsMessage

public WsMessage()
no arg constructor


WsMessage

public WsMessage(GrouperMessage grouperMessage)
construct based on grouperMessage

Parameters:
grouperMessage -
Method Detail

getId

public java.lang.String getId()
Returns:
the message id

setId

public void setId(java.lang.String id1)
Parameters:
id1 -

getFromMemberId

public java.lang.String getFromMemberId()
Returns:
member id of sender

setFromMemberId

public void setFromMemberId(java.lang.String fromMemberId1)
Parameters:
fromMemberId1 - member id of sender

getMessageBody

public java.lang.String getMessageBody()
Returns:
body of the message

setMessageBody

public void setMessageBody(java.lang.String messageBody1)
Parameters:
body1 - body of the message

toString

public java.lang.String toString()
make sure this is an explicit toString

Overrides:
toString in class java.lang.Object

convertMessages

public static WsMessage[] convertMessages(java.util.Set<GrouperMessage> messageSet)
convert a set of messages to results

Parameters:
messageSet -
Returns:
the WsMessages (null if none or null)

compareTo

public int compareTo(WsMessage o2)
Specified by:
compareTo in interface java.lang.Comparable<WsMessage>
See Also:
Comparable.compareTo(java.lang.Object)