org.rapla.facade
Class AllocationChangeEvent

java.lang.Object
  extended by org.rapla.facade.AllocationChangeEvent

public class AllocationChangeEvent
extends Object


Nested Class Summary
static class AllocationChangeEvent.Type
           
 
Field Summary
static AllocationChangeEvent.Type ADD
           
static AllocationChangeEvent.Type CHANGE
           
static AllocationChangeEvent.Type REMOVE
           
 
Constructor Summary
AllocationChangeEvent(AllocationChangeEvent.Type type, User user, Reservation newReservation, Allocatable allocatable, Appointment appointment)
           
AllocationChangeEvent(User user, Reservation newReservation, Allocatable allocatable, Appointment newAppointment, Appointment oldApp)
           
 
Method Summary
 Allocatable getAllocatable()
           
 Appointment getNewAppointment()
           
 Reservation getNewReservation()
           
 Appointment getOldAppointment()
          only available if type is "change"
 AllocationChangeEvent.Type getType()
          either Type.CHANE,Type.REMOVE or Type.ADD
 User getUser()
          returns the user-object, of the user that made the change.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHANGE

public static AllocationChangeEvent.Type CHANGE

ADD

public static AllocationChangeEvent.Type ADD

REMOVE

public static AllocationChangeEvent.Type REMOVE
Constructor Detail

AllocationChangeEvent

public AllocationChangeEvent(AllocationChangeEvent.Type type,
                             User user,
                             Reservation newReservation,
                             Allocatable allocatable,
                             Appointment appointment)

AllocationChangeEvent

public AllocationChangeEvent(User user,
                             Reservation newReservation,
                             Allocatable allocatable,
                             Appointment newAppointment,
                             Appointment oldApp)
Method Detail

getType

public AllocationChangeEvent.Type getType()
either Type.CHANE,Type.REMOVE or Type.ADD


getUser

public User getUser()
returns the user-object, of the user that made the change. Warning can be null


getAllocatable

public Allocatable getAllocatable()

getNewAppointment

public Appointment getNewAppointment()

getNewReservation

public Reservation getNewReservation()

getOldAppointment

public Appointment getOldAppointment()
only available if type is "change"



Copyright © 2000-2006 Rapla Team. All Rights Reseserved.