Class AbstractSynchronizationAction

    • Constructor Detail

      • AbstractSynchronizationAction

        public AbstractSynchronizationAction()
    • Method Detail

      • getSyncOKImg

        protected abstract java.lang.String getSyncOKImg()
      • getSyncNotOKImg

        protected abstract java.lang.String getSyncNotOKImg()
      • getSyncInitImg

        protected abstract java.lang.String getSyncInitImg()
      • getSyncBusyImg

        protected java.lang.String getSyncBusyImg()
      • getTypeRestriction

        protected java.lang.String getTypeRestriction()
      • getImageURI

        public java.lang.String getImageURI​(ListViewAction.Context context)
        Description copied from interface: ListViewAction
        Gets the image URI which represents the action button.
        Returns:
        URI of the image to represent the action button
      • getContextPopup

        public org.zkoss.zul.Menupopup getContextPopup​(ListViewAction.Context context)
        Description copied from interface: ListViewAction
        Gets the context popup of the action button.
        Returns:
        the popup which should appear when the user right-clicks the action button or null if no popup is available
      • getTypeService

        protected TypeService getTypeService()
      • getPossiblyAffectedObjects

        protected java.util.Set<TypedObject> getPossiblyAffectedObjects​(java.util.Collection<TypedObject> sourceObjects)
        Gets all objects that could be affected by synchronization process.
      • sendItemChangeEvents

        protected void sendItemChangeEvents​(java.util.Collection<TypedObject> updatedObjects)
      • containsBaseProduct

        protected boolean containsBaseProduct​(java.util.Collection<TypedObject> updatedObjects)
        Method checks whether passed collection contains at least one object which is baseProduct (has variants)
        Parameters:
        updatedObjects - collection of updated objects
        Returns:
        true if at least one object is baseProduct
      • getTooltip

        public java.lang.String getTooltip​(ListViewAction.Context context)
        Description copied from interface: ListViewAction
        Gets the tooltip of the action button.
        Returns:
        the tooltip string which should appear when the user hovers over the action button
      • getPopup

        public org.zkoss.zul.Menupopup getPopup​(ListViewAction.Context context)
        Description copied from interface: ListViewAction
        Gets the popup of the action button.
        Returns:
        the popup which should appear when the user clicks the action button or null if no popup is available