org.broadleafcommerce.admin.web.controller
Class AdminProductTranslationExtensionHandler

java.lang.Object
  extended by org.broadleafcommerce.common.extension.AbstractExtensionHandler
      extended by org.broadleafcommerce.admin.web.controller.AdminProductTranslationExtensionHandler
All Implemented Interfaces:
ExtensionHandler, AdminTranslationControllerExtensionHandler

@Component(value="blAdminProductTranslationExtensionHandler")
public class AdminProductTranslationExtensionHandler
extends AbstractExtensionHandler
implements AdminTranslationControllerExtensionHandler

Author:
Andre Azzolini (apazzolini)

Field Summary
protected  CatalogService catalogService
           
protected  AdminTranslationControllerExtensionManager extensionManager
           
 
Fields inherited from class org.broadleafcommerce.common.extension.AbstractExtensionHandler
enabled, priority
 
Constructor Summary
AdminProductTranslationExtensionHandler()
           
 
Method Summary
 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."
 void init()
           
 
Methods inherited from class org.broadleafcommerce.common.extension.AbstractExtensionHandler
getPriority, isEnabled, setEnabled, setPriority
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.broadleafcommerce.common.extension.ExtensionHandler
getPriority, isEnabled
 

Field Detail

catalogService

protected CatalogService catalogService

extensionManager

protected AdminTranslationControllerExtensionManager extensionManager
Constructor Detail

AdminProductTranslationExtensionHandler

public AdminProductTranslationExtensionHandler()
Method Detail

init

@PostConstruct
public void init()

applyTransformation

public 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:
applyTransformation in interface AdminTranslationControllerExtensionHandler


Copyright © 2013. All Rights Reserved.