@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)
Builds out all of the model information needed for showing the add modal for collection items on both the initial GET
as well as after a POST with validation errors
|
String[] |
getSectionCustomCriteria()
This method is invoked for every request for this controller.
|
protected String |
getSectionKey(Map<String,String> pathVars)
This method is used to determine the current section key.
|
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)
Shows the modal dialog that is used to add an item to a given collection.
|
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)
Shows the appropriate modal dialog to edit the selected collection item
|
String |
viewEntityForm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
Map<String,String> pathVars,
String id)
Renders the main entity form for the specified entity
|
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)
AdminAbstractControllergetSectionKey in class AdminAbstractControllerpathVars - - the map of all currently bound path variables for this requestpublic String[] getSectionCustomCriteria()
AdminAbstractControllergetSectionCustomCriteria 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
AdminBasicEntityControllerbuildAddCollectionItemModel in class AdminBasicEntityControllerServiceException#addCollectionItem(HttpServletRequest, HttpServletResponse, Model, Map, String, String, EntityForm, BindingResult)},
#showAddCollectionItem(HttpServletRequest, HttpServletResponse, Model, Map, String, String, MultiValueMap)}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) 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
AdminBasicEntityControllershowUpdateCollectionItem 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
AdminBasicEntityControllershowAddCollectionItem 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
AdminBasicEntityControllerviewEntityForm in class AdminBasicEntityControllerExceptionprotected void removeRequiredValidation(EntityForm entityForm)
entityForm - Copyright © 2017. All rights reserved.