org.sakaiproject.jgroups
Class EventImpl

java.lang.Object
  extended byorg.sakaiproject.jgroups.EventImpl
All Implemented Interfaces:
Event, Serializable

public class EventImpl
extends Object
implements Event, Serializable

Version:
$Id: EventImpl.java 1010 2005-08-05 16:15:32Z jlannan@iupui.edu $
Author:
Lance Speelmon
See Also:
Serialized Form

Constructor Summary
EventImpl(long seq, String event, String resource, boolean modify, int priority)
           
EventImpl(String event, String resource, boolean modify, int priority)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getEvent()
          Access the event id string
 boolean getModify()
          Is this event one that caused a modify to the resource, or just an access.
 int getPriority()
          Access the event's notification priority.
 String getResource()
          Access the resource reference.
 String getSessionId()
          Access the UsageSession id.
 String getUserId()
          Access the User id.
 int hashCode()
           
 void setSessionId(String sessionId)
           
 void setUserId(String userId)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EventImpl

public EventImpl(long seq,
                 String event,
                 String resource,
                 boolean modify,
                 int priority)

EventImpl

public EventImpl(String event,
                 String resource,
                 boolean modify,
                 int priority)
Method Detail

getEvent

public String getEvent()
Description copied from interface: Event
Access the event id string

Specified by:
getEvent in interface Event
Returns:
The event id string.

getResource

public String getResource()
Description copied from interface: Event
Access the resource reference.

Specified by:
getResource in interface Event
Returns:
The resource reference string.

getSessionId

public String getSessionId()
Description copied from interface: Event
Access the UsageSession id. If null, check for a User id.

Specified by:
getSessionId in interface Event
Returns:
The UsageSession id string.

getUserId

public String getUserId()
Description copied from interface: Event
Access the User id. If null, check for a session id.

Specified by:
getUserId in interface Event
Returns:
The User id string.

getModify

public boolean getModify()
Description copied from interface: Event
Is this event one that caused a modify to the resource, or just an access.

Specified by:
getModify in interface Event
Returns:
true if the event caused a modify to the resource, false if it was just an access.

getPriority

public int getPriority()
Description copied from interface: Event
Access the event's notification priority.

Specified by:
getPriority in interface Event
Returns:
The event's notification priority.

setSessionId

public void setSessionId(String sessionId)
Parameters:
sessionId - The sessionId to set.

setUserId

public void setUserId(String userId)
Parameters:
userId - The userId to set.

equals

public boolean equals(Object obj)
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
See Also:
Object.hashCode()

toString

public String toString()
See Also:
Object.toString()