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>

public class BucketListController extends UnifiedUiWidgetController
The controller calls handles the input of Bucket List widget
See Also:
  • Field Details

  • Constructor Details

    • BucketListController

      public BucketListController()
  • Method Details

    • initialize

      public void initialize(org.zkoss.zk.ui.Component comp)
      Overrides:
      initialize in class com.hybris.cockpitng.util.DefaultWidgetController
    • populateSearchFilterValues

      protected void populateSearchFilterValues()
      This method will initialize as well as update search filter
    • getApiUserByUsername

      protected APIUserModel getApiUserByUsername(String username)
      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

      public final void getBucketList(Object object)
    • getBuckets

      protected void getBuckets(Object input)
      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 Bucket
      editImageIconWithPath - the edit image icon with path
      deleteImageIconWithPath - the delete image icon with path
      Returns:
      the row
    • removeBucketConfirmMessageBox

      protected void removeBucketConfirmMessageBox(Bucket bucket)
      This method will open confirm message box, on confirmation will call remove bucket.
      Parameters:
      bucket - the bucket
    • removeBucket

      protected void removeBucket(Bucket bucket)
      This method will call remove bucket method, will handle the exception and accordingly notify, show message box to user
      Parameters:
      bucket - the bucket