@RequestMapping(value="/category")
public class EnterpriseAdminCategoryController
extends org.broadleafcommerce.admin.web.controller.entity.AdminCategoryController
Modifier and Type | Field and Description |
---|---|
protected org.broadleafcommerce.core.catalog.service.CatalogService |
catalogService |
protected org.broadleafcommerce.core.catalog.dao.CategoryDao |
categoryDao |
protected org.broadleafcommerce.core.catalog.dao.CategoryXrefDao |
categoryXrefDao |
protected static String |
DEFAULT_PARENT_CATEGORY |
protected static String |
IN_MODAL |
protected static String |
IS_LOOKUP |
protected static String |
TARGET_ID |
protected TreeListGridBuilderService |
treeListGridBuilderService |
protected com.broadleafcommerce.enterprise.common.extension.enterprise.AdminTreeListGridExtensionManager |
treeListGridExtensionManager |
protected TreeListGridService |
treeListGridService |
SECTION_KEY
adminUserDao, adornedTargetAutoPopulateExtensionManager, ALTERNATE_ID_PROPERTY, CUSTOM_CRITERIA, duplicator, dynamicEntityDao, genericEntityService, IS_SELECTIZE_REQUEST, LOG, rowLevelSecurityService, sandBoxHelper
adminNavigationService, adminRemoteSecurityService, CURRENT_ADMIN_MODULE_ATTRIBUTE_NAME, CURRENT_ADMIN_SECTION_ATTRIBUTE_NAME, customCriteriaService, DEFAULT_CONTAINER_VIEW, entityConfiguration, entityFormValidator, extensionManager, FILTER_VALUE_SEPARATOR, FILTER_VALUE_SEPARATOR_REGEX, filterProductTypeExtensionManager, formService, MODAL_CONTAINER_VIEW, service, validationService
Constructor and Description |
---|
EnterpriseAdminCategoryController() |
Modifier and Type | Method and Description |
---|---|
String |
addTreeEntity(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,
org.broadleafcommerce.openadmin.web.form.entity.EntityForm entityForm,
org.springframework.validation.BindingResult result) |
protected org.broadleafcommerce.openadmin.web.form.entity.EntityForm |
buildSequenceEntityForm(org.broadleafcommerce.openadmin.dto.ClassMetadata mainMetadata,
org.broadleafcommerce.openadmin.dto.Entity rootEntity,
List<org.broadleafcommerce.openadmin.dto.SectionCrumb> sectionCrumbs,
String newSequence) |
protected org.broadleafcommerce.openadmin.web.form.entity.Field |
findFieldByName(org.broadleafcommerce.openadmin.web.form.entity.EntityForm ef,
String fieldName) |
protected String |
getDefaultEntityType() |
protected String |
getParentCategoryId(org.springframework.util.MultiValueMap<String,String> requestParams) |
protected String |
getParentColumnDepth(org.springframework.util.MultiValueMap<String,String> requestParams) |
Long |
getTotalTreeRecords() |
protected Boolean |
isLookup(org.springframework.util.MultiValueMap<String,String> requestParams) |
protected boolean |
isParentPathVisible(org.springframework.util.MultiValueMap<String,String> requestParams) |
protected boolean |
isTreeViewEnabled() |
protected void |
modifyAddEntityForm(org.broadleafcommerce.openadmin.web.form.entity.EntityForm ef,
Map<String,String> pathVars) |
protected void |
removeCategoryActiveFacetsFromListGrid(org.broadleafcommerce.openadmin.web.form.component.ListGrid listGrid,
org.broadleafcommerce.core.catalog.domain.Category category) |
protected void |
setTreeParentProperty(org.broadleafcommerce.openadmin.web.form.entity.EntityForm entityForm,
String parentId,
String parentDisplayValue,
boolean readOnly) |
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) |
Map<String,Object> |
updateCollectionItemSequence(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
Map<String,String> pathVars,
String parentId,
String collectionField,
String childId,
String newSequence) |
Map<String,Object> |
updateRootColumnItemSequence(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
Map<String,String> pathVars,
String rootItemId,
String newSequence) |
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) |
String |
viewTreeAddEntityForm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
Map<String,String> pathVars,
String entityType,
String parentId,
String parentDisplayValue,
String parentColumnDepth,
org.springframework.util.MultiValueMap<String,String> requestParams) |
String |
viewTreeInContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
Map<String,String> pathVars,
String targetId,
org.springframework.util.MultiValueMap<String,String> requestParams) |
String |
viewTreeListGridColumn(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
Map<String,String> pathVars,
String parentId,
boolean isLookup,
org.springframework.util.MultiValueMap<String,String> requestParams) |
getSectionKey
addAddActionIfAllowed, addAuditableDisplayFields, addCollectionItem, addCollectionItem, addEmptyCollectionItem, addEntity, addSelectizeCollectionItem, buildAddCollectionItemModel, buildDirtyList, buildSelectizeCustomCriteria, declareShouldIgnoreAdditionStatusFilter, determineEntityType, duplicateEntity, getCollectionFieldRecords, getCollectionValueDetails, getCurrentTabName, getCustomCriteria, getErrorDuplicatingResponse, getModalForBlankEntityType, getSelectizeCollectionOptions, getViewSubRecords, initBinder, isAddActionAllowed, isNotReadOnly, modifyEntityForm, reinitializeEntityForm, removeCollectionItem, removeCollectionItem, removeEntity, resolveAppropriateEntityView, saveEntity, saveEntityJson, setTypedEntityModelAttributes, setupViewEntityListBasicModel, showUpdateCollectionItem, showUpdateCollectionItem, showViewCollectionItem, showViewCollectionItem, showViewUpdateCollection, showViewUpdateCollection, showViewUpdateCollection, showViewUpdateCollection, updateCollectionItem, updateCollectionItem, updateCollectionItemSequence, viewAddEntityForm, viewCollectionItemDetails, viewCollectionItemTab, viewEntityForm, viewEntityListSelectize, viewEntityTab, viewReadOnlyCollectionItemTab
attachSectionSpecificInfo, attachSectionSpecificInfo, createSectionCrumb, extractDynamicFormFields, getAddEntityTypes, getClassNameForSection, getCollectionListGrid, getCollectionListGrid, getCriteria, getDynamicFieldTemplateForm, getDynamicForm, getEntityForm, getEntityForm, getEntityForm, getFirstId, getLastId, getLowerCount, getMaxIndex, getMaxResults, getPageSize, getPersistencePackageRequest, getSectionCrumbs, getSectionCustomCriteria, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSortDirections, getSortPropertyNames, getStartIndex, getUpperCount, modifyCriteria, modifyEntityForm, populateJsonValidationErrors, setModelAttributes, setSpecializedNameForFields, translateErrorMessage
protected static final String DEFAULT_PARENT_CATEGORY
protected static final String IS_LOOKUP
protected static final String IN_MODAL
protected static final String TARGET_ID
protected org.broadleafcommerce.core.catalog.dao.CategoryXrefDao categoryXrefDao
protected org.broadleafcommerce.core.catalog.service.CatalogService catalogService
protected TreeListGridService treeListGridService
protected TreeListGridBuilderService treeListGridBuilderService
protected com.broadleafcommerce.enterprise.common.extension.enterprise.AdminTreeListGridExtensionManager treeListGridExtensionManager
protected org.broadleafcommerce.core.catalog.dao.CategoryDao categoryDao
@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 org.broadleafcommerce.openadmin.web.controller.entity.AdminBasicEntityController
Exception
@RequestMapping(value="/tree/jump-to-context", method=GET) public String viewTreeInContext(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, @PathVariable Map<String,String> pathVars, @RequestParam(value="targetId") String targetId, @RequestParam org.springframework.util.MultiValueMap<String,String> requestParams) throws Exception
Exception
@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
showAddCollectionItem
in class org.broadleafcommerce.openadmin.web.controller.entity.AdminBasicEntityController
Exception
protected void removeCategoryActiveFacetsFromListGrid(org.broadleafcommerce.openadmin.web.form.component.ListGrid listGrid, org.broadleafcommerce.core.catalog.domain.Category category)
@RequestMapping(value="/{id}/sequence", method=POST) @ResponseBody public Map<String,Object> updateRootColumnItemSequence(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, @PathVariable Map<String,String> pathVars, @PathVariable(value="id") String rootItemId, @RequestParam(value="newSequence") String newSequence) throws Exception
Exception
protected org.broadleafcommerce.openadmin.web.form.entity.EntityForm buildSequenceEntityForm(org.broadleafcommerce.openadmin.dto.ClassMetadata mainMetadata, org.broadleafcommerce.openadmin.dto.Entity rootEntity, List<org.broadleafcommerce.openadmin.dto.SectionCrumb> sectionCrumbs, String newSequence) throws org.broadleafcommerce.common.exception.ServiceException
org.broadleafcommerce.common.exception.ServiceException
@RequestMapping(value="/{id}/{collectionField:.*}/{collectionItemId}/sequence", method=POST) @ResponseBody public Map<String,Object> updateCollectionItemSequence(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, @PathVariable Map<String,String> pathVars, @PathVariable(value="id") String parentId, @PathVariable(value="collectionField") String collectionField, @PathVariable(value="collectionItemId") String childId, @RequestParam(value="newSequence") String newSequence) throws Exception
updateCollectionItemSequence
in class org.broadleafcommerce.openadmin.web.controller.entity.AdminBasicEntityController
Exception
@RequestMapping(value="/tree/new-column", method=GET) public String viewTreeListGridColumn(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, @PathVariable Map<String,String> pathVars, @RequestParam String parentId, @RequestParam boolean isLookup, @RequestParam org.springframework.util.MultiValueMap<String,String> requestParams) throws Exception
Exception
@RequestMapping(value="/new/enterprise-tree-add", method=GET) public String viewTreeAddEntityForm(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, @PathVariable Map<String,String> pathVars, @RequestParam(defaultValue="") String entityType, @RequestParam(required=false) String parentId, @RequestParam(required=false) String parentDisplayValue, @RequestParam(required=false) String parentColumnDepth, @RequestParam org.springframework.util.MultiValueMap<String,String> requestParams) throws Exception
Exception
@RequestMapping(value="/new/enterprise-tree-add", method=POST) public String addTreeEntity(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, @ModelAttribute(value="entityForm") org.broadleafcommerce.openadmin.web.form.entity.EntityForm entityForm, org.springframework.validation.BindingResult result) throws Exception
Exception
protected void modifyAddEntityForm(org.broadleafcommerce.openadmin.web.form.entity.EntityForm ef, Map<String,String> pathVars)
modifyAddEntityForm
in class org.broadleafcommerce.admin.web.controller.entity.AdminCategoryController
protected String getDefaultEntityType()
getDefaultEntityType
in class org.broadleafcommerce.openadmin.web.controller.AdminAbstractController
protected void setTreeParentProperty(org.broadleafcommerce.openadmin.web.form.entity.EntityForm entityForm, String parentId, String parentDisplayValue, boolean readOnly)
protected org.broadleafcommerce.openadmin.web.form.entity.Field findFieldByName(org.broadleafcommerce.openadmin.web.form.entity.EntityForm ef, String fieldName)
protected String getParentCategoryId(org.springframework.util.MultiValueMap<String,String> requestParams)
protected boolean isParentPathVisible(org.springframework.util.MultiValueMap<String,String> requestParams)
protected String getParentColumnDepth(org.springframework.util.MultiValueMap<String,String> requestParams)
protected Boolean isLookup(org.springframework.util.MultiValueMap<String,String> requestParams)
public Long getTotalTreeRecords()
protected boolean isTreeViewEnabled()
Copyright © 2021. All rights reserved.