org.jasig.schedassist.model
Class VisibleWindow
java.lang.Object
org.jasig.schedassist.model.VisibleWindow
public final class VisibleWindow
- extends Object
Class to represent the IScheduleOwner's preferences
for schedule visibility.
windowHoursStart defines the minimum amount of time from "now" (in hours)
that a IScheduleVisitor is allowed to schedule an appointment.
windowWeeksEnd defines the maximum amount of time from "now" (in weeks)
that a IScheduleVisitor is allowed to schedule an appointment.
- Version:
- $Id: VisibleWindow.java 690 2009-05-14 16:57:58Z npblair $
- Author:
- Nicholas Blair, nblair@doit.wisc.edu
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT
public static VisibleWindow DEFAULT
- Default value for
VisibleWindow is 24 hours (start) and 3 weeks (end).
getKey
public String getKey()
- Returns:
- the key
getWindowHoursStart
public int getWindowHoursStart()
- Returns:
- the windowHoursStart
getWindowWeeksEnd
public int getWindowWeeksEnd()
- Returns:
- the windowWeeksEnd
fromKey
public static VisibleWindow fromKey(String key)
- Static method to generate a
VisibleWindow from
it's String storage format.
The lone argument must be formatted as follows:
windowHoursStart,windowWeeksEnd
Both values must be integers, separated by a single comma.
- Parameters:
key -
- Returns:
- an appropriate visible window from the key
- Throws:
IllegalArgumentException
Copyright © 2011 Jasig. All Rights Reserved.