Class BucketListController
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.farebuckets.BucketListController
- 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>
The controller calls handles the input of Bucket List widget
- See Also:
-
Field Summary
FieldsFields inherited from class de.hybris.platform.unifieduibackoffice.widgets.merchandising.UnifiedUiWidgetController
COMMA_SEPARATORFields 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.RowconstructRow(Bucket bucket, String editImageIconWithPath, String deleteImageIconWithPath) This method constructs the rowvoidprotected APIUserModelgetApiUserByUsername(String username) Finds the api user by username.final voidgetBucketList(Object object) protected voidgetBuckets(Object input) Gets the list of buckets, filtered by username and bucketCode.voidinitialize(org.zkoss.zk.ui.Component comp) protected voidThis method will initialize as well as update search filterprotected voidremoveBucket(Bucket bucket) This method will call remove bucket method, will handle the exception and accordingly notify, show message box to userprotected voidremoveBucketConfirmMessageBox(Bucket bucket) This method will open confirm message box, on confirmation will call remove bucket.voidsearch()Methods 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
-
SEARCH_FILTER_MAP_MODEL
- See Also:
-
GROUP_BOX_OPEN_MODEL_ATTRIBUTE
- See Also:
-
-
Constructor Details
-
BucketListController
public BucketListController()
-
-
Method Details
-
initialize
public void initialize(org.zkoss.zk.ui.Component comp) - Overrides:
initializein classcom.hybris.cockpitng.util.DefaultWidgetController
-
populateSearchFilterValues
protected void populateSearchFilterValues()This method will initialize as well as update search filter -
getApiUserByUsername
Finds the api user by username.- Parameters:
username- the username- Returns:
- the api user by username
-
search
public void search() -
clearFilter
public void clearFilter() -
getBucketList
-
getBuckets
Gets the list of buckets, filtered by username and bucketCode.- Parameters:
input- the input
-
createBucket
public void createBucket() -
constructRow
protected org.zkoss.zul.Row constructRow(Bucket bucket, String editImageIconWithPath, String deleteImageIconWithPath) This method constructs the row- Parameters:
bucket- the BucketeditImageIconWithPath- the edit image icon with pathdeleteImageIconWithPath- the delete image icon with path- Returns:
- the row
-
removeBucketConfirmMessageBox
This method will open confirm message box, on confirmation will call remove bucket.- Parameters:
bucket- the bucket
-
removeBucket
This method will call remove bucket method, will handle the exception and accordingly notify, show message box to user- Parameters:
bucket- the bucket
-