@Controller(value="blAdminProductController") @RequestMapping(value="/product") public class AdminProductController extends AdminBasicEntityController
Product entity. Editing a product requires custom criteria in order to properly
invoke the ProductCustomPersistenceHandlerProductCustomPersistenceHandler}| Modifier and Type | Field and Description |
|---|---|
protected CatalogService |
catalogService |
protected static String |
SECTION_KEY |
hideTopLevelErrors, LOG, sandBoxHelperadminNavigationService, adminRemoteSecurityService, CURRENT_ADMIN_MODULE_ATTRIBUTE_NAME, CURRENT_ADMIN_SECTION_ATTRIBUTE_NAME, entityConfiguration, entityFormValidator, extensionManager, FILTER_VALUE_SEPARATOR, FILTER_VALUE_SEPARATOR_REGEX, formService, mainEntityActionsExtensionManager, service| Constructor and Description |
|---|
AdminProductController() |
| Modifier and Type | Method and Description |
|---|---|
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 |
modifyAddEntityForm(EntityForm ef,
Map<String,String> pathVars) |
protected void |
modifyEntityForm(EntityForm ef,
Map<String,String> pathVars) |
protected String |
showAddAdditionalSku(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
String id,
Map<String,String> pathVars) |
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,
org.springframework.ui.Model model,
String id,
String collectionItemId,
Map<String,String> pathVars,
EntityForm entityForm) |
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) |
protected String |
showViewUpdateCollection(javax.servlet.http.HttpServletRequest request,
org.springframework.ui.Model model,
Map<String,String> pathVars,
String id,
String collectionField,
String collectionItemId,
String alternateId,
String modalHeaderType,
EntityForm entityForm,
Entity entity) |
String |
viewEntityForm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
Map<String,String> pathVars,
String id) |
addAddActionIfAllowed, addCollectionItem, addEntity, buildDirtyList, getCollectionFieldRecords, getCollectionValueDetails, initBinder, isAddActionAllowed, populateJsonValidationErrors, removeCollectionItem, removeCollectionItem, removeEntity, saveEntity, saveEntityJson, showUpdateCollectionItem, showViewCollectionItem, showViewCollectionItem, showViewUpdateCollection, showViewUpdateCollection, showViewUpdateCollection, translateErrorMessage, updateCollectionItem, updateCollectionItem, updateCollectionItemSequence, updateCollectionItemSequence, viewAddEntityForm, viewCollectionItemDetails, viewEntityListattachSectionSpecificInfo, attachSectionSpecificInfo, extractDynamicFormFields, getAddEntityTypes, getBlankDynamicFieldTemplateForm, getBlankDynamicFieldTemplateForm, getBlankDynamicMasterFieldGroupTemplateForm, getBlankDynamicMasterFieldGroupTemplateForm, getClassNameForSection, getCollectionListGrid, getCollectionListGrid, getCriteria, getDefaultEntityType, getDynamicFieldTemplateForm, getDynamicForm, getEntityForm, getEntityForm, getMaxIndex, getSectionCrumbs, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSortDirections, getSortPropertyNames, getStartIndex, setModelAttributesprotected static final String SECTION_KEY
protected CatalogService catalogService
protected String getSectionKey(Map<String,String> pathVars)
getSectionKey in class AdminAbstractControllerpublic String[] getSectionCustomCriteria()
getSectionCustomCriteria in class AdminAbstractControllerprotected void modifyEntityForm(EntityForm ef, Map<String,String> pathVars)
modifyEntityForm in class AdminAbstractControllerprotected void modifyAddEntityForm(EntityForm ef, Map<String,String> pathVars)
modifyAddEntityForm in class AdminAbstractControllerprotected String showAddAdditionalSku(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, String id, Map<String,String> pathVars) throws Exception
Exceptionprotected 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 org.broadleafcommerce.common.exception.ServiceException
buildAddCollectionItemModel in class AdminBasicEntityControllerorg.broadleafcommerce.common.exception.ServiceExceptionprotected String showUpdateAdditionalSku(javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model model, String id, String collectionItemId, Map<String,String> pathVars, EntityForm entityForm) throws Exception
Exception@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
showUpdateCollectionItem in class AdminBasicEntityControllerExceptionprotected String showViewUpdateCollection(javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model model, Map<String,String> pathVars, String id, String collectionField, String collectionItemId, String alternateId, String modalHeaderType, EntityForm entityForm, Entity entity) throws org.broadleafcommerce.common.exception.ServiceException
showViewUpdateCollection in class AdminBasicEntityControllerorg.broadleafcommerce.common.exception.ServiceException@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
showAddCollectionItem in class AdminBasicEntityControllerException@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
viewEntityForm in class AdminBasicEntityControllerExceptionCopyright © 2015. All rights reserved.