final class CategoryServiceEP6Rest extends java.lang.Object implements CategoryService
Modifier and Type | Field and Description |
---|---|
private Converter<Link,Link> |
converter |
private InvocationBuilder |
invocationBuilder |
private javax.ws.rs.core.UriInfo |
uriInfo |
Constructor and Description |
---|
CategoryServiceEP6Rest(InvocationBuilder invocationBuilder,
Converter<Link,Link> converter,
javax.ws.rs.core.UriInfo uriInfo) |
Modifier and Type | Method and Description |
---|---|
private static void |
cleanupHtml(Category category,
java.lang.String baseUri) |
private void |
convertLinks(Category result) |
Category |
getCategory(ShopRequestContext ctx,
GUID categoryGUID) |
private Category |
getCategory(ShopRequestContext ctx,
GUID categoryGUID,
boolean followChildLinks) |
private Link |
getProductLink(ShopRequestContext ctx,
Category category) |
Category |
getRootCategory(ShopRequestContext ctx,
boolean followChildLinks) |
private void |
getSubCategories(ShopRequestContext ctx,
Category category) |
private Category |
postProcessCategories(ShopRequestContext ctx,
Category category,
boolean followLinks)
In-place conversion.
|
Category |
save(ShopRequestContext reqCtx,
Category category) |
private final InvocationBuilder invocationBuilder
private final javax.ws.rs.core.UriInfo uriInfo
@Inject public CategoryServiceEP6Rest(InvocationBuilder invocationBuilder, Converter<Link,Link> converter, javax.ws.rs.core.UriInfo uriInfo)
public Category getRootCategory(ShopRequestContext ctx, boolean followChildLinks)
getRootCategory
in interface CategoryService
public Category getCategory(ShopRequestContext ctx, GUID categoryGUID)
getCategory
in interface CategoryService
private Category getCategory(ShopRequestContext ctx, @Nullable GUID categoryGUID, boolean followChildLinks)
private Category postProcessCategories(ShopRequestContext ctx, Category category, boolean followLinks)
private void getSubCategories(ShopRequestContext ctx, Category category)
private Link getProductLink(ShopRequestContext ctx, Category category)
private static void cleanupHtml(Category category, java.lang.String baseUri)
private void convertLinks(Category result)
public Category save(ShopRequestContext reqCtx, Category category)
save
in interface CategoryService