Class CreateOrEditApplicabilityConditionController
java.lang.Object
org.zkoss.zk.ui.event.GenericEventListener
org.zkoss.zk.ui.util.GenericComposer<T>
org.zkoss.zk.ui.util.GenericAutowireComposer<T>
org.zkoss.zk.ui.util.GenericForwardComposer<org.zkoss.zk.ui.Component>
com.hybris.cockpitng.util.ViewAnnotationAwareComposer
com.hybris.cockpitng.util.DefaultWidgetController
de.hybris.platform.unifieduibackoffice.widgets.merchandising.UnifiedUiWidgetController
de.hybris.platform.unifieduibackoffice.widgets.merchandising.CreateOrEditConditionController
de.hybris.platform.unifieduibackoffice.widgets.merchandising.CreateOrEditApplicabilityConditionController
- All Implemented Interfaces:
com.hybris.cockpitng.core.WidgetController,com.hybris.cockpitng.dnd.WidgetDragAndDropAware,com.hybris.cockpitng.engine.WidgetInstanceManagerAware,Serializable,org.zkoss.zk.ui.event.EventListener,org.zkoss.zk.ui.event.SerializableEventListener,org.zkoss.zk.ui.util.ComponentActivationListener,org.zkoss.zk.ui.util.ComponentCloneListener,org.zkoss.zk.ui.util.Composer<org.zkoss.zk.ui.Component>,org.zkoss.zk.ui.util.ComposerExt<org.zkoss.zk.ui.Component>
This controller will handle events for creating and editing Applicability condition
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final StringFields inherited from class de.hybris.platform.unifieduibackoffice.widgets.merchandising.CreateOrEditConditionController
ACCOMPANYING_PASSENGER_EXACT_MATCH_NAME, ACCOMPANYING_PASSENGER_GRID_NAME, ACCOMPANYING_PASSENGER_NAME, addImageIconWithPath, ADV_RES_PERIOD_WEEK, ADV_RES_UNIT, ADVANCE_PURCHASE_RESERVATION_INPUT_NAME, advResPeriodWeekComboBoxDataList, advResUnitComboBoxDataList, AGE_GRID_NAME, AGE_MAX_NAME, AGE_MIN_NAME, BLACKOUT_DATES_FROM_NAME, BLACKOUT_DATES_TO_NAME, BOOKING_PERIOD_END_DATE_NAME, BOOKING_PERIOD_END_HOURS_NAME, BOOKING_PERIOD_END_MINUTES_NAME, BOOKING_PERIOD_START_DATE_NAME, BOOKING_PERIOD_START_HOURS_NAME, BOOKING_PERIOD_START_MINUTES_NAME, cabinComboBoxDataList, CARRIER_GDS_NAME, CODE_TYPE, codeTypeComboBoxDataList, conditionDiv, conditionList, COUNTRY_OF_CITIZENSHIP_NAME, COUNTRY_OF_RESIDENCE_NAME, CUSTOMER_INDEX_SCORE_MAX_NAME, CUSTOMER_INDEX_SCORE_MIN_NAME, DATE_FORMAT, deleteImageIconWithPath, DEPARTURE_PERIOD, DEPARTURE_PERIOD_OFFSET_NAME, DEPARTURE_PERIODD_DAYS_AHEAD_NAME, DISPLAY_LOCATION_NAME, DISPLAY_LOCATION_NO, DISPLAY_LOCATION_YES, DISTRIBUTION_SUB_TYPE_NAME, DISTRIBUTION_TYPE, DISTRIBUTION_TYPE_AIRLINE_INDIRECT, distributionTypeComboBoxDataList, droppableConditionDiv, DUTY_OR_FUNCTION_CODE_NAME, EQUIPMENT_TYPE_NAME, EXACT_MATCH_NO, EXACT_MATHCH_YES, FARE_BASIS_CODE_NAME, FARE_BRANDS_NAME, FARE_BUCKET_NAME, FARE_CATEGORY, FARE_CLASS_CARRIER_NAME, FARE_RULE_NAME, FARE_TARIFF_TYPE, FARE_TYPE_CODE, fareCategoryComboBoxDataList, fareTariffTypeComboBoxDataList, fareTypeComboBoxDataList, FIRST_PASSENGER_OCCURRENCE_NAME, FLIGHT_BOTH_DIRECTION_NAME, FLIGHT_DESTINATION_AIRPORT_NAME, FLIGHT_DESTINATION_CITY_NAME, FLIGHT_DURATION_MAX_NAME, FLIGHT_DURATION_MIN_NAME, FLIGHT_ORIGIN_AIRPORT_NAME, FLIGHT_ORIGIN_CITY_NAME, FLIGHT_TYPE, flightTypeComboBoxDataList, FREQUENT_FLYER_CODE_NAME, FREQUENT_FLYER_GRID_NAME, FREQUENT_FLYER_TIER_NAME, GEO_LOCATION_NAME, LAST_PASSENGER_OCCURRENCE_NAME, LENGTH_OF_STAY_NAME, LENGTH_OF_STAY_SEPARATOR, LOCATION_TYPE_AIRPORT, LOCATION_TYPE_CITY, OCCURRENCE_MAX_NAME, OCCURRENCE_MIN_NAME, OFFER_RESPONSIBLE_AIRLINE_NAME, OPERATING_MARKETING, operatingMarketingComboBoxDataList, PASSENGER_EXACT_MATCH_NAME, PASSENGER_NAME, PASSENGER_RANGE_GRID_NAME, PASSENGER_RANGE_MAX_NAME, PASSENGER_RANGE_MIN_NAME, PASSENGER_RANGE_NAME, PERIOD_TYPE_NAME, POINT_OFSALE_CODE_NAME, RBDCARRIER_NAME, RBDS_NAME, SALES_DATES_FROM_NAME, SALES_DATES_TO_NAME, SEAT_CHARACTERISTICS_NAME, SEAT_COLUMNS_NAME, SEAT_ROW_SEPARATOR, SEAT_ROWS_NAME, STATUS_NAME_NAME, TICKET_DESIGNATOR_NAME, TIME_BEFORE_DEPARTURE_D, TIME_BEFORE_DEPARTURE_H, TIME_BEFORE_DEPARTURE_HOURS_DAYS_NAME, TIME_BEFORE_DEPARTURE_MAX_NAME, TIME_BEFORE_DEPARTURE_MIN_NAME, transportFacilityService, TRAVEL_AGENCY_NAME, TRAVEL_AGENCY_NO, TRAVEL_AGENCY_YES, TRAVEL_PERIOD, TRAVEL_PERIOD_FROM_NAME, TRAVEL_PERIOD_TO_NAME, TRAVEL_PREFERENCE_RULE_BOOKING_PERIOD_NAME, travelLocationService, travelProviderService, unifiedUiAircraftInfoServiceFields inherited from class de.hybris.platform.unifieduibackoffice.widgets.merchandising.UnifiedUiWidgetController
COMMA_SEPARATOR, JUST_MESSAGEFields inherited from class org.zkoss.zk.ui.util.GenericAutowireComposer
_separator, application, applicationScope, arg, componentScope, desktop, desktopScope, execution, page, pageScope, param, requestScope, self, session, sessionScope, spaceOwner, spaceScopeFields inherited from class org.zkoss.zk.ui.util.GenericComposer
_applied -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected org.zkoss.zul.RowconstructServiceRow(AncillaryProduct ancillaryProduct) This method constructs the rowprotected voidcreateCondition(ConditionData conditionData) This method will call condition service to create condition and will handle exceptionprotected voidcreateCondition(String ruleCondition) This method will create conditionvoidprotected voidgetAncillaryProducts(Integer page) This method will get non atpco ancillary from prosvoidinitialize(org.zkoss.zk.ui.Component comp) protected voidThis method will construct list view in popupprotected voidThis method will initialize popupprotected ConditionDataThis method will populate condition dataprotected voidpopulateConditionDataToWidget(ConditionData condition) This method will call other methods to populate condition data to widgetprotected ConditionDatapopulateConditionRule(ConditionData conditionData) This method will used for populating all condition dataprotected voidpopulateConditionToWidget(ConditionData condition) This method will populate condition data widgetprotected voidpopulatePropertiesToWidget(ConditionData condition) This method will populate general properties to widgetprotected org.zkoss.zul.RowpopulateServiceRow(AncillaryProduct ancillaryProduct, String deleteImageIconWithPath, boolean disabled) This method populate the rowvoidrefresh()protected voidthis method will remove rows from serviceListGrid popupvoidsave()voidsearch()protected voidupdateCondition(ConditionData conditionData) This method will call condition service to update condition and will handle exceptionprotected booleanThis method will validate mandetory attributesMethods inherited from class de.hybris.platform.unifieduibackoffice.widgets.merchandising.CreateOrEditConditionController
checkConditionMultipleDropRestriction, createAccompanyingPassengerGridColumns, createaddAccompanyingPassengerRow, createAgeGridColumns, createAgeRow, createCellForAccompanyingPassengers, createCellForAge, createCellForFrequentFlyer, createCellForPassengerRange, createComboBoxList, createConditionLayout, createConditionRemoveButton, createDistributionChannelCondition, createFareBrandsCondition, createFareBucketCondition, createFareCategoryCondition, createFareClassCondition, createFareRuleCondition, createFareTariffCondition, createFlightCabinsCondition, createFlightCondition, createFlightDurationCondition, createFlightEquipmentTypeCondition, createFlightRBDCondition, createFrequentFlyerGridColumns, createFrequentFlyerRow, createPassengerCondition, createPassengerCountryOfCitizenshipCondition, createPassengerCountryOfResidenceCondition, createPassengerCustomerIndexScoreCondition, createPassengerFirstPassengerOccurrenceCondition, createPassengerLastPassengerOccurrenceCondition, createPassengerRangeGridColumns, createPassengerRangeRow, createSeatCharacteristicsCondition, createSeatRowsColumnsCondition, createTicketDesignatorCondition, createtravelPreferenceAdvancePurchaseReservationCondition, createTravelPreferenceBlackoutDatesCondition, createTravelPreferenceBookingPeriodCondition, createTravelPreferenceLengthOfStayCondition, createTravelPreferencePeriodTypeTravelPeriodCondition, createTravelPreferencePointOfSaleCondition, createTravelPreferenceSalesDatesCondition, createTravelPreferenceTimeBeforeDepartureCondition, createWeekComboBox, departurePeriodDesign, designDistributionChannel, getCellChildren, getLengthOfStayListObjects, getRowListObjects, populateDistributionChannelCondition, populateFareBrandsCondition, populateFareBucketCondition, populateFareCategoryCondition, populateFareClassCondition, populateFareRuleCondition, populateFareTariffCondition, populateFlightCabinsCondition, populateFlightCondition, populateFlightDurationCondition, populateFlightEquipmentTypeCondition, populateFlightRBDCondition, populatePassengerCondition, populatePassengerCountryOfCitizenshipCondition, populatePassengerCountryOfResidenceCondition, populatePassengerCustomerIndexScoreCondition, populatePassengerFirstPassengerOccurrenceCondition, populatePassengerLastPassengerOccurrenceCondition, populateSeatCharacteristicsCondition, populateSeatRowsColumnsCondition, populateTicketDesignatorCondition, populatetravelPreferenceAdvancePurchaseReservationCondition, populateTravelPreferenceBlackoutDatesCondition, populateTravelPreferenceBookingPeriodCondition, populateTravelPreferenceLengthOfStayCondition, populateTravelPreferencePeriodTypeTravelPeriodCondition, populateTravelPreferencePointOfSaleCondition, populateTravelPreferenceSalesDatesCondition, populateTravelPreferenceTimeBeforeDepartureCondition, travelPeriodDesignMethods inherited from class de.hybris.platform.unifieduibackoffice.widgets.merchandising.UnifiedUiWidgetController
createButton, createButton, createCell, createColumn, createCombobox, createComboBoxData, createDateBox, createDiv, createDoubleBox, createEditor, createGrid, createIntBox, createLabel, createTextBox, getCommaSeparateString, getNameValueMap, mseDistributionRuleCheck, parseDateInStringToDate, populateCombobox, selectComboBoxItem, tmcDistributionRuleCheck, updateHtmlBasedComponentMethods inherited from class com.hybris.cockpitng.util.DefaultWidgetController
doAfterCompose, doBeforeCompose, doBeforeComposeChildren, executeOperation, getDragAndDropStrategy, getLabel, getLabel, getModel, getValue, getWidgetDragAndDropStrategyRepository, getWidgetInstanceManager, getWidgetRoot, getWidgetSettings, getWidgetslot, getWidgetTitle, getWidgetUtils, initDragAndDropAwareness, initWidgetSetting, initWidgetSetting, initWidgetSetting, initWidgetSetting, initWidgetSetting, invokeListenerMethod, onSocketInput, preInitialize, sendOutput, sendOutputAfterOperation, sendOutputAfterOperation, sendOutputAfterOperation, setValue, setWidgetInstanceManager, setWidgetTitleMethods inherited from class com.hybris.cockpitng.util.ViewAnnotationAwareComposer
scanEventListenersMethods inherited from class org.zkoss.zk.ui.util.GenericAutowireComposer
alert, didActivate, getPage, willClone, willPassivateMethods inherited from class org.zkoss.zk.ui.util.GenericComposer
doCatch, doFinallyMethods inherited from class org.zkoss.zk.ui.event.GenericEventListener
bindComponent, getController, onEvent, unbindComponent
-
Field Details
-
CONDITION_TYPE
- See Also:
-
DELETE_IMAGE_ICON
- See Also:
-
ADD_IMAGE_ICON
- See Also:
-
COMMA_SEPARATED_REGEX
- See Also:
-
FLIGHT_RBD_CONDITION
- See Also:
-
FLIGHT_CABINS_CONDITION
- See Also:
-
FLIGHT_EQUIPMENT_TYPE_CONDITION
- See Also:
-
FLIGHT_DURATION_CONDITION
- See Also:
-
FLIGHT_CONDITION
- See Also:
-
SEAT_CHARACTERISTICS_CONDITION
- See Also:
-
SEAT_ROWS_COLUMNS_CONDITION
- See Also:
-
DISTRIBUTION_DISTRIBUTION_CHANNEL_CONDITION
- See Also:
-
FARE_BRANDS_CONDITION
- See Also:
-
FARE_FARE_BUCKET_CONDITION
- See Also:
-
FARE_FARE_RULE_CONDITION
- See Also:
-
FARE_FARE_CATEGORY_CONDITION
- See Also:
-
FARE_FARE_TARIFF_CONDITION
- See Also:
-
FARE_TICKET_DESIGNATOR_CONDITION
- See Also:
-
FARE_FARE_CLASS_CONDITION
- See Also:
-
TRAVEL_PREFERENCE_PERIOD_TYPE_TRAVEL_PERIOD_CONDITION
- See Also:
-
TRAVEL_PREFERENCE_TIME_BEFORE_DEPARTURE_CONDITION
- See Also:
-
TRAVEL_PREFERENCE_ADVANCE_PURCHASE_RESERVATION_CONDITION
- See Also:
-
TRAVEL_PREFERENCE_SALES_DATES_CONDITION
- See Also:
-
TRAVEL_PREFERENCE_BLACKOUT_DATES_CONDITION
- See Also:
-
TRAVEL_PREFERENCE_LENGTH_OF_STAY_CONDITION
- See Also:
-
TRAVEL_PREFERENCE_BOOKING_PERIOD_CONDITION
- See Also:
-
TRAVEL_PREFERENCE_POINT_OF_SALE_CONDITION
- See Also:
-
PASSENGER_COUNTRY_OF_CITIZENSHIP_CONDITION
- See Also:
-
PASSENGER_COUNTRY_OF_RESIDENCE_CONDITION
- See Also:
-
PASSENGER_FIRST_PASSENGER_OCCURRENCE_CONDITION
- See Also:
-
PASSENGER_LAST_PASSENGER_OCCURRENCE_CONDITION
- See Also:
-
PASSENGER_CUSTOMER_INDEX_SCORE_CONDITION
- See Also:
-
PASSENGER_PASSENGER_CONDITION
- See Also:
-
SEARCH_FILTER_MAP_MODEL
- See Also:
-
-
Constructor Details
-
CreateOrEditApplicabilityConditionController
public CreateOrEditApplicabilityConditionController()
-
-
Method Details
-
initialize
public void initialize(org.zkoss.zk.ui.Component comp) - Overrides:
initializein classcom.hybris.cockpitng.util.DefaultWidgetController
-
populateConditionDataToWidget
This method will call other methods to populate condition data to widget- Parameters:
condition-
-
populateConditionToWidget
This method will populate condition data widget- Parameters:
condition-
-
populatePropertiesToWidget
This method will populate general properties to widget- Parameters:
condition-
-
createOrEditApplicabilityConditionRequest
-
refresh
public void refresh() -
save
public void save() -
search
public void search() -
clearFilter
public void clearFilter() -
createCondition
This method will create condition- Parameters:
ruleCondition- the condition name
-
createCondition
This method will call condition service to create condition and will handle exception- Parameters:
conditionData- condition data object
-
updateCondition
This method will call condition service to update condition and will handle exception- Parameters:
conditionData- condition data object
-
populateConditionData
This method will populate condition data- Returns:
- condition data object
-
populateConditionRule
This method will used for populating all condition data- Parameters:
conditionData- condition data- Returns:
- condition data object
-
validateConditionData
protected boolean validateConditionData()This method will validate mandetory attributes- Returns:
-
initializeServicePopup
protected void initializeServicePopup()This method will initialize popup -
initializeOrUpdateServiceGridList
protected void initializeOrUpdateServiceGridList()This method will construct list view in popup -
RemoveRows
protected void RemoveRows()this method will remove rows from serviceListGrid popup -
constructServiceRow
This method constructs the row- Parameters:
ancillaryProduct- the ancillaryProduct- Returns:
- the row
-
populateServiceRow
protected org.zkoss.zul.Row populateServiceRow(AncillaryProduct ancillaryProduct, String deleteImageIconWithPath, boolean disabled) This method populate the row- Parameters:
ancillaryProduct- the ancillaryProductdeleteImageIconWithPath- the delete image icon with pathdisabled-- Returns:
- the row
-
getAncillaryProducts
This method will get non atpco ancillary from pros- Parameters:
page- the page to use for server pagination
-