public class PeriodicScheduleProperty extends ScheduleProperty
atg.b2bcommerce.order.scheduled.ScheduleProperty| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION |
static long |
MONTH_MSECS
The month can't be represented by milliseconds since different months has different lengths
Need special treatment
|
static java.lang.String[] |
PERIOD_TYPES
A list of possible values that the property
PERIOD_TYPE can take |
sResourceBundle| Constructor and Description |
|---|
PeriodicScheduleProperty() |
| Modifier and Type | Method and Description |
|---|---|
protected Schedule |
createScheduleFromUserInput(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method creates the Schedule object from the user inputs.
|
java.lang.String |
getReadableScheduleString(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse,
Schedule pSchedule)
This method returns a human-readable schedule String.
|
protected void |
initializeUserInputField(java.lang.String pUserInputFieldName)
This method initializes the user input values for a particular user input.
|
void |
initializeUserInputFields()
This method initializes all the user inputs.
|
protected void |
remapNullScheduleToUserInputFields(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method maps to the user inputs when no schedule exists.
|
protected void |
remapPeriodicMonthScheduleToUserInputFields(atg.service.scheduler.PeriodicMonthSchedule pSchedule)
This method maps the PeriodicMonthSchedule to the user inputs
|
protected void |
remapPeriodicScheduleToUserInputFields(PeriodicSchedule pSchedule)
This method maps the PeriodicSchedule to the user inputs
|
protected void |
remapScheduleStringToUserInput(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse,
Schedule pSchedule)
This method remaps the human-readable schedule string to the user input
|
protected void |
remapScheduleToUserInputFields(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse,
Schedule pSchedule)
This method maps the Schedule Object to the user inputs.
|
protected void |
verifyPeriod(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method verifies the period user input value.
|
protected void |
verifyPeriodType(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method verifies the period type user input value.
|
void |
verifyUserInputFields(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method verifies the values of the user input.
|
getComplexScheduledOrderPropertyValue, remapValueFromScheduledOrder, remapValueFromUserInputFieldsgetFormHandler, getScheduledOrderPropertyName, getUserInputField, getUserInputFieldNames, getUserInputFields, setFormHandler, setScheduledOrderPropertyName, setUserInputField, setUserInputFieldNames, setUserInputFieldspublic static java.lang.String CLASS_VERSION
public static final java.lang.String[] PERIOD_TYPES
PERIOD_TYPE can takepublic static final long MONTH_MSECS
public void verifyUserInputFields(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
verifyUserInputFields in class ComplexScheduledOrderPropertypRequest - the servlet's requestpResponse - the servlet's responseprotected void verifyPeriodType(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
pRequest - the servlet's requestpResponse - the servlet's responseprotected void verifyPeriod(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
pRequest - the servlet's requestpResponse - the servlet's responseprotected Schedule createScheduleFromUserInput(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
createScheduleFromUserInput in class SchedulePropertypRequest - the servlet's requestpResponse - the servlet's responsePeriodicSchedule,
PeriodicMonthScheduleprotected void remapScheduleToUserInputFields(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse, Schedule pSchedule)
remapScheduleToUserInputFields in class SchedulePropertypSchedule - the Schedule ObjectpRequest - the servlet's requestpResponse - the servlet's responseprotected void remapScheduleStringToUserInput(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse, Schedule pSchedule)
pSchedule - the Schedule Objectprotected void remapNullScheduleToUserInputFields(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
remapNullScheduleToUserInputFields in class SchedulePropertypRequest - the servlet's requestpResponse - the servlet's responseprotected void remapPeriodicMonthScheduleToUserInputFields(atg.service.scheduler.PeriodicMonthSchedule pSchedule)
pSchedule - the PeriodicMonthSchedule objectprotected void remapPeriodicScheduleToUserInputFields(PeriodicSchedule pSchedule)
pSchedule - the PeriodicSchedule objectpublic java.lang.String getReadableScheduleString(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse, Schedule pSchedule)
getReadableScheduleString in class SchedulePropertypSchedule - the schedule objectpublic void initializeUserInputFields()
initializeUserInputFields in class ComplexScheduledOrderPropertyprotected void initializeUserInputField(java.lang.String pUserInputFieldName)
pUserInputFieldName - the user input field name