@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 java.lang.String |
SECTION_KEY |
adminNavigationService, adminRemoteSecurityService, entityConfiguration, entityFormValidator, formService, service| Constructor and Description |
|---|
AdminProductController() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
buildAddCollectionItemModel(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
java.lang.String id,
java.lang.String collectionField,
java.lang.String sectionKey,
Property collectionProperty,
FieldMetadata md,
PersistencePackageRequest ppr,
EntityForm entityForm,
Entity entity) |
java.lang.String[] |
getSectionCustomCriteria() |
protected java.lang.String |
getSectionKey(java.util.Map<java.lang.String,java.lang.String> pathVars) |
protected void |
removeRequiredValidation(EntityForm entityForm)
Clears out any required validation on the fields within an entity form.
|
protected java.lang.String |
showAddAdditionalSku(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
java.lang.String id) |
java.lang.String |
showAddCollectionItem(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
java.util.Map<java.lang.String,java.lang.String> pathVars,
java.lang.String id,
java.lang.String collectionField,
org.springframework.util.MultiValueMap<java.lang.String,java.lang.String> requestParams) |
protected java.lang.String |
showUpdateAdditionalSku(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
java.lang.String id,
java.lang.String collectionItemId) |
java.lang.String |
showUpdateCollectionItem(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
java.util.Map<java.lang.String,java.lang.String> pathVars,
java.lang.String id,
java.lang.String collectionField,
java.lang.String collectionItemId) |
java.lang.String |
viewEntityForm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
java.util.Map<java.lang.String,java.lang.String> pathVars,
java.lang.String id) |
addCollectionItem, addEntity, getCollectionFieldRecords, initBinder, removeCollectionItem, removeEntity, saveEntity, showSelectCollectionItem, showViewCollectionItem, showViewUpdateCollection, showViewUpdateCollection, updateCollectionItem, updateCollectionItemSequence, viewAddEntityForm, viewCollectionItemDetails, viewEntityListattachSectionSpecificInfo, getAddEntityTypes, getBlankDynamicFieldTemplateForm, getClassNameForSection, getCollectionListGrid, getCriteria, getDefaultEntityType, getDynamicFieldTemplateForm, getDynamicForm, getMaxIndex, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSortDirections, getSortPropertyNames, getStartIndex, setModelAttributesgetContextPath, isAjaxRequestprotected static final java.lang.String SECTION_KEY
protected java.lang.String getSectionKey(java.util.Map<java.lang.String,java.lang.String> pathVars)
getSectionKey in class AdminAbstractControllerpublic java.lang.String[] getSectionCustomCriteria()
getSectionCustomCriteria in class AdminAbstractControllerprotected java.lang.String showAddAdditionalSku(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
java.lang.String id)
throws java.lang.Exception
java.lang.Exceptionprotected java.lang.String buildAddCollectionItemModel(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
java.lang.String id,
java.lang.String collectionField,
java.lang.String sectionKey,
Property collectionProperty,
FieldMetadata md,
PersistencePackageRequest ppr,
EntityForm entityForm,
Entity entity)
throws ServiceException
buildAddCollectionItemModel in class AdminBasicEntityControllerServiceExceptionprotected java.lang.String showUpdateAdditionalSku(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
java.lang.String id,
java.lang.String collectionItemId)
throws java.lang.Exception
java.lang.Exception@RequestMapping(value="/{id}/{collectionField:.*}/{collectionItemId}",
method=GET)
public java.lang.String showUpdateCollectionItem(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
@PathVariable
java.util.Map<java.lang.String,java.lang.String> pathVars,
@PathVariable(value="id")
java.lang.String id,
@PathVariable(value="collectionField")
java.lang.String collectionField,
@PathVariable(value="collectionItemId")
java.lang.String collectionItemId)
throws java.lang.Exception
showUpdateCollectionItem in class AdminBasicEntityControllerjava.lang.Exception@RequestMapping(value="/{id}/{collectionField}/add",
method=GET)
public java.lang.String showAddCollectionItem(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
@PathVariable
java.util.Map<java.lang.String,java.lang.String> pathVars,
@PathVariable(value="id")
java.lang.String id,
@PathVariable(value="collectionField")
java.lang.String collectionField,
@RequestParam
org.springframework.util.MultiValueMap<java.lang.String,java.lang.String> requestParams)
throws java.lang.Exception
showAddCollectionItem in class AdminBasicEntityControllerjava.lang.Exception@RequestMapping(value="/{id}",
method=GET)
public java.lang.String viewEntityForm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
@PathVariable
java.util.Map<java.lang.String,java.lang.String> pathVars,
@PathVariable(value="id")
java.lang.String id)
throws java.lang.Exception
viewEntityForm in class AdminBasicEntityControllerjava.lang.Exceptionprotected void removeRequiredValidation(EntityForm entityForm)
entityForm - Copyright © 2018. All Rights Reserved.