@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 static String |
SECTION_KEY |
LOGadminNavigationService, 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 |
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,
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,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
String id,
String collectionItemId,
Map<String,String> pathVars) |
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) |
addAddActionIfAllowed, addCollectionItem, addEntity, getCollectionFieldRecords, getCollectionValueDetails, initBinder, isAddActionAllowed, removeCollectionItem, removeEntity, saveEntity, showViewCollectionItem, showViewUpdateCollection, showViewUpdateCollection, updateCollectionItem, updateCollectionItemSequence, viewAddEntityForm, viewCollectionItemDetails, viewEntityListattachSectionSpecificInfo, attachSectionSpecificInfo, extractDynamicFormFields, getAddEntityTypes, getBlankDynamicFieldTemplateForm, getBlankDynamicFieldTemplateForm, getClassNameForSection, getCollectionListGrid, getCollectionListGrid, getCriteria, getDefaultEntityType, getDynamicFieldTemplateForm, getDynamicForm, getEntityForm, getMaxIndex, getSectionCrumbs, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSortDirections, getSortPropertyNames, getStartIndex, setModelAttributesaddDeepLink, getContextPath, isAjaxRequest, jsonResponseprotected static final String SECTION_KEY
protected String getSectionKey(Map<String,String> pathVars)
getSectionKey in class AdminAbstractControllerpublic String[] getSectionCustomCriteria()
getSectionCustomCriteria 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 ServiceException
buildAddCollectionItemModel in class AdminBasicEntityControllerServiceExceptionprotected String showUpdateAdditionalSku(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, String id, String collectionItemId, Map<String,String> pathVars) 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 AdminBasicEntityControllerException@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 AdminBasicEntityControllerExceptionprotected void removeRequiredValidation(EntityForm entityForm)
entityForm - Copyright © 2014. All Rights Reserved.