@Service(value="blTreeListGridBuilderService") public class TreeListGridBuilderServiceImpl extends Object implements TreeListGridBuilderService
| Modifier and Type | Field and Description |
|---|---|
protected org.broadleafcommerce.openadmin.server.security.remote.SecurityVerifier |
adminRemoteSecurityService |
protected static String |
ALL_CHILD_CATEGORY_XREFS |
protected org.broadleafcommerce.core.catalog.service.CatalogService |
catalogService |
protected org.broadleafcommerce.openadmin.web.service.FormBuilderService |
formBuilderService |
protected static String |
PARENT_ID |
protected static String |
PARENT_PATH_FIELD_NAME |
protected org.broadleafcommerce.openadmin.server.security.service.RowLevelSecurityService |
rowLevelSecurityService |
protected org.broadleafcommerce.common.sandbox.SandBoxHelper |
sandBoxHelper |
protected static int |
SEARCH_LISTGRID_MAX_RESULTS |
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 |
|---|---|
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 org.broadleafcommerce.openadmin.dto.DynamicResultSet |
gatherNonRootColumnRecords(org.broadleafcommerce.openadmin.server.domain.PersistencePackageRequest ppr,
String treeParentPathJson,
int columnDepth,
org.springframework.util.MultiValueMap<String,String> requestParams,
String parentId) |
protected org.broadleafcommerce.openadmin.dto.DynamicResultSet |
gatherRootColumnRecords(org.broadleafcommerce.openadmin.server.domain.PersistencePackageRequest ppr,
String treeParentPathJson,
int columnDepth) |
protected Long |
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 |
isAddActionAllowed(String sectionClassName,
org.broadleafcommerce.openadmin.dto.ClassMetadata cmd) |
protected boolean |
isIndexInTopHalfOfMaxResultsRange(Long rowIndex) |
protected Integer |
manipulateStartIndexWithMaxResults(Long 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 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 static final int SEARCH_LISTGRID_MAX_RESULTS
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
protected org.broadleafcommerce.openadmin.server.security.remote.SecurityVerifier adminRemoteSecurityService
protected org.broadleafcommerce.openadmin.server.security.service.RowLevelSecurityService rowLevelSecurityService
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
TreeListGridBuilderServicebuildTreeListGrid in interface TreeListGridBuilderServiceorg.broadleafcommerce.common.exception.ServiceExceptionprotected org.broadleafcommerce.openadmin.dto.DynamicResultSet gatherRootColumnRecords(org.broadleafcommerce.openadmin.server.domain.PersistencePackageRequest ppr,
String treeParentPathJson,
int columnDepth)
throws org.broadleafcommerce.common.exception.ServiceException
org.broadleafcommerce.common.exception.ServiceExceptionprotected org.broadleafcommerce.openadmin.dto.DynamicResultSet gatherNonRootColumnRecords(org.broadleafcommerce.openadmin.server.domain.PersistencePackageRequest ppr,
String treeParentPathJson,
int columnDepth,
org.springframework.util.MultiValueMap<String,String> requestParams,
String parentId)
throws org.broadleafcommerce.common.exception.ServiceException
org.broadleafcommerce.common.exception.ServiceExceptionpublic 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
TreeListGridBuilderServicebuildTreeListGridColumn in interface TreeListGridBuilderServiceorg.broadleafcommerce.common.exception.ServiceExceptionprotected boolean isAddActionAllowed(String sectionClassName, org.broadleafcommerce.openadmin.dto.ClassMetadata cmd)
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
TreeListGridBuilderServicebuildTreeSearchListGrid in interface TreeListGridBuilderServiceorg.broadleafcommerce.common.exception.ServiceExceptionprotected List<String> getParentCategoryIds(org.springframework.util.MultiValueMap<String,String> requestParams, String treeParentPathJson)
public String getTreeParentPathJson(org.springframework.util.MultiValueMap<String,String> requestParams)
TreeListGridBuilderServicegetTreeParentPathJson in interface TreeListGridBuilderServiceprotected boolean shouldRetrievePathToTarget(org.springframework.util.MultiValueMap<String,String> requestParams)
protected boolean shouldOnlyRetrieveNextColumn(org.springframework.util.MultiValueMap<String,String> requestParams)
protected String buildTreeParentPathJson(List<org.broadleafcommerce.core.catalog.domain.Category> parentPath)
protected Long 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(Long rowIndex)
protected boolean isIndexInTopHalfOfMaxResultsRange(Long rowIndex)
protected int getDefaultMaxResults()
Copyright © 2021. All rights reserved.