public class DefaultCatalogNavigationService extends Object implements CatalogNavigationService
| Modifier and Type | Field and Description |
|---|---|
static Logger |
LOG |
static String |
TABLE_MANAGER_MAX_SEARCH_RESULT |
| Constructor and Description |
|---|
DefaultCatalogNavigationService() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkSizeOfSearchResult(SearchResult<ProductModel> searchResult,
int maxCount)
This method checks the size of the given search result. If the result is bigger than the property
'printcockpit.table.manager.max.search.result' it throws a Exception.
|
List<TypedObject> |
findPrintElements(String term)
Returns search result of print related elements
|
List<TypedObject> |
findUncategorizedProducts(CatalogVersionModel catalogVersion)
returns list of catalog version products that are not assigned to any category, limited by the property
'printcockpit.table.manager.max.search.result'.
|
void |
setCatalogNavigationDao(CatalogNavigationDao catalogNavigationDao) |
void |
setTypeService(TypeService typeService)
Getters and setters
|
public static final Logger LOG
public static final String TABLE_MANAGER_MAX_SEARCH_RESULT
public void setCatalogNavigationDao(CatalogNavigationDao catalogNavigationDao)
catalogNavigationDao - the catalogNavigationDao to setpublic void setTypeService(TypeService typeService)
public void checkSizeOfSearchResult(SearchResult<ProductModel> searchResult, int maxCount) throws UncategorizedProductsException, TableManagerPropertyException
This method checks the size of the given search result. If the result is bigger than the property 'printcockpit.table.manager.max.search.result' it throws a Exception. A Exception is also thrown if the property is less or equal 0.
searchResult - SearchResult<ProductModel> Search result of uncategorized products.maxCount - Integer Max number of uncategorized products.{@link - Exception} - if the search result higher than the max search result property.UncategorizedProductsExceptionTableManagerPropertyExceptionpublic List<TypedObject> findUncategorizedProducts(CatalogVersionModel catalogVersion)
returns list of catalog version products that are not assigned to any category, limited by the property 'printcockpit.table.manager.max.search.result'.
findUncategorizedProducts in interface CatalogNavigationServicepublic List<TypedObject> findPrintElements(String term)
findPrintElements in interface CatalogNavigationServiceterm - Copyright © 2017 SAP SE. All Rights Reserved.