@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)
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 |
modifyAddEntityForm(EntityForm ef,
Map<String,String> pathVars)
This method is invoked whenever an assembled EntityForm is rendered for the add entity screen.
|
protected void |
modifyEntityForm(EntityForm ef,
Map<String,String> pathVars)
This method is invoked whenever an assembled EntityForm is rendered.
|
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,
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)
Shows the view and populates the model for updating a 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, 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, setModelAttributesaddDeepLink, getContextPath, isAjaxRequest, jsonResponseprotected static final String SECTION_KEY
protected CatalogService catalogService
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 void modifyEntityForm(EntityForm ef, Map<String,String> pathVars)
AdminAbstractControllermodifyEntityForm in class AdminAbstractControllerprotected void modifyAddEntityForm(EntityForm ef, Map<String,String> pathVars)
AdminAbstractControllermodifyAddEntityForm 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, 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 ServiceException
AdminBasicEntityControllershowViewUpdateCollection in class AdminBasicEntityControllerServiceException@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 AdminBasicEntityControllerExceptionCopyright © 2015. All rights reserved.