final class CategoryServiceEP6Rest extends java.lang.Object implements CategoryService
Modifier and Type | Field and Description |
---|---|
private InvocationBuilder |
invocationBuilder |
private static java.lang.String |
PATH_CATEGORIES |
private static java.lang.String |
PATH_CATEGORY |
private static java.lang.String |
SEQUENCE_PATH |
Constructor and Description |
---|
CategoryServiceEP6Rest(InvocationBuilder invocationBuilder) |
Modifier and Type | Method and Description |
---|---|
private static void |
cleanupHtml(Category category,
java.lang.String baseUri) |
private void |
convertLinks(Category result,
ShopRequestContext ctx) |
Category |
createCategory(ShopRequestContext ctx,
GUID categoryGUID,
CategoryTemplate categoryTemplate) |
void |
delete(ShopRequestContext shopRequestContext,
GUID categoryGUID) |
java.util.List<Category> |
getCategoriesByProductId(ShopRequestContext shopRequestContext,
GUID productId,
boolean includeInvisibles) |
Category |
getCategory(ShopRequestContext ctx,
GUID categoryGUID,
boolean includeInvisible) |
private Category |
getCategory(ShopRequestContext ctx,
GUID categoryGUID,
boolean includeInvisible,
boolean followChildLinks) |
private static java.lang.String |
getCategoryPath(GUID categoryGUID) |
private Link |
getProductLink(ShopRequestContext ctx,
Category category) |
Category |
getRootCategory(ShopRequestContext ctx,
boolean includeInvisibles,
boolean followChildLinks) |
private void |
getSubCategories(ShopRequestContext ctx,
Category category,
boolean includeInvisible) |
java.util.List<java.lang.String> |
getSubcategoriesSequence(ShopRequestContext shopRequestContext,
GUID parentCategoryId) |
private Category |
postProcessCategories(ShopRequestContext ctx,
Category category,
boolean includeInvisible,
boolean followLinks) |
Category |
save(ShopRequestContext reqCtx,
Category category) |
java.util.List<java.lang.String> |
setSubcategoriesSequence(ShopRequestContext shopRequestContext,
GUID parentCategoryId,
java.util.List<java.lang.String> newSequence) |
private static final java.lang.String PATH_CATEGORIES
private static final java.lang.String PATH_CATEGORY
private static final java.lang.String SEQUENCE_PATH
private final InvocationBuilder invocationBuilder
@Inject public CategoryServiceEP6Rest(InvocationBuilder invocationBuilder)
private static java.lang.String getCategoryPath(GUID categoryGUID)
public Category getRootCategory(ShopRequestContext ctx, boolean includeInvisibles, boolean followChildLinks)
getRootCategory
in interface CategoryService
public Category getCategory(ShopRequestContext ctx, GUID categoryGUID, boolean includeInvisible)
getCategory
in interface CategoryService
public Category createCategory(ShopRequestContext ctx, GUID categoryGUID, CategoryTemplate categoryTemplate)
createCategory
in interface CategoryService
private Category getCategory(ShopRequestContext ctx, @Nullable GUID categoryGUID, boolean includeInvisible, boolean followChildLinks)
private Category postProcessCategories(ShopRequestContext ctx, Category category, boolean includeInvisible, boolean followLinks)
private void getSubCategories(ShopRequestContext ctx, Category category, boolean includeInvisible)
private Link getProductLink(ShopRequestContext ctx, Category category)
private static void cleanupHtml(Category category, java.lang.String baseUri)
private void convertLinks(Category result, ShopRequestContext ctx)
public Category save(ShopRequestContext reqCtx, Category category)
save
in interface CategoryService
public java.util.List<java.lang.String> getSubcategoriesSequence(ShopRequestContext shopRequestContext, GUID parentCategoryId)
getSubcategoriesSequence
in interface CategoryService
public java.util.List<java.lang.String> setSubcategoriesSequence(ShopRequestContext shopRequestContext, GUID parentCategoryId, java.util.List<java.lang.String> newSequence)
setSubcategoriesSequence
in interface CategoryService
public java.util.List<Category> getCategoriesByProductId(ShopRequestContext shopRequestContext, GUID productId, boolean includeInvisibles)
getCategoriesByProductId
in interface CategoryService
public void delete(ShopRequestContext shopRequestContext, GUID categoryGUID)
delete
in interface CategoryService