org.directdemocracyportal.democracy.model.application
Class Event

Package class diagram package Event
java.lang.Object
  extended by org.directdemocracyportal.democracy.model.core.BaseEntity
      extended by org.directdemocracyportal.democracy.model.application.Event
All Implemented Interfaces:
java.io.Serializable

@Entity
public class Event
extends BaseEntity

The Class Event.

See Also:
Serialized Form

Constructor Summary
Constructor and Description
Event()
          Instantiates a new event.
Event(User user, Action action, java.util.Date time)
          Instantiates a new event.
 
Method Summary
Modifier and Type Method and Description
 Action getAction()
          Gets the action.
 java.lang.Long getId()
          Gets the id.
 java.util.Date getTime()
          Gets the time.
 User getUser()
          Gets the user.
 void setAction(Action action)
          Sets the action.
 void setId(java.lang.Long id)
          Sets the id.
 void setTime(java.util.Date time)
          Sets the time.
 void setUser(User user)
          Sets the user.
 
Methods inherited from class org.directdemocracyportal.democracy.model.core.BaseEntity
isNew
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Event

public Event()
Instantiates a new event.


Event

public Event(User user,
             Action action,
             java.util.Date time)
Instantiates a new event.

Parameters:
user - the user
action - the action
time - the time
Method Detail

getId

public java.lang.Long getId()
Description copied from class: BaseEntity
Gets the id.

Specified by:
getId in class BaseEntity
Returns:
the id

setId

public void setId(java.lang.Long id)
Sets the id.

Parameters:
id - the new id

getUser

public User getUser()
Gets the user.

Returns:
the user

setUser

public void setUser(User user)
Sets the user.

Parameters:
user - the new user

getAction

public Action getAction()
Gets the action.

Returns:
the action

setAction

public void setAction(Action action)
Sets the action.

Parameters:
action - the new action

getTime

public java.util.Date getTime()
Gets the time.

Returns:
the time

setTime

public void setTime(java.util.Date time)
Sets the time.

Parameters:
time - the new time


Copyright © 2004-2010 www.DirectDemocracyPortal.org. All Rights Reserved.