final class CategoryTreeServiceImpl extends java.lang.Object implements CategoryTreeService
Modifier and Type | Field and Description |
---|---|
private CategoryService |
service |
private ShopPublicInfoService |
shopInfoService |
Constructor and Description |
---|
CategoryTreeServiceImpl(CategoryService service,
ShopPublicInfoService shopInfoService) |
Modifier and Type | Method and Description |
---|---|
private java.util.Optional<Category> |
find(GUID categoryId,
java.util.Map<Category,java.util.List<Category>> parentChildren) |
private CategoryTreenode |
get(Category c,
java.util.Locale locale,
java.net.URI mboUrl) |
CategoryTreenode |
get(ShopRequestContext ctx,
boolean includeInvisible) |
private java.net.URI |
getCategoryObjectPath(java.lang.String mboUrlBase,
CategoryInfoMap categoryInfoMap,
GUID categGuid) |
private java.lang.String |
getMboBaseURL(ShopRequestContext ctx) |
private void |
transformIntoCategoryTreenode(CategoryTreenode node,
java.util.Locale locale,
CategoryInfoMap categoryInfoMap,
java.util.Map<Category,java.util.List<Category>> parentChildren,
java.lang.String mboUrlBase) |
private final CategoryService service
private final ShopPublicInfoService shopInfoService
@Inject public CategoryTreeServiceImpl(CategoryService service, ShopPublicInfoService shopInfoService)
public CategoryTreenode get(ShopRequestContext ctx, boolean includeInvisible)
get
in interface CategoryTreeService
private java.lang.String getMboBaseURL(ShopRequestContext ctx)
private java.net.URI getCategoryObjectPath(java.lang.String mboUrlBase, CategoryInfoMap categoryInfoMap, GUID categGuid)
private void transformIntoCategoryTreenode(CategoryTreenode node, java.util.Locale locale, CategoryInfoMap categoryInfoMap, java.util.Map<Category,java.util.List<Category>> parentChildren, java.lang.String mboUrlBase)
private java.util.Optional<Category> find(GUID categoryId, java.util.Map<Category,java.util.List<Category>> parentChildren)
private CategoryTreenode get(Category c, java.util.Locale locale, java.net.URI mboUrl)