| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectatg.commerce.order.scheduled.ComplexScheduledOrderProperty
atg.commerce.order.scheduled.ScheduleProperty
atg.commerce.order.scheduled.CalendarScheduleProperty
public class CalendarScheduleProperty
This class represents the schedule property in the scheduledOrder repository. The schedule property will be a Calendar Schedule. The property is mapped to the user fields on the User Interface which are for Calendar Schedule, such as selection of daily,weekly or monthly sechdule, selection of the day within the week, etc.
atg.b2bcommerce.order.scheduled.ScheduleProperty| Field Summary | |
|---|---|
| static java.lang.String | CLASS_VERSION | 
| Fields inherited from class atg.commerce.order.scheduled.ScheduleProperty | 
|---|
| sResourceBundle | 
| Constructor Summary | |
|---|---|
| CalendarScheduleProperty() | |
| Method Summary | |
|---|---|
| protected  boolean | allFalse(java.lang.String pPropertyName,
         int startIndex)This method checks whether the values of a property are all false | 
| protected  int | countTrueValues(boolean[] pValues,
                int startIndex)This method counts the true value of a boolean array | 
| protected  Schedule | createScheduleFromUserInput(DynamoHttpServletRequest pRequest,
                            DynamoHttpServletResponse pResponse)This method creates the Schedule object from the user inputs. | 
| protected  java.lang.String | getReadableDailyScheduleString(Schedule pSchedule)This method returns a human-readable daily schedule String. | 
| protected  java.lang.String | getReadableDaysOfTheWeek(boolean[] pDays)This method returns a human-readable day of the week String. | 
| protected  java.lang.String | getReadableMonthlyScheduleString(Schedule pSchedule)This method returns a human-readable monthly schedule String. | 
| protected  java.lang.String | getReadableOccurancesOfTheMonth(boolean[] pNumbers)Deprecated. because of misspelling | 
| protected  java.lang.String | getReadableOccurrencesOfTheMonth(boolean[] pNumbers)This method returns a human-readable occurrence of the month String. | 
|  java.lang.String | getReadableScheduleString(DynamoHttpServletRequest pRequest,
                          DynamoHttpServletResponse pResponse,
                          Schedule pSchedule)This method returns a human-readable schedule String. | 
| protected  java.lang.String | getReadableStringList(boolean[] pInclude,
                      java.lang.String[] pStringList)This method translates a boolean array to a String. | 
| protected  java.lang.String | getReadableWeeklyScheduleString(Schedule pSchedule)This method returns a human-readable weekly schedule String. | 
| protected  void | handleDailyMode(CalendarSchedule schedule)This method sets the properties of the schedule object if the schedule mode is Daily. | 
| protected  void | handleMonthlyMode(CalendarSchedule schedule)This method sets the properties of the schedule object if the schedule mode is Monthly. | 
| protected  void | handleWeeklyMode(CalendarSchedule schedule)This method sets the properties of the schedule object if the schedule mode is Weekly. | 
| 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 | remapDaysOfTheWeekToUserInput(CalendarSchedule pSchedule)This method maps to the daysOfTheWeek user input field from the schedule object. | 
| protected  void | remapNullScheduleToUserInputFields(DynamoHttpServletRequest pRequest,
                                   DynamoHttpServletResponse pResponse)This method maps to the user inputs when no schedule exists. | 
| protected  void | remapOccuranceInMonthToUserInput(CalendarSchedule pSchedule)Deprecated. because of misspelling | 
| protected  void | remapOccurrenceInMonthToUserInput(CalendarSchedule pSchedule)This method maps to the occurrenceInMonth user input field from the schedule object. | 
| protected  void | remapScheduleModeToUserInput(CalendarSchedule pSchedule)This method maps to the scheduleMode user field from the schedule object. | 
| protected  void | remapScheduleStringToUserInput(DynamoHttpServletRequest pRequest,
                               DynamoHttpServletResponse pResponse,
                               CalendarSchedule 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 Calendar Schedule Object to the user inputs. | 
| protected  void | verifyDailyMode(DynamoHttpServletRequest pRequest,
                DynamoHttpServletResponse pResponse)This method verifies the values of the user input when the schedule mode is daily schedule mode. | 
| protected  void | verifyMonthlyMode(DynamoHttpServletRequest pRequest,
                  DynamoHttpServletResponse pResponse)This method verifies the values of the user input when the schedule mode is Monthly schedule mode. | 
|  void | verifyUserInputFields(DynamoHttpServletRequest pRequest,
                      DynamoHttpServletResponse pResponse)This method verifies the values of the user input. | 
| protected  void | verifyWeeklyMode(DynamoHttpServletRequest pRequest,
                 DynamoHttpServletResponse pResponse)This method verifies the values of the user input when the schedule mode is weekly schedule mode. | 
| Methods inherited from class atg.commerce.order.scheduled.ScheduleProperty | 
|---|
| getComplexScheduledOrderPropertyValue, remapValueFromScheduledOrder, remapValueFromUserInputFields | 
| Methods inherited from class atg.commerce.order.scheduled.ComplexScheduledOrderProperty | 
|---|
| getFormHandler, getScheduledOrderPropertyName, getUserInputField, getUserInputFieldNames, getUserInputFields, setFormHandler, setScheduledOrderPropertyName, setUserInputField, setUserInputFieldNames, setUserInputFields | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static java.lang.String CLASS_VERSION
| Constructor Detail | 
|---|
public CalendarScheduleProperty()
| Method Detail | 
|---|
protected void remapNullScheduleToUserInputFields(DynamoHttpServletRequest pRequest,
                                                  DynamoHttpServletResponse pResponse)
remapNullScheduleToUserInputFields in class SchedulePropertypRequest - the servlet's requestpResponse - the servlet's response
public void verifyUserInputFields(DynamoHttpServletRequest pRequest,
                                  DynamoHttpServletResponse pResponse)
verifyUserInputFields in class ComplexScheduledOrderPropertypRequest - the servlet's requestpResponse - the servlet's response
protected void verifyDailyMode(DynamoHttpServletRequest pRequest,
                               DynamoHttpServletResponse pResponse)
pRequest - the servlet's requestpResponse - the servlet's response
protected void verifyWeeklyMode(DynamoHttpServletRequest pRequest,
                                DynamoHttpServletResponse pResponse)
pRequest - the servlet's requestpResponse - the servlet's response
protected void verifyMonthlyMode(DynamoHttpServletRequest pRequest,
                                 DynamoHttpServletResponse pResponse)
pRequest - the servlet's requestpResponse - the servlet's responseprotected void handleDailyMode(CalendarSchedule schedule)
schedule - the schedule objectprotected void handleWeeklyMode(CalendarSchedule schedule)
schedule - the schedule objectprotected void handleMonthlyMode(CalendarSchedule schedule)
schedule - the schedule object
protected Schedule createScheduleFromUserInput(DynamoHttpServletRequest pRequest,
                                               DynamoHttpServletResponse pResponse)
remapValueFromUserInputFields will use the schedule object
 to map the user input to the schedule property of the repository.
createScheduleFromUserInput in class SchedulePropertypRequest - the servlet's requestpResponse - the servlet's response
protected void remapDaysOfTheWeekToUserInput(CalendarSchedule pSchedule)
pSchedule - the schedule objectprotected void remapOccuranceInMonthToUserInput(CalendarSchedule pSchedule)
remapOccurrenceInMonthToUserInputprotected void remapOccurrenceInMonthToUserInput(CalendarSchedule pSchedule)
pSchedule - the schedule objectprotected void remapScheduleModeToUserInput(CalendarSchedule pSchedule)
pSchedule - the schedule object
protected void remapScheduleStringToUserInput(DynamoHttpServletRequest pRequest,
                                              DynamoHttpServletResponse pResponse,
                                              CalendarSchedule pSchedule)
pSchedule - the Schedule Object
protected void remapScheduleToUserInputFields(DynamoHttpServletRequest pRequest,
                                              DynamoHttpServletResponse pResponse,
                                              Schedule pSchedule)
remapScheduleToUserInputFields in class SchedulePropertypSchedule - the Schedule ObjectpRequest - the servlet's requestpResponse - the servlet's response
protected boolean allFalse(java.lang.String pPropertyName,
                           int startIndex)
pPropertyName - the property name whose value will be evaluatedstartIndex - the start index of the property value array to be evaluated
protected int countTrueValues(boolean[] pValues,
                              int startIndex)
pValues - the boolean array to be evaluatedstartIndex - the start index of the array to be evaluated
public java.lang.String getReadableScheduleString(DynamoHttpServletRequest pRequest,
                                                  DynamoHttpServletResponse pResponse,
                                                  Schedule pSchedule)
getReadableScheduleString in class SchedulePropertypSchedule - the schedule object
protected java.lang.String getReadableDailyScheduleString(Schedule pSchedule)
pSchedule - the schedule object
protected java.lang.String getReadableWeeklyScheduleString(Schedule pSchedule)
pSchedule - the schedule object
protected java.lang.String getReadableMonthlyScheduleString(Schedule pSchedule)
pSchedule - the schedule object
protected java.lang.String getReadableDaysOfTheWeek(boolean[] pDays)
pDays - a boolean array indicating which days are selected
protected java.lang.String getReadableOccurancesOfTheMonth(boolean[] pNumbers)
getReadableOccurrencesOfTheMonthprotected java.lang.String getReadableOccurrencesOfTheMonth(boolean[] pNumbers)
pNumbers - a boolean array indicating which occurrences are selected
protected java.lang.String getReadableStringList(boolean[] pInclude,
                                                 java.lang.String[] pStringList)
pInclude - a boolean array to be translatedpStringList - a String array as the translation is looking for
public void initializeUserInputFields()
initializeUserInputFields in class ComplexScheduledOrderPropertyprotected void initializeUserInputField(java.lang.String pUserInputFieldName)
pUserInputFieldName - the user input field name| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||