@Service(value="blTreeListGridBuilderService") public class TreeListGridBuilderServiceImpl extends Object implements TreeListGridBuilderService
Modifier and Type | Field and Description |
---|---|
protected static String |
ALL_CHILD_CATEGORY_XREFS |
protected org.broadleafcommerce.core.catalog.service.CatalogService |
catalogService |
protected static String |
DEFAULT_ROOT_CATEGORY_NAME |
protected org.broadleafcommerce.openadmin.web.service.FormBuilderService |
formBuilderService |
protected static String |
PARENT_ID |
protected static String |
PARENT_PATH_FIELD_NAME |
protected org.broadleafcommerce.common.sandbox.SandBoxHelper |
sandBoxHelper |
protected org.broadleafcommerce.openadmin.server.service.AdminEntityService |
service |
protected static String |
TARGET_ID |
protected static String |
TREE_PARENT_PATH_JSON |
protected TreeListGridBuilderDao |
treeListGridBuilderDao |
protected com.broadleafcommerce.enterprise.common.extension.enterprise.AdminTreeListGridExtensionManager |
treeListGridExtensionManager |
Constructor and Description |
---|
TreeListGridBuilderServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
addRootCategoryToResult(List<String> result)
Make sure to add the Id of the default root category.
|
TreeListGrid |
buildTreeListGrid(org.broadleafcommerce.openadmin.dto.ClassMetadata cmd,
org.broadleafcommerce.openadmin.server.domain.PersistencePackageRequest ppr,
String sectionKey,
List<org.broadleafcommerce.openadmin.dto.SectionCrumb> sectionCrumbs,
org.springframework.util.MultiValueMap<String,String> requestParams,
String treeParentPathJson,
Boolean isLookup)
Service method to create a TreeListGrid object.
|
TreeListGridColumn |
buildTreeListGridColumn(org.broadleafcommerce.openadmin.server.domain.PersistencePackageRequest ppr,
org.broadleafcommerce.openadmin.dto.DynamicResultSet drs,
org.broadleafcommerce.openadmin.dto.ClassMetadata cmd,
String sectionKey,
List<org.broadleafcommerce.openadmin.dto.SectionCrumb> sectionCrumbs,
String parentId,
Boolean isLookup)
Service method to create a TreeListGridColumn object.
|
protected String |
buildTreeParentPathJson(List<org.broadleafcommerce.core.catalog.domain.Category> parentPath) |
org.broadleafcommerce.openadmin.web.form.component.ListGrid |
buildTreeSearchListGrid(org.broadleafcommerce.openadmin.server.domain.PersistencePackageRequest ppr,
org.broadleafcommerce.openadmin.dto.ClassMetadata cmd,
String sectionKey,
List<org.broadleafcommerce.openadmin.dto.SectionCrumb> sectionCrumbs,
Boolean isLookup)
Service method to create a TreeListGrid's associated search ListGrid.
|
protected Integer |
getCategoryRowIndex(org.broadleafcommerce.core.catalog.domain.Category category) |
protected Integer |
getColumnStartIndex(org.broadleafcommerce.core.catalog.domain.Category category) |
protected Integer |
getColumnStartIndex(String treeParentPathJson,
int columnDepth) |
protected int |
getDefaultMaxResults() |
protected List<String> |
getParentCategoryIds(org.springframework.util.MultiValueMap<String,String> requestParams,
String treeParentPathJson) |
String |
getTreeParentPathJson(org.springframework.util.MultiValueMap<String,String> requestParams)
Service method to gather the tree's parentPathJson.
|
protected boolean |
isParentRoot(org.broadleafcommerce.core.catalog.domain.Category targetCategory) |
protected Integer |
manipulateStartIndexWithMaxResults(Integer rowIndex) |
protected boolean |
shouldOnlyRetrieveNextColumn(org.springframework.util.MultiValueMap<String,String> requestParams) |
protected boolean |
shouldRetrievePathToTarget(org.springframework.util.MultiValueMap<String,String> requestParams) |
protected static final String DEFAULT_ROOT_CATEGORY_NAME
protected static final String ALL_CHILD_CATEGORY_XREFS
protected static final String TREE_PARENT_PATH_JSON
protected static final String PARENT_PATH_FIELD_NAME
protected static final String TARGET_ID
protected static final String PARENT_ID
protected org.broadleafcommerce.openadmin.server.service.AdminEntityService service
protected org.broadleafcommerce.core.catalog.service.CatalogService catalogService
protected org.broadleafcommerce.openadmin.web.service.FormBuilderService formBuilderService
protected org.broadleafcommerce.common.sandbox.SandBoxHelper sandBoxHelper
protected TreeListGridBuilderDao treeListGridBuilderDao
protected com.broadleafcommerce.enterprise.common.extension.enterprise.AdminTreeListGridExtensionManager treeListGridExtensionManager
public TreeListGrid buildTreeListGrid(org.broadleafcommerce.openadmin.dto.ClassMetadata cmd, org.broadleafcommerce.openadmin.server.domain.PersistencePackageRequest ppr, String sectionKey, List<org.broadleafcommerce.openadmin.dto.SectionCrumb> sectionCrumbs, org.springframework.util.MultiValueMap<String,String> requestParams, String treeParentPathJson, Boolean isLookup) throws org.broadleafcommerce.common.exception.ServiceException
TreeListGridBuilderService
buildTreeListGrid
in interface TreeListGridBuilderService
org.broadleafcommerce.common.exception.ServiceException
public TreeListGridColumn buildTreeListGridColumn(org.broadleafcommerce.openadmin.server.domain.PersistencePackageRequest ppr, org.broadleafcommerce.openadmin.dto.DynamicResultSet drs, org.broadleafcommerce.openadmin.dto.ClassMetadata cmd, String sectionKey, List<org.broadleafcommerce.openadmin.dto.SectionCrumb> sectionCrumbs, String parentId, Boolean isLookup) throws org.broadleafcommerce.common.exception.ServiceException
TreeListGridBuilderService
buildTreeListGridColumn
in interface TreeListGridBuilderService
org.broadleafcommerce.common.exception.ServiceException
public org.broadleafcommerce.openadmin.web.form.component.ListGrid buildTreeSearchListGrid(org.broadleafcommerce.openadmin.server.domain.PersistencePackageRequest ppr, org.broadleafcommerce.openadmin.dto.ClassMetadata cmd, String sectionKey, List<org.broadleafcommerce.openadmin.dto.SectionCrumb> sectionCrumbs, Boolean isLookup) throws org.broadleafcommerce.common.exception.ServiceException
TreeListGridBuilderService
buildTreeSearchListGrid
in interface TreeListGridBuilderService
org.broadleafcommerce.common.exception.ServiceException
protected List<String> getParentCategoryIds(org.springframework.util.MultiValueMap<String,String> requestParams, String treeParentPathJson)
protected void addRootCategoryToResult(List<String> result)
result
- requestParams
- public String getTreeParentPathJson(org.springframework.util.MultiValueMap<String,String> requestParams)
TreeListGridBuilderService
getTreeParentPathJson
in interface TreeListGridBuilderService
protected boolean shouldRetrievePathToTarget(org.springframework.util.MultiValueMap<String,String> requestParams)
protected boolean shouldOnlyRetrieveNextColumn(org.springframework.util.MultiValueMap<String,String> requestParams)
protected boolean isParentRoot(org.broadleafcommerce.core.catalog.domain.Category targetCategory)
protected String buildTreeParentPathJson(List<org.broadleafcommerce.core.catalog.domain.Category> parentPath)
protected Integer getCategoryRowIndex(org.broadleafcommerce.core.catalog.domain.Category category)
protected Integer getColumnStartIndex(org.broadleafcommerce.core.catalog.domain.Category category)
protected Integer getColumnStartIndex(String treeParentPathJson, int columnDepth)
protected Integer manipulateStartIndexWithMaxResults(Integer rowIndex)
protected int getDefaultMaxResults()
Copyright © 2019. All rights reserved.