@Controller(value="blAdminOfferController") @RequestMapping(value="/offer") public class AdminOfferController extends AdminBasicEntityController
Offer entity. Certain Offer fields should only render when specific values
are set for other fields; we provide the support for that in this controller.| 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 |
|---|
AdminOfferController() |
| Modifier and Type | Method and Description |
|---|---|
String |
addEntity(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
Map<String,String> pathVars,
EntityForm entityForm,
org.springframework.validation.BindingResult result)
Processes the request to add a new entity.
|
protected String |
getSectionKey(Map<String,String> pathVars)
This method is used to determine the current section key.
|
protected void |
modifyModelAttributes(org.springframework.ui.Model model)
Offer field visibility is dependent on other fields in the entity.
|
String |
viewAddEntityForm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
Map<String,String> pathVars,
String entityType)
Renders the modal form that is used to add a new parent level entity.
|
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, buildAddCollectionItemModel, getCollectionFieldRecords, getCollectionValueDetails, initBinder, isAddActionAllowed, removeCollectionItem, removeEntity, saveEntity, showAddCollectionItem, showUpdateCollectionItem, showViewCollectionItem, showViewUpdateCollection, showViewUpdateCollection, updateCollectionItem, updateCollectionItemSequence, viewCollectionItemDetails, viewEntityListattachSectionSpecificInfo, attachSectionSpecificInfo, extractDynamicFormFields, getAddEntityTypes, getBlankDynamicFieldTemplateForm, getBlankDynamicFieldTemplateForm, getClassNameForSection, getCollectionListGrid, getCollectionListGrid, getCriteria, getDefaultEntityType, getDynamicFieldTemplateForm, getDynamicForm, getEntityForm, getMaxIndex, getSectionCrumbs, getSectionCustomCriteria, 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 request@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 AdminBasicEntityControllerException@RequestMapping(value="/add",
method=GET)
public String viewAddEntityForm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
@PathVariable
Map<String,String> pathVars,
@RequestParam(defaultValue="")
String entityType)
throws Exception
AdminBasicEntityControllerviewAddEntityForm in class AdminBasicEntityControllerException@RequestMapping(value="/add",
method=POST)
public String addEntity(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
@PathVariable
Map<String,String> pathVars,
@ModelAttribute(value="entityForm")
EntityForm entityForm,
org.springframework.validation.BindingResult result)
throws Exception
AdminBasicEntityControlleraddEntity in class AdminBasicEntityControllerExceptionprotected void modifyModelAttributes(org.springframework.ui.Model model)
Copyright © 2014. All rights reserved.