Class AdminCustomFieldController
java.lang.Object
org.broadleafcommerce.common.web.controller.BroadleafAbstractController
org.broadleafcommerce.openadmin.web.controller.AdminAbstractController
org.broadleafcommerce.openadmin.web.controller.entity.AdminBasicEntityController
com.broadleafcommerce.customfield.admin.web.controller.entity.AdminCustomFieldController
@RequestMapping("/custom-field-management")
public class AdminCustomFieldController
extends org.broadleafcommerce.openadmin.web.controller.entity.AdminBasicEntityController
- Author:
- Chad Harchar (charchar)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.broadleafcommerce.core.catalog.service.CatalogServiceprotected org.broadleafcommerce.common.service.PersistenceServiceprotected static final StringFields inherited from class org.broadleafcommerce.openadmin.web.controller.entity.AdminBasicEntityController
adminUserDao, adornedTargetAutoPopulateExtensionManager, ALTERNATE_ID_PROPERTY, CURRENT_FOLDER_ID, CUSTOM_CRITERIA, duplicator, dynamicEntityDao, genericEntityService, IS_SELECTIZE_REQUEST, LOG, multipleCatalogExtensionManager, rowLevelSecurityService, sandBoxHelperFields inherited from class org.broadleafcommerce.openadmin.web.controller.AdminAbstractController
adminNavigationService, adminRemoteSecurityService, CURRENT_ADMIN_MODULE_ATTRIBUTE_NAME, CURRENT_ADMIN_SECTION_ATTRIBUTE_NAME, customCriteriaService, DEFAULT_CONTAINER_VIEW, entityConfiguration, entityFormValidator, eps, extensionManager, FILTER_VALUE_SEPARATOR, FILTER_VALUE_SEPARATOR_REGEX, filterProductTypeExtensionManager, formService, MODAL_CONTAINER_VIEW, service, validationService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.broadleafcommerce.openadmin.web.form.entity.EntityFormaddDeletionConfirmation(org.broadleafcommerce.openadmin.web.form.entity.EntityForm ef) protected voidaddGroupNameProperty(org.broadleafcommerce.openadmin.web.form.entity.EntityForm ef) protected org.broadleafcommerce.openadmin.web.form.entity.ComboFieldprotected String[][]getGroupNameOptions(String entityType) protected StringgetSectionKey(Map<String, String> pathVars) protected booleanisManagedEntity(String entityType) protected voidmodifyAddEntityForm(org.broadleafcommerce.openadmin.web.form.entity.EntityForm ef, Map<String, String> pathVars) protected voidmodifyEntityForm(org.broadleafcommerce.openadmin.web.form.entity.EntityForm ef, Map<String, String> pathVars) retrieveGroupNameOptions(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, String id, String entityType, Map<String, String> pathVars) saveEntity(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, Map<String, String> pathVars, String id, org.broadleafcommerce.openadmin.web.form.entity.EntityForm entityForm, org.springframework.validation.BindingResult result, org.springframework.web.servlet.mvc.support.RedirectAttributes ra) protected StringsetCustomFieldOptionsAndDefaultValue(org.springframework.ui.Model model, String view) viewAddEntityForm(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, Map<String, String> pathVars, String entityType) viewEntityForm(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, Map<String, String> pathVars, String id) Methods inherited from class org.broadleafcommerce.openadmin.web.controller.entity.AdminBasicEntityController
addAddActionIfAllowed, addAuditableDisplayField, addAuditableDisplayFields, addCollectionItem, addCollectionItem, addEmptyCollectionItem, addEntity, addSelectizeCollectionItem, buildAddCollectionItemModel, buildAuditableDisplayField, buildDirtyList, buildSelectizeCustomCriteria, declareShouldIgnoreAdditionStatusFilter, determineEntityType, duplicateEntity, getCollectionFieldRecords, getCollectionValueDetails, getCurrentFolderId, getCurrentTabName, getCustomCriteria, getErrorDuplicatingResponse, getModalForBlankEntityType, getSelectizeCollectionOptions, getViewSubRecords, initBinder, isAddActionAllowed, isNotReadOnly, modifyEntityForm, postAddSubCollectionEntityHook, postUpdateSubCollectionEntityHook, reinitializeEntityForm, removeCollectionItem, removeCollectionItem, removeEntity, resolveAppropriateEntityView, saveEntityJson, setTypedEntityModelAttributes, setupViewEntityListBasicModel, showAddCollectionItem, showUpdateCollectionItem, showUpdateCollectionItem, showViewCollectionItem, showViewCollectionItem, showViewUpdateCollection, showViewUpdateCollection, showViewUpdateCollection, showViewUpdateCollection, updateCollectionItem, updateCollectionItem, updateCollectionItemSequence, updateCollectionItemSequence, viewCollectionItemDetails, viewCollectionItemTab, viewEntityList, viewEntityListSelectize, viewEntityTab, viewReadOnlyCollectionItemTabMethods inherited from class org.broadleafcommerce.openadmin.web.controller.AdminAbstractController
attachSectionSpecificInfo, attachSectionSpecificInfo, createSectionCrumb, declareForceUseAdditionStatusFilter, extractDynamicFormFields, getAddEntityTypes, getClassNameForSection, getCollectionListGrid, getCollectionListGrid, getCriteria, getDefaultEntityType, getDynamicFieldTemplateForm, getDynamicForm, getEntityForm, getEntityForm, getEntityForm, getFirstId, getLastId, getLowerCount, getMaxIndex, getMaxResults, getPageSize, getPersistencePackageRequest, getSectionCrumbs, getSectionCustomCriteria, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSortDirections, getSortPropertyNames, getStartIndex, getUpperCount, modifyCriteria, populateJsonValidationErrors, setModelAttributes, setSpecializedNameForFields, translateErrorMessageMethods inherited from class org.broadleafcommerce.common.web.controller.BroadleafAbstractController
addDeepLink, getContextPath, isAjaxRequest, jsonResponse
-
Field Details
-
SECTION_KEY
- See Also:
-
catalogService
protected org.broadleafcommerce.core.catalog.service.CatalogService catalogService -
persistenceService
protected org.broadleafcommerce.common.service.PersistenceService persistenceService
-
-
Constructor Details
-
AdminCustomFieldController
public AdminCustomFieldController()
-
-
Method Details
-
getSectionKey
- Overrides:
getSectionKeyin classorg.broadleafcommerce.openadmin.web.controller.AdminAbstractController
-
viewAddEntityForm
@RequestMapping(value="/add", method=GET) public String viewAddEntityForm(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, @PathVariable Map<String, String> pathVars, @RequestParam(defaultValue="") String entityType) throws Exception- Overrides:
viewAddEntityFormin classorg.broadleafcommerce.openadmin.web.controller.entity.AdminBasicEntityController- Throws:
Exception
-
viewEntityForm
@RequestMapping(value="/{id}", method=GET) public String viewEntityForm(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, @PathVariable Map<String, String> pathVars, @PathVariable("id") String id) throws Exception- Overrides:
viewEntityFormin classorg.broadleafcommerce.openadmin.web.controller.entity.AdminBasicEntityController- Throws:
Exception
-
saveEntity
@RequestMapping(value="/{id}", method=POST) public String saveEntity(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, @PathVariable Map<String, String> pathVars, @PathVariable("id") String id, @ModelAttribute("entityForm") org.broadleafcommerce.openadmin.web.form.entity.EntityForm entityForm, org.springframework.validation.BindingResult result, org.springframework.web.servlet.mvc.support.RedirectAttributes ra) throws Exception- Overrides:
saveEntityin classorg.broadleafcommerce.openadmin.web.controller.entity.AdminBasicEntityController- Throws:
Exception
-
retrieveGroupNameOptions
@RequestMapping(value="/{id}/group-name-selectize", method=GET) @ResponseBody public Map<String,Object> retrieveGroupNameOptions(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, @PathVariable("id") String id, @RequestParam("entityType") String entityType, @PathVariable Map<String, String> pathVars) throws Exception- Throws:
Exception
-
setCustomFieldOptionsAndDefaultValue
protected String setCustomFieldOptionsAndDefaultValue(org.springframework.ui.Model model, String view) throws ClassNotFoundException - Throws:
ClassNotFoundException
-
modifyEntityForm
protected void modifyEntityForm(org.broadleafcommerce.openadmin.web.form.entity.EntityForm ef, Map<String, String> pathVars) - Overrides:
modifyEntityFormin classorg.broadleafcommerce.openadmin.web.controller.AdminAbstractController
-
modifyAddEntityForm
protected void modifyAddEntityForm(org.broadleafcommerce.openadmin.web.form.entity.EntityForm ef, Map<String, String> pathVars) - Overrides:
modifyAddEntityFormin classorg.broadleafcommerce.openadmin.web.controller.AdminAbstractController
-
addDeletionConfirmation
protected org.broadleafcommerce.openadmin.web.form.entity.EntityForm addDeletionConfirmation(org.broadleafcommerce.openadmin.web.form.entity.EntityForm ef) -
addGroupNameProperty
protected void addGroupNameProperty(org.broadleafcommerce.openadmin.web.form.entity.EntityForm ef) -
isManagedEntity
-
buildExistingGroupNameField
protected org.broadleafcommerce.openadmin.web.form.entity.ComboField buildExistingGroupNameField() -
getGroupNameOptions
protected String[][] getGroupNameOptions(String entityType) throws org.broadleafcommerce.common.exception.ServiceException - Throws:
org.broadleafcommerce.common.exception.ServiceException
-