fr.paris.lutece.plugins.appointment.business
Class Appointment

java.lang.Object
  extended by fr.paris.lutece.plugins.appointment.business.Appointment
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AppointmentDTO

public class Appointment
extends Object
implements Serializable

This is the business class for the object Appointment

See Also:
Serialized Form

Field Summary
static String APPOINTMENT_RESOURCE_TYPE
          Appointment resource type
static int STATUS_NOT_VALIDATED
          Status of appointments that have not been validated yet
static int STATUS_REJECTED
          Status of appointments that have been rejected
static int STATUS_VALIDATED
          Status of appointments that have been validated
 
Constructor Summary
Appointment()
           
 
Method Summary
 String getAuthenticationService()
          Returns the authentication service used by the lutece user that made this appointment, if any
 Date getDateAppointment()
          Get the date of the appointment
 String getEmail()
          Returns the Email
 String getFirstName()
          Returns the FirstName
 int getIdActionCancel()
          Get the id of the workflow action to execute to cancel the appointment
 int getIdAdminUser()
          Get the id of the admin user associated with this appointment
 int getIdAppointment()
          Returns the IdAppointment
 int getIdSlot()
          Get the id of the slot
 String getIdUser()
          Returns the id of the lutece user that made this appointment
 String getLastName()
          Returns the LastName
 List<fr.paris.lutece.plugins.genericattributes.business.Response> getListResponse()
          Get the list of response of this appointment
 Collection<fr.paris.lutece.plugins.workflowcore.business.action.Action> getListWorkflowActions()
          Get the list of workflow actions available for this appointment.
 String getLocation()
          Get the localization of the appointment
 int getStatus()
          Get the status of the appointment
 void setAuthenticationService(String strAuthenticationService)
          Sets the authentication service used by the lutece user that made this appointment, if any
 void setDateAppointment(Date dateAppointment)
          Set the date of the appointment
 void setEmail(String strEmail)
          Sets the Email
 void setFirstName(String strFirstName)
          Sets the FirstName
 void setIdActionCancel(int nIdActionCancel)
          Set the id of the workflow action to execute to cancel the appointment
 void setIdAdminUser(int nIdAdminUser)
          Set the id of the admin user associated with this appointment
 void setIdAppointment(int nIdAppointment)
          Sets the IdAppointment
 void setIdSlot(int nIdSlot)
          Set the id of the slot
 void setIdUser(String strIdUser)
          Sets the id of the lutece user that made this appointment
 void setLastName(String strLastName)
          Sets the LastName
 void setListResponse(List<fr.paris.lutece.plugins.genericattributes.business.Response> listResponse)
          Set the list of responses of this appointment
 void setListWorkflowActions(Collection<fr.paris.lutece.plugins.workflowcore.business.action.Action> listWorkflowActions)
          Set the list of workflow actions available for this appointment.
 void setLocation(String strLocation)
          Set the localization of the appointment
 void setStatus(int nStatus)
          Set the status of the appointment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

APPOINTMENT_RESOURCE_TYPE

public static final String APPOINTMENT_RESOURCE_TYPE
Appointment resource type

See Also:
Constant Field Values

STATUS_REJECTED

public static final int STATUS_REJECTED
Status of appointments that have been rejected

See Also:
Constant Field Values

STATUS_NOT_VALIDATED

public static final int STATUS_NOT_VALIDATED
Status of appointments that have not been validated yet

See Also:
Constant Field Values

STATUS_VALIDATED

public static final int STATUS_VALIDATED
Status of appointments that have been validated

See Also:
Constant Field Values
Constructor Detail

Appointment

public Appointment()
Method Detail

getIdAppointment

public int getIdAppointment()
Returns the IdAppointment

Returns:
The IdAppointment

setIdAppointment

public void setIdAppointment(int nIdAppointment)
Sets the IdAppointment

Parameters:
nIdAppointment - The IdAppointment

getFirstName

public String getFirstName()
Returns the FirstName

Returns:
The FirstName

setFirstName

public void setFirstName(String strFirstName)
Sets the FirstName

Parameters:
strFirstName - The FirstName

getLastName

public String getLastName()
Returns the LastName

Returns:
The LastName

setLastName

public void setLastName(String strLastName)
Sets the LastName

Parameters:
strLastName - The LastName

getEmail

public String getEmail()
Returns the Email

Returns:
The Email

setEmail

public void setEmail(String strEmail)
Sets the Email

Parameters:
strEmail - The Email

getIdUser

public String getIdUser()
Returns the id of the lutece user that made this appointment

Returns:
The id of the lutece user that made this appointment

setIdUser

public void setIdUser(String strIdUser)
Sets the id of the lutece user that made this appointment

Parameters:
strIdUser - The id of the lutece user that made this appointment

getAuthenticationService

public String getAuthenticationService()
Returns the authentication service used by the lutece user that made this appointment, if any

Returns:
The authentication service used by the lutece user that made this appointment, or null if this appointment is not associated with a lutece user

setAuthenticationService

public void setAuthenticationService(String strAuthenticationService)
Sets the authentication service used by the lutece user that made this appointment, if any

Parameters:
strAuthenticationService - The authentication service used by the lutece user that made this appointment, or null if this appointment is not associated with a lutece user

getLocation

public String getLocation()
Get the localization of the appointment

Returns:
the localization of the appointment

setLocation

public void setLocation(String strLocation)
Set the localization of the appointment

Parameters:
strLocation - The localization of the appointment

getDateAppointment

public Date getDateAppointment()
Get the date of the appointment

Returns:
The date of the appointment

setDateAppointment

public void setDateAppointment(Date dateAppointment)
Set the date of the appointment

Parameters:
dateAppointment - The date of the appointment

getIdSlot

public int getIdSlot()
Get the id of the slot

Returns:
The id of the slot

setIdSlot

public void setIdSlot(int nIdSlot)
Set the id of the slot

Parameters:
nIdSlot - The id of the slot

getStatus

public int getStatus()
Get the status of the appointment

Returns:
The status of the appointment

setStatus

public void setStatus(int nStatus)
Set the status of the appointment

Parameters:
nStatus - The status of the appointment

getListResponse

public List<fr.paris.lutece.plugins.genericattributes.business.Response> getListResponse()
Get the list of response of this appointment

Returns:
the list of response of this appointment

setListResponse

public void setListResponse(List<fr.paris.lutece.plugins.genericattributes.business.Response> listResponse)
Set the list of responses of this appointment

Parameters:
listResponse - The list of responses

setListWorkflowActions

public void setListWorkflowActions(Collection<fr.paris.lutece.plugins.workflowcore.business.action.Action> listWorkflowActions)
Set the list of workflow actions available for this appointment.

Parameters:
listWorkflowActions - The list of workflow actions available for this appointment.

getListWorkflowActions

public Collection<fr.paris.lutece.plugins.workflowcore.business.action.Action> getListWorkflowActions()
Get the list of workflow actions available for this appointment. Workflow actions are NOT loaded by default, so check that they have been set before calling this method.

Returns:
The list of workflow actions available for this appointment.

getIdActionCancel

public int getIdActionCancel()
Get the id of the workflow action to execute to cancel the appointment

Returns:
The id of the workflow action to execute to cancel the appointment

setIdActionCancel

public void setIdActionCancel(int nIdActionCancel)
Set the id of the workflow action to execute to cancel the appointment

Parameters:
nIdActionCancel - The id of the workflow action to execute to cancel the appointment

getIdAdminUser

public int getIdAdminUser()
Get the id of the admin user associated with this appointment

Returns:
The id of the admin user associated with this appointment

setIdAdminUser

public void setIdAdminUser(int nIdAdminUser)
Set the id of the admin user associated with this appointment

Parameters:
nIdAdminUser - The id of the admin user associated with this appointment


Copyright © 2014 Mairie de Paris. All Rights Reserved.