org.mule.transport.jcr
Class JcrMessage

java.lang.Object
  extended by org.mule.transport.jcr.JcrMessage
All Implemented Interfaces:
Serializable, javax.jcr.observation.Event

public final class JcrMessage
extends Object
implements javax.jcr.observation.Event, Serializable

Provides an immutable JCR message, which is an augmented and serializable javax.jcr.observation.Event.

Author:
David Dossot (david@dossot.net)
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface javax.jcr.observation.Event
NODE_ADDED, NODE_REMOVED, PROPERTY_ADDED, PROPERTY_CHANGED, PROPERTY_REMOVED
 
Constructor Summary
JcrMessage(String path, int type, String typeAsString, String userID, Serializable content)
          Deprecated. Prefer using the complete constructor.
JcrMessage(String path, int type, String typeAsString, String userID, Serializable content, String uuid)
           
 
Method Summary
 boolean equals(Object obj)
           
 Serializable getContent()
           
 String getPath()
           
 int getType()
           
 String getTypeAsString()
           
 String getUserID()
           
 String getUuid()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JcrMessage

@Deprecated
public JcrMessage(String path,
                             int type,
                             String typeAsString,
                             String userID,
                             Serializable content)
Deprecated. Prefer using the complete constructor.


JcrMessage

public JcrMessage(String path,
                  int type,
                  String typeAsString,
                  String userID,
                  Serializable content,
                  String uuid)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getContent

public Serializable getContent()
Returns:
the content

getPath

public String getPath()
Specified by:
getPath in interface javax.jcr.observation.Event
Returns:
the path

getType

public int getType()
Specified by:
getType in interface javax.jcr.observation.Event
Returns:
the type

getTypeAsString

public String getTypeAsString()
Returns:
the typeAsString

getUserID

public String getUserID()
Specified by:
getUserID in interface javax.jcr.observation.Event
Returns:
the userID

getUuid

public String getUuid()
Returns:
the uuid


Copyright © 2011. All Rights Reserved.