|
|||||||||
| Home >> All >> com >> clra >> [ web overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.clra.web
Class RowingSessionForm

java.lang.Objectorg.apache.struts.action.ActionForm
com.clra.web.RowingSessionForm
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- ParticipationForm
- public class RowingSessionForm
- extends org.apache.struts.action.ActionForm
Form bean for the rowing session page. This form has the following fields, with default values in square brackets:
- action - The maintenance action that is being performed: Create, Edit, Publish, Lock, View, Cancel or Delete. [REQUIRED]
- id - The rowing_id of the rowing session. [REQUIRED except on Create, IMMUTABLE otherwise]
- datetime - The date (and time) for this rowing session. [REQUIRED on Create and Edit, IMMUTABLE otherwise]
- level - The level (LTR, REGULAR) of this rowing session. [REQUIRED on Create and Edit, IMMUTABLE otherwise]
- type - The type (COMPETITION,PRACTICE) of this rowing session. [REQUIRED on Create and Edit, IMMUTABLE otherwise]
- state - The state (TENATIVE, OPEN, LOCKED, BOATING1, BOATING2, COMPLETE, INVOICING, CLOSED) of this rowing session. [REQUIRED on Create and Edit, IMMUTABLE otherwise]
- Version:
- $Revision: 1.5 $ $Date: 2003/02/26 03:38:46 $
| Field Summary | |
private java.lang.String |
action
The maintenance action that is being performed. |
private static java.lang.String |
base
|
private java.util.Calendar |
calendar
Date (and time) of the rowing session |
static java.lang.String |
CANCEL
Name of the action that cancels action by the form |
static java.lang.String |
CREATE
Name of the action that creates a rowing session |
static java.lang.String |
DELETE
Name of the action that deletes a rowing session |
static java.lang.String |
EDIT
Name of the action that edits a rowing session |
private java.lang.String |
level
The level of the rowing session. |
static java.lang.String |
LOCK
Name of the action that locks a rowing session |
private java.util.Collection |
participants
A collection of participants enrolled in the rowing session |
static java.lang.String |
PUBLISH
Name of the action that publishes a rowing session |
private java.lang.Integer |
rowingId
The id of the rowing session |
private static java.text.SimpleDateFormat |
sdf1
|
private static java.text.SimpleDateFormat |
sdf2
|
private static java.text.SimpleDateFormat |
sdf3
|
static java.lang.String |
SESSIONCANCEL
Name of the action that cancels a rowing session |
private static java.lang.String |
spec1
|
private static java.lang.String |
spec2
|
private static java.lang.String |
spec3
|
private java.lang.String |
state
The rowing session type. |
private static org.apache.log4j.Category |
theLog
|
private java.lang.String |
type
The rowing session type. |
static java.lang.String |
VIEW
Name of the action that displays a rowing session |
| Fields inherited from class org.apache.struts.action.ActionForm |
multipartRequestHandler, servlet |
| Constructor Summary | |
RowingSessionForm()
|
|
| Method Summary | |
java.lang.String |
getAction()
Return the maintenance action |
int |
getAmPm()
Return am/pm. |
java.util.Calendar |
getCalendar()
Returns the date and time in a Calendar object |
java.util.Iterator |
getCoxswains()
Returns a read-only iterator of "coxswain" participants. |
java.lang.String |
getDate()
Returns the formatted date of the rowing session |
java.lang.String |
getDateTime()
Returns the formatted date and time of the rowing session |
java.util.Date |
getDateTimeAsDateObject()
Returns the date and time in a Date object |
int |
getDay()
Return the day. |
int |
getHour()
Return the hour. |
java.lang.String |
getLevel()
Return the level of the rowing session |
int |
getMinute()
Return the minute |
int |
getMonth()
Return the month. |
java.util.Iterator |
getPorts()
Returns a read-only iterator of "port" participants. |
java.lang.Integer |
getRowingId()
Return the persistent id of the rowing session |
java.util.Iterator |
getStarboards()
Returns a read-only iterator of "starboard" participants. |
java.lang.String |
getState()
Return the state of the rowing session |
java.lang.String |
getTime()
Returns the formatted time of the rowing session |
java.lang.String |
getType()
Return the type of the rowing session |
int |
getYear()
Return the year. |
void |
reset(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
Reset all properties to their default values. |
void |
setAction(java.lang.String action)
Set the maintenance action. |
void |
setAmPm(int ampm)
Sets am/pm Range: Calendar.AM or Calendar.PM |
void |
setCalendar(java.util.Calendar calendar)
Sets the date and time from a Calendar object |
void |
setDateTimeFromDate(java.util.Date date)
Sets the date and time from a Date object |
void |
setDay(int day)
Sets the day. |
void |
setHour(int hour)
Sets the hour. |
void |
setLevel(java.lang.String level)
Set the level of the rowing session |
void |
setMinute(int minute)
Sets the minute |
void |
setMonth(int month)
Sets the month. |
(package private) void |
setParticipants(java.util.Collection participants)
Sets the (name-sorted) collection of other participants in this rowing session. |
(package private) void |
setRowingId(java.lang.Integer rowingId)
Set the persistent id of the rowing session |
void |
setState(java.lang.String state)
Set the state of the rowing session |
void |
setType(java.lang.String type)
Set the type of the rowing session |
void |
setYear(int year)
Sets the year. |
(package private) static java.util.Calendar |
tomorrowEvening()
Package utility to calculate 7:00 PM tomorrow evening |
(package private) static java.util.Calendar |
tomorrowMorning()
Package utility to calculate 5:45 AM tomorrow morning |
org.apache.struts.action.ActionErrors |
validate(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
Validate the properties that have been set from this HTTP request, and return an ActionErrors object that encapsulates any
validation errors that have been found. |
| Methods inherited from class org.apache.struts.action.ActionForm |
getMultipartRequestHandler, getServlet, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
base
private static final java.lang.String base
theLog
private static final org.apache.log4j.Category theLog
CREATE
public static final java.lang.String CREATE
- Name of the action that creates a rowing session
- See Also:
- Constant Field Values
PUBLISH
public static final java.lang.String PUBLISH
- Name of the action that publishes a rowing session
- See Also:
- Constant Field Values
EDIT
public static final java.lang.String EDIT
- Name of the action that edits a rowing session
- See Also:
- Constant Field Values
LOCK
public static final java.lang.String LOCK
- Name of the action that locks a rowing session
- See Also:
- Constant Field Values
VIEW
public static final java.lang.String VIEW
- Name of the action that displays a rowing session
- See Also:
- Constant Field Values
SESSIONCANCEL
public static final java.lang.String SESSIONCANCEL
- Name of the action that cancels a rowing session
- See Also:
- Constant Field Values
DELETE
public static final java.lang.String DELETE
- Name of the action that deletes a rowing session
- See Also:
- Constant Field Values
CANCEL
public static final java.lang.String CANCEL
- Name of the action that cancels action by the form
- See Also:
- Constant Field Values
spec1
private static final java.lang.String spec1
sdf1
private static final java.text.SimpleDateFormat sdf1
spec2
private static final java.lang.String spec2
sdf2
private static final java.text.SimpleDateFormat sdf2
spec3
private static final java.lang.String spec3
sdf3
private static final java.text.SimpleDateFormat sdf3
action
private java.lang.String action
- The maintenance action that is being performed.
rowingId
private java.lang.Integer rowingId
- The id of the rowing session
calendar
private java.util.Calendar calendar
- Date (and time) of the rowing session
participants
private java.util.Collection participants
- A collection of participants enrolled in the rowing session
level
private java.lang.String level
- The level of the rowing session.
- See Also:
- com.clra.rowing.RowingSessionLevel
type
private java.lang.String type
- The rowing session type.
- See Also:
- com.clra.rowing.RowingSessionType
state
private java.lang.String state
- The rowing session type.
- See Also:
- com.clra.rowing.RowingSessionState
| Constructor Detail |
RowingSessionForm
public RowingSessionForm()
| Method Detail |
getAction
public java.lang.String getAction()
- Return the maintenance action
setAction
public void setAction(java.lang.String action)
- Set the maintenance action.
getRowingId
public java.lang.Integer getRowingId()
- Return the persistent id of the rowing session
setRowingId
void setRowingId(java.lang.Integer rowingId)
- Set the persistent id of the rowing session
getState
public java.lang.String getState()
- Return the state of the rowing session
setState
public void setState(java.lang.String state)
- Set the state of the rowing session
getDate
public java.lang.String getDate()
- Returns the formatted date of the rowing session
getTime
public java.lang.String getTime()
- Returns the formatted time of the rowing session
getDateTime
public java.lang.String getDateTime()
- Returns the formatted date and time of the rowing session
getDateTimeAsDateObject
public java.util.Date getDateTimeAsDateObject()
- Returns the date and time in a Date object
setDateTimeFromDate
public void setDateTimeFromDate(java.util.Date date)
- Sets the date and time from a Date object
getCalendar
public java.util.Calendar getCalendar()
- Returns the date and time in a Calendar object
setCalendar
public void setCalendar(java.util.Calendar calendar)
- Sets the date and time from a Calendar object
getYear
public int getYear()
- Return the year. Range: 2001 - ...
setYear
public void setYear(int year)
- Sets the year. Range: 2001 - ...
getMonth
public int getMonth()
- Return the month. Range: 0 - 11
setMonth
public void setMonth(int month)
- Sets the month. Range: 0 - 11
getDay
public int getDay()
- Return the day. Range: 1 - 31
setDay
public void setDay(int day)
- Sets the day. Range: 1 - 31
getHour
public int getHour()
- Return the hour. Range: 1 - 12
setHour
public void setHour(int hour)
- Sets the hour. Range: 1 - 12
getMinute
public int getMinute()
- Return the minute
setMinute
public void setMinute(int minute)
- Sets the minute
getAmPm
public int getAmPm()
- Return am/pm. Range: Calendar.AM or Calendar.PM
setAmPm
public void setAmPm(int ampm)
- Sets am/pm Range: Calendar.AM or Calendar.PM
getLevel
public java.lang.String getLevel()
- Return the level of the rowing session
setLevel
public void setLevel(java.lang.String level)
- Set the level of the rowing session
getType
public java.lang.String getType()
- Return the type of the rowing session
setType
public void setType(java.lang.String type)
- Set the type of the rowing session
reset
public void reset(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
- Reset all properties to their default values.
validate
public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
- Validate the properties that have been set from this HTTP request,
and return an
ActionErrorsobject that encapsulates any validation errors that have been found. If no errors are found, returnnullor anActionErrorsobject with no recorded error messages.Restrictions:
- A NEW session may be created. No other action is permitted.
- After creation, a session is considered TENATIVE. A TENATIVE sessions. The Create action is not permitted on any other session state.
- The Edit and Delete actions are permitted only for TENATIVE rowing sessions.
- The Promote and Cancel actions are not permitted for CLOSED rowing sessions.
- Only the Edit action is permitted on CANCELLED rowing sessions.
tomorrowMorning
static java.util.Calendar tomorrowMorning()
- Package utility to calculate 5:45 AM tomorrow morning
tomorrowEvening
static java.util.Calendar tomorrowEvening()
- Package utility to calculate 7:00 PM tomorrow evening
setParticipants
void setParticipants(java.util.Collection participants)
- Sets the (name-sorted) collection of other participants in this
rowing session. Items in the collection should be instances of
Participant2View.
getStarboards
public java.util.Iterator getStarboards()
- Returns a read-only iterator of "starboard" participants.
Items in the iteration are Strings, formatted for display on a screen.
getPorts
public java.util.Iterator getPorts()
- Returns a read-only iterator of "port" participants.
Items in the iteration are Strings, formatted for display on a screen.
getCoxswains
public java.util.Iterator getCoxswains()
- Returns a read-only iterator of "coxswain" participants.
Items in the iteration are Strings, formatted for display on a screen.
|
|||||||||
| Home >> All >> com >> clra >> [ web overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC