@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 |
|---|---|
static String[] |
customCriteria |
protected org.broadleafcommerce.common.persistence.EntityDuplicator |
duplicator |
protected OfferService |
offerService |
static String |
SECTION_KEY |
adminUserDao, adornedTargetAutoPopulateExtensionManager, ALTERNATE_ID_PROPERTY, CUSTOM_CRITERIA, dynamicEntityDao, IS_SELECTIZE_REQUEST, LOG, rowLevelSecurityService, sandBoxHelperadminNavigationService, adminRemoteSecurityService, CURRENT_ADMIN_MODULE_ATTRIBUTE_NAME, CURRENT_ADMIN_SECTION_ATTRIBUTE_NAME, customCriteriaService, entityConfiguration, entityFormValidator, extensionManager, FILTER_VALUE_SEPARATOR, FILTER_VALUE_SEPARATOR_REGEX, formService, service, validationService| Constructor and Description |
|---|
AdminOfferController() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDuplicateOption(org.springframework.ui.Model model,
String id) |
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) |
String |
duplicateEntity(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
Map<String,String> pathVars,
String id,
EntityForm entityForm,
org.springframework.validation.BindingResult result) |
protected String |
getErrorDuplicatingResponse(javax.servlet.http.HttpServletResponse response,
String code) |
String[] |
getSectionCustomCriteria() |
protected String |
getSectionKey(Map<String,String> pathVars) |
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) |
String |
viewEntityForm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
Map<String,String> pathVars,
String id) |
String |
viewEntityList(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
Map<String,String> pathVars,
org.springframework.util.MultiValueMap<String,String> requestParams) |
addAddActionIfAllowed, addAuditableDisplayFields, addCollectionItem, addCollectionItem, addEmptyCollectionItem, addSelectizeCollectionItem, buildAddCollectionItemModel, buildDirtyList, buildSelectizeCustomCriteria, declareShouldIgnoreAdditionStatusFilter, getCollectionFieldRecords, getCollectionValueDetails, getCurrentTabName, getCustomCriteria, getSelectizeCollectionOptions, getViewSubRecords, initBinder, isAddActionAllowed, removeCollectionItem, removeCollectionItem, removeEntity, saveEntity, saveEntityJson, setTypedEntityModelAttributes, setupViewEntityListBasicModel, showAddCollectionItem, showUpdateCollectionItem, showUpdateCollectionItem, showViewCollectionItem, showViewCollectionItem, showViewUpdateCollection, showViewUpdateCollection, showViewUpdateCollection, showViewUpdateCollection, updateCollectionItem, updateCollectionItem, updateCollectionItemSequence, updateCollectionItemSequence, viewCollectionItemDetails, viewCollectionItemTab, viewEntityListSelectize, viewEntityTabattachSectionSpecificInfo, attachSectionSpecificInfo, createSectionCrumb, extractDynamicFormFields, getAddEntityTypes, getClassNameForSection, getCollectionListGrid, getCollectionListGrid, getCriteria, getDefaultEntityType, getDynamicFieldTemplateForm, getDynamicForm, getEntityForm, getEntityForm, getEntityForm, getFirstId, getLastId, getLowerCount, getMaxIndex, getMaxResults, getPageSize, getPersistencePackageRequest, getSectionCrumbs, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSortDirections, getSortPropertyNames, getStartIndex, getUpperCount, modifyAddEntityForm, modifyEntityForm, populateJsonValidationErrors, setModelAttributes, setSpecializedNameForFields, translateErrorMessagepublic static final String SECTION_KEY
public static String[] customCriteria
protected OfferService offerService
protected org.broadleafcommerce.common.persistence.EntityDuplicator duplicator
protected String getSectionKey(Map<String,String> pathVars)
getSectionKey in class AdminAbstractControllerpublic String[] getSectionCustomCriteria()
getSectionCustomCriteria in class AdminAbstractController@RequestMapping(value="",
method=GET)
public String viewEntityList(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
@PathVariable
Map<String,String> pathVars,
@RequestParam
org.springframework.util.MultiValueMap<String,String> requestParams)
throws Exception
viewEntityList 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 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
viewAddEntityForm 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
addEntity in class AdminBasicEntityControllerException@RequestMapping(value="/{id}/duplicate",
method=POST)
public String duplicateEntity(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,
@ModelAttribute(value="entityForm")
EntityForm entityForm,
org.springframework.validation.BindingResult result)
throws Exception
Exceptionprotected String getErrorDuplicatingResponse(javax.servlet.http.HttpServletResponse response, String code)
protected void modifyModelAttributes(org.springframework.ui.Model model)
protected void addDuplicateOption(org.springframework.ui.Model model,
String id)
Copyright © 2018. All rights reserved.