Class AdminProductTranslationExtensionHandler
java.lang.Object
org.broadleafcommerce.common.extension.AbstractExtensionHandler
org.broadleafcommerce.openadmin.web.controller.AbstractAdminTranslationControllerExtensionHandler
org.broadleafcommerce.admin.web.controller.extension.AdminProductTranslationExtensionHandler
- All Implemented Interfaces:
org.broadleafcommerce.common.extension.ExtensionHandler,AdminTranslationControllerExtensionHandler
@Component("blAdminProductTranslationExtensionHandler")
public class AdminProductTranslationExtensionHandler
extends AbstractAdminTranslationControllerExtensionHandler
- Author:
- Andre Azzolini (apazzolini)
-
Field Summary
FieldsFields inherited from class org.broadleafcommerce.common.extension.AbstractExtensionHandler
enabled, priority -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.broadleafcommerce.common.extension.ExtensionResultStatusTypeIf we are trying to translate a field on Product that starts with "defaultSku.", we really want to associate the translation with Sku, its associated id, and the property name without "defaultSku."protected booleanvoidinit()Methods inherited from class org.broadleafcommerce.common.extension.AbstractExtensionHandler
getPriority, isEnabled, setEnabled, setPriorityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.broadleafcommerce.common.extension.ExtensionHandler
getPriority, isEnabled
-
Field Details
-
catalogService
-
extensionManager
-
-
Constructor Details
-
AdminProductTranslationExtensionHandler
public AdminProductTranslationExtensionHandler()
-
-
Method Details
-
init
@PostConstruct public void init() -
getTranslationEnabled
protected boolean getTranslationEnabled() -
applyTransformation
public org.broadleafcommerce.common.extension.ExtensionResultStatusType applyTransformation(TranslationForm form) If we are trying to translate a field on Product that starts with "defaultSku.", we really want to associate the translation with Sku, its associated id, and the property name without "defaultSku."- Specified by:
applyTransformationin interfaceAdminTranslationControllerExtensionHandler- Overrides:
applyTransformationin classAbstractAdminTranslationControllerExtensionHandler
-