org.jasig.schedassist.web.owner.preferences
Class PreferencesFormBackingObject

java.lang.Object
  extended by org.jasig.schedassist.web.owner.preferences.PreferencesFormBackingObject

public class PreferencesFormBackingObject
extends Object

Form backing Object for PreferencesFormController.

Version:
$Id: PreferencesFormBackingObject.java 2985 2011-01-26 21:58:45Z npblair $
Author:
Nicholas Blair, nblair@doit.wisc.edu

Constructor Summary
PreferencesFormBackingObject()
           
 
Method Summary
 String durationPreferenceValue()
          Return the corresponding Preference value for this bean, based from the values of the durations and allowDoubleLength fields.
 String emailReminderPreferenceKey()
          Return a properly formatted preference key for the values of enableEmailReminders, emailReminderIncludeOwner, and emailReminderHours.
 int getDefaultVisitorsPerAppointment()
           
 int getEmailReminderHours()
           
 String getLocation()
           
 String getMeetingLength()
           
 int getMeetingLimitValue()
           
 String getNoteboard()
           
 String getTitlePrefix()
           
 int getWindowHoursStart()
           
 int getWindowWeeksEnd()
           
 boolean isAllowDoubleLength()
           
 boolean isEmailReminderIncludeOwner()
           
 boolean isEnableEmailReminders()
           
 boolean isEnableMeetingLimit()
           
 boolean isReflectSchedule()
           
 void setAllowDoubleLength(boolean allowDoubleLength)
           
 void setDefaultVisitorsPerAppointment(int defaultVisitorsPerAppointment)
           
 void setEmailReminderHours(int emailReminderHours)
           
 void setEmailReminderIncludeOwner(boolean emailReminderIncludeOwner)
           
 void setEnableEmailReminders(boolean enableEmailReminders)
           
 void setEnableMeetingLimit(boolean enableMeetingLimit)
           
 void setLocation(String location)
           
 void setMeetingLength(String meetingLength)
           
 void setMeetingLimitValue(int meetingLimitValue)
           
 void setNoteboard(String noteboard)
           
 void setReflectSchedule(boolean reflectSchedule)
           
 void setTitlePrefix(String titlePrefix)
           
 void setWindowHoursStart(int windowHoursStart)
           
 void setWindowWeeksEnd(int windowWeeksEnd)
           
 String toString()
           
 String visibleWindowPreferenceKey()
          Return a properly formatted key for the values of windowHoursStart and windowWeeksEnd that can be used to generate a VisibleWindow.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PreferencesFormBackingObject

public PreferencesFormBackingObject()
Method Detail

getLocation

public String getLocation()
Returns:
the location

setLocation

public void setLocation(String location)
Parameters:
location - the location to set

getTitlePrefix

public String getTitlePrefix()
Returns:
the titlePrefix

setTitlePrefix

public void setTitlePrefix(String titlePrefix)
Parameters:
titlePrefix - the titlePrefix to set

getMeetingLength

public String getMeetingLength()
Returns:
the meetingLength

setMeetingLength

public void setMeetingLength(String meetingLength)
Parameters:
meetingLength - the meetingLength to set

getNoteboard

public String getNoteboard()
Returns:
the noteboard

setNoteboard

public void setNoteboard(String noteboard)
Parameters:
noteboard - the noteboard to set

isAllowDoubleLength

public boolean isAllowDoubleLength()
Returns:
the allowDoubleLength

setAllowDoubleLength

public void setAllowDoubleLength(boolean allowDoubleLength)
Parameters:
allowDoubleLength - the allowDoubleLength to set

getWindowHoursStart

public int getWindowHoursStart()
Returns:
the windowHoursStart

setWindowHoursStart

public void setWindowHoursStart(int windowHoursStart)
Parameters:
windowHoursStart - the windowHoursStart to set

getWindowWeeksEnd

public int getWindowWeeksEnd()
Returns:
the windowWeeksEnd

setWindowWeeksEnd

public void setWindowWeeksEnd(int windowWeeksEnd)
Parameters:
windowWeeksEnd - the windowWeeksEnd to set

getDefaultVisitorsPerAppointment

public int getDefaultVisitorsPerAppointment()
Returns:
the defaultVisitorsPerAppointment

setDefaultVisitorsPerAppointment

public void setDefaultVisitorsPerAppointment(int defaultVisitorsPerAppointment)
Parameters:
defaultVisitorsPerAppointment - the defaultVisitorsPerAppointment to set

isEnableMeetingLimit

public boolean isEnableMeetingLimit()
Returns:
the enableMeetingLimit

setEnableMeetingLimit

public void setEnableMeetingLimit(boolean enableMeetingLimit)
Parameters:
enableMeetingLimit - the enableMeetingLimit to set

getMeetingLimitValue

public int getMeetingLimitValue()
Returns:
the meetingLimitValue

setMeetingLimitValue

public void setMeetingLimitValue(int meetingLimitValue)
Parameters:
meetingLimitValue - the meetingLimitValue to set

isReflectSchedule

public boolean isReflectSchedule()
Returns:
the reflectSchedule

setReflectSchedule

public void setReflectSchedule(boolean reflectSchedule)
Parameters:
reflectSchedule - the reflectSchedule to set

durationPreferenceValue

public String durationPreferenceValue()
Return the corresponding Preference value for this bean, based from the values of the durations and allowDoubleLength fields. If allowDoubleLength is false, this returns simply the value in the durations field. If allowDoubleLength is true, this returns:
         durations,(2*durations)
         
Examples:
         30,60
         31,62
         45,90
         

Returns:

visibleWindowPreferenceKey

public String visibleWindowPreferenceKey()
Return a properly formatted key for the values of windowHoursStart and windowWeeksEnd that can be used to generate a VisibleWindow.

Returns:

emailReminderPreferenceKey

public String emailReminderPreferenceKey()
Return a properly formatted preference key for the values of enableEmailReminders, emailReminderIncludeOwner, and emailReminderHours.

Returns:

isEnableEmailReminders

public boolean isEnableEmailReminders()
Returns:
the enableEmailReminders

setEnableEmailReminders

public void setEnableEmailReminders(boolean enableEmailReminders)
Parameters:
enableEmailReminders - the enableEmailReminders to set

isEmailReminderIncludeOwner

public boolean isEmailReminderIncludeOwner()
Returns:
the emailReminderIncludeOwner

setEmailReminderIncludeOwner

public void setEmailReminderIncludeOwner(boolean emailReminderIncludeOwner)
Parameters:
emailReminderIncludeOwner - the emailReminderIncludeOwner to set

getEmailReminderHours

public int getEmailReminderHours()
Returns:
the emailReminderHours

setEmailReminderHours

public void setEmailReminderHours(int emailReminderHours)
Parameters:
emailReminderHours - the emailReminderHours to set

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011 Jasig. All Rights Reserved.