org.broadleafcommerce.admin.web.controller.entity
Class AdminProductController
java.lang.Object
org.broadleafcommerce.common.web.controller.BroadleafAbstractController
org.broadleafcommerce.openadmin.web.controller.AdminAbstractController
org.broadleafcommerce.openadmin.web.controller.entity.AdminBasicEntityController
org.broadleafcommerce.admin.web.controller.entity.AdminProductController
@Controller(value="blAdminProductController")
@RequestMapping(value="/product")
public class AdminProductController
- extends AdminBasicEntityController
Handles admin operations for the Product entity. Editing a product requires custom criteria in order to properly
invoke the ProductCustomPersistenceHandler
- Author:
- Andre Azzolini (apazzolini)
- See Also:
ProductCustomPersistenceHandler}
|
Method Summary |
protected String |
buildAddCollectionItemModel(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
String id,
String collectionField,
String sectionKey,
Property collectionProperty,
FieldMetadata md,
PersistencePackageRequest ppr,
EntityForm entityForm,
Entity entity)
|
String[] |
getSectionCustomCriteria()
|
protected String |
getSectionKey(Map<String,String> pathVars)
|
protected void |
removeRequiredValidation(EntityForm entityForm)
Clears out any required validation on the fields within an entity form. |
protected String |
showAddAdditionalSku(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
String id)
|
String |
showAddCollectionItem(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
Map<String,String> pathVars,
String id,
String collectionField,
org.springframework.util.MultiValueMap<String,String> requestParams)
|
protected String |
showUpdateAdditionalSku(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
String id,
String collectionItemId)
|
String |
showUpdateCollectionItem(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
Map<String,String> pathVars,
String id,
String collectionField,
String collectionItemId)
|
String |
viewEntityForm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
Map<String,String> pathVars,
String id)
|
| Methods inherited from class org.broadleafcommerce.openadmin.web.controller.entity.AdminBasicEntityController |
addCollectionItem, addEntity, getCollectionFieldRecords, initBinder, removeCollectionItem, removeEntity, saveEntity, showSelectCollectionItem, showViewCollectionItem, showViewUpdateCollection, showViewUpdateCollection, updateCollectionItem, updateCollectionItemSequence, viewAddEntityForm, viewCollectionItemDetails, viewEntityList |
| Methods inherited from class org.broadleafcommerce.openadmin.web.controller.AdminAbstractController |
attachSectionSpecificInfo, getAddEntityTypes, getBlankDynamicFieldTemplateForm, getClassNameForSection, getCollectionListGrid, getCriteria, getDefaultEntityType, getDynamicFieldTemplateForm, getDynamicForm, getMaxIndex, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSortDirections, getSortPropertyNames, getStartIndex, setModelAttributes |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SECTION_KEY
protected static final String SECTION_KEY
- See Also:
- Constant Field Values
AdminProductController
public AdminProductController()
getSectionKey
protected String getSectionKey(Map<String,String> pathVars)
- Overrides:
getSectionKey in class AdminAbstractController
getSectionCustomCriteria
public String[] getSectionCustomCriteria()
- Overrides:
getSectionCustomCriteria in class AdminAbstractController
showAddAdditionalSku
protected String showAddAdditionalSku(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
String id)
throws Exception
- Throws:
Exception
buildAddCollectionItemModel
protected String buildAddCollectionItemModel(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
String id,
String collectionField,
String sectionKey,
Property collectionProperty,
FieldMetadata md,
PersistencePackageRequest ppr,
EntityForm entityForm,
Entity entity)
throws ServiceException
- Overrides:
buildAddCollectionItemModel in class AdminBasicEntityController
- Throws:
ServiceException
showUpdateAdditionalSku
protected String showUpdateAdditionalSku(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
String id,
String collectionItemId)
throws Exception
- Throws:
Exception
showUpdateCollectionItem
@RequestMapping(value="/{id}/{collectionField:.*}/{collectionItemId}",
method=GET)
public String showUpdateCollectionItem(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
@PathVariable
Map<String,String> pathVars,
@PathVariable(value="id")
String id,
@PathVariable(value="collectionField")
String collectionField,
@PathVariable(value="collectionItemId")
String collectionItemId)
throws Exception
- Overrides:
showUpdateCollectionItem in class AdminBasicEntityController
- Throws:
Exception
showAddCollectionItem
@RequestMapping(value="/{id}/{collectionField}/add",
method=GET)
public String showAddCollectionItem(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
@PathVariable
Map<String,String> pathVars,
@PathVariable(value="id")
String id,
@PathVariable(value="collectionField")
String collectionField,
@RequestParam
org.springframework.util.MultiValueMap<String,String> requestParams)
throws Exception
- Overrides:
showAddCollectionItem in class AdminBasicEntityController
- Throws:
Exception
viewEntityForm
@RequestMapping(value="/{id}",
method=GET)
public String viewEntityForm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
@PathVariable
Map<String,String> pathVars,
@PathVariable(value="id")
String id)
throws Exception
- Overrides:
viewEntityForm in class AdminBasicEntityController
- Throws:
Exception
removeRequiredValidation
protected void removeRequiredValidation(EntityForm entityForm)
- Clears out any required validation on the fields within an entity form. Used for additional Skus since none of those
fields should be required.
- Parameters:
entityForm -
Copyright © 2013. All Rights Reserved.