Class ClassificationAttributesExportRenderer
java.lang.Object
com.hybris.cockpitng.widgets.common.AbstractWidgetComponentRenderer<org.zkoss.zk.ui.Component,com.hybris.cockpitng.config.jaxb.wizard.ViewType,Map<String,String>>
com.hybris.cockpitng.widgets.configurableflow.renderer.DefaultCustomViewRenderer
com.hybris.backoffice.renderer.attributeschooser.AbstractAttributesExportRenderer<ClassAttributeAssignmentModel>
com.hybris.backoffice.renderer.attributeschooser.ClassificationAttributesExportRenderer
- All Implemented Interfaces:
com.hybris.cockpitng.widgets.common.NotifyingWidgetComponentRenderer<org.zkoss.zk.ui.Component,,com.hybris.cockpitng.config.jaxb.wizard.ViewType, Map<String, String>> com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zk.ui.Component,com.hybris.cockpitng.config.jaxb.wizard.ViewType, Map<String, String>>
- Direct Known Subclasses:
ClassificationAttributesWithoutLocalizationRenderer
public class ClassificationAttributesExportRenderer
extends AbstractAttributesExportRenderer<ClassAttributeAssignmentModel>
Renders components that allow to pick a list of classification attributes for given products.
Displays a list of available classification attributes of given Products, and a second list of selected attributes.
Mandatory attributes are selected by default. Current implementation only allows to select classification attributes
of all selected products. Params:
- "classificationAttributesFormModelKey" - defines where in model attributes form is
AttributeChooserForm- required - "itemsToExport" - defines spel to get items from model
AttributeChooserForm- required - "includeAllSupported" - defines if include all should be available
- "excludeLocalizedNodes" - defines if language nodes should be available. For example: if set to true then localized node will be visible, but the node will not have any children
- "emptyAttributesMessageKey" - defines message key for label displayed in case there are no attributes to select.
- "retrieveMode" - defines in what way classification classes are retrieved. There are 3 modes:
- "ITEMS_INTERSECTION" - default value. In this mode displayed classification classes are retrieved from given items and intersected - it means that only common classes are displayed.
- "ITEMS_UNION" - in this mode displayed classification classes are retrieved from given items - all classification classes from given items are then displayed.
- "ALL" - in this mode all classification classes from the system are displayed - not only from given items
setSupportedAttributesPredicate(Predicate)-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class com.hybris.backoffice.renderer.attributeschooser.AbstractAttributesExportRenderer
attributesChooserRenderer, cockpitLocaleService, notificationService, PARAM_INCLUDE_ALL_SUPPORTED, permissionFacade -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected Stringprotected com.hybris.backoffice.attributechooser.AttributesChooserConfigcreateAttributesChooserConfig(com.hybris.cockpitng.engine.WidgetInstanceManager wim, Map<String, String> params) protected com.hybris.backoffice.attributechooser.AttributeChooserFormgetAttributesForm(com.hybris.cockpitng.engine.WidgetInstanceManager wim, Map<String, String> parameters) getCommonClassificationClasses(Collection<ItemModel> items, String retrieveMode) com.hybris.cockpitng.labels.LabelServiceprotected StringgetRetrieveMode(Map<String, String> params) protected booleanisLocalized(ClassAttributeAssignmentModel classificationAttribute) protected booleanisSupported(ClassAttributeAssignmentModel classificationAttribute) protected voidpopulateAttributesChooserForm(com.hybris.backoffice.attributechooser.AttributeChooserForm attributesForm, List<ItemModel> items, String retrieveMode) Deprecated, for removal: This API element is subject to removal in a future version.since 2005.protected voidpopulateAttributesChooserForm(com.hybris.backoffice.attributechooser.AttributeChooserForm attributesForm, List<ItemModel> items, String retrieveMode, Map<String, String> params) voidrender(org.zkoss.zk.ui.Component parent, com.hybris.cockpitng.config.jaxb.wizard.ViewType customView, Map<String, String> params, com.hybris.cockpitng.dataaccess.facades.type.DataType dataType, com.hybris.cockpitng.engine.WidgetInstanceManager wim) voidsetBlacklistedClassificationPredicate(Predicate<ClassificationSystemModel> blacklistedClassificationPredicate) voidsetExcelClassificationService(ExcelClassificationService excelClassificationService) voidsetLabelService(com.hybris.cockpitng.labels.LabelService labelService) voidsetSupportedAttributesPredicate(Predicate<ClassAttributeAssignmentModel> supportedAttributePredicate) Methods inherited from class com.hybris.backoffice.renderer.attributeschooser.AbstractAttributesExportRenderer
createAttributeWithLocalizedChildren, getAttributesChooserRenderer, getCockpitLocaleService, getNotificationService, getPermissionFacade, getSupportedLanguages, setAttributesChooserRenderer, setCockpitLocaleService, setNotificationService, setPermissionFacadeMethods inherited from class com.hybris.cockpitng.widgets.common.AbstractWidgetComponentRenderer
addRendererListener, fireComponentRendered, fireComponentRendered, fireComponentRendered, removeRendererListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hybris.cockpitng.widgets.common.WidgetComponentRenderer
render
-
Field Details
-
PARAM_ATTRIBUTES_FORM
- See Also:
-
PARAM_ITEMS_TO_EXPORT
- See Also:
-
PARAM_EMPTY_ATTRIBUTES_MESSAGE_KEY
- See Also:
-
PARAM_RETRIEVE_MODE
- See Also:
-
PARAM_EXCLUDE_LOCALIZED_NODES
- See Also:
-
RETRIEVE_MODE_ITEMS_INTERSECTION
- See Also:
-
RETRIEVE_MODE_ITEMS_UNION
- See Also:
-
RETRIEVE_MODE_ALL
- See Also:
-
DEFAULT_PARAM_ATTRIBUTES_FORM
- See Also:
-
-
Constructor Details
-
ClassificationAttributesExportRenderer
public ClassificationAttributesExportRenderer()
-
-
Method Details
-
render
-
populateAttributesChooserForm
@Deprecated(since="2005", forRemoval=true) protected void populateAttributesChooserForm(com.hybris.backoffice.attributechooser.AttributeChooserForm attributesForm, List<ItemModel> items, String retrieveMode) Deprecated, for removal: This API element is subject to removal in a future version. -
populateAttributesChooserForm
-
filterByPermissionCheck
protected Map<ClassificationSystemVersionModel,List<ClassificationClassModel>> filterByPermissionCheck(Map<ClassificationSystemVersionModel, List<ClassificationClassModel>> map) -
getCommonClassificationClasses
protected Map<ClassificationSystemVersionModel,List<ClassificationClassModel>> getCommonClassificationClasses(Collection<ItemModel> items, String retrieveMode) -
getRetrieveMode
-
isSupported
-
getAttributesForm
-
getItems
-
createAttributeQualifier
- Specified by:
createAttributeQualifierin classAbstractAttributesExportRenderer<ClassAttributeAssignmentModel>
-
getSupportedAttributesPredicate
-
setSupportedAttributesPredicate
public void setSupportedAttributesPredicate(Predicate<ClassAttributeAssignmentModel> supportedAttributePredicate) -
createAttributesChooserConfig
protected com.hybris.backoffice.attributechooser.AttributesChooserConfig createAttributesChooserConfig(com.hybris.cockpitng.engine.WidgetInstanceManager wim, Map<String, String> params) - Overrides:
createAttributesChooserConfigin classAbstractAttributesExportRenderer<ClassAttributeAssignmentModel>
-
createAttributeName
- Specified by:
createAttributeNamein classAbstractAttributesExportRenderer<ClassAttributeAssignmentModel>
-
isLocalized
- Specified by:
isLocalizedin classAbstractAttributesExportRenderer<ClassAttributeAssignmentModel>
-
getExcelClassificationService
-
setExcelClassificationService
-
getLabelService
public com.hybris.cockpitng.labels.LabelService getLabelService() -
setLabelService
public void setLabelService(com.hybris.cockpitng.labels.LabelService labelService) -
getBlacklistedClassificationPredicate
-
setBlacklistedClassificationPredicate
public void setBlacklistedClassificationPredicate(Predicate<ClassificationSystemModel> blacklistedClassificationPredicate)
-