|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.schedassist.model.VisibleWindow
public final class VisibleWindow
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.
| Field Summary | |
|---|---|
static VisibleWindow |
DEFAULT
Default value for VisibleWindow is 24 hours (start) and 3 weeks (end). |
| Method Summary | |
|---|---|
Date |
calculateCurrentWindowEnd()
This method uses the current system time and this instance's windowWeeksEnd field to return a Date that represents
the timestamp of the end of the Window relative to "now." |
Date |
calculateCurrentWindowStart()
This method uses the current system time and this instance's windowHoursStart field to return a Date that represents
the timestamp of the start of the Window relative to "now." |
static VisibleWindow |
fromKey(String key)
Static method to generate a VisibleWindow from
it's String storage format. |
String |
getKey()
|
int |
getWindowHoursStart()
|
int |
getWindowWeeksEnd()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static VisibleWindow DEFAULT
VisibleWindow is 24 hours (start) and 3 weeks (end).
| Method Detail |
|---|
public String getKey()
public int getWindowHoursStart()
public int getWindowWeeksEnd()
public Date calculateCurrentWindowStart()
Date that represents
the timestamp of the start of the Window relative to "now."
public Date calculateCurrentWindowEnd()
Date that represents
the timestamp of the end of the Window relative to "now."
public static VisibleWindow fromKey(String key)
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.
key -
IllegalArgumentException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||