class CategoryServiceEP6Rest extends java.lang.Object implements CategoryService
Modifier and Type | Field and Description |
---|---|
private Converter<java.util.List<Link>,java.util.List<Link>> |
converter |
private InvocationBuilderFactory |
invocationBuilderFactory |
private javax.ws.rs.core.UriInfo |
uriInfo |
Constructor and Description |
---|
CategoryServiceEP6Rest(InvocationBuilderFactory invocationBuilderFactory,
Converter<java.util.List<Link>,java.util.List<Link>> converter,
javax.ws.rs.core.UriInfo uriInfo) |
Modifier and Type | Method and Description |
---|---|
private void |
addLinks(ShopRequestContext ctx,
Category category) |
private static void |
cleanupHtml(Category category,
java.lang.String baseUri) |
private void |
convertLinks(Category result) |
private <T> T |
doRestCall(javax.ws.rs.client.Invocation invocation,
java.lang.Class<T> class1) |
Category |
getCategory(ShopRequestContext ctx,
GUID categoryGUID) |
Category |
getRootCategory(ShopRequestContext ctx) |
(package private) Category |
invokeGet(ShopRequestContext ctx,
java.lang.String path) |
private Category |
postProcessCategories(ShopRequestContext ctx,
Category category)
In-place conversion.
|
Category |
save(ShopRequestContext reqCtx,
Category category) |
private final InvocationBuilderFactory invocationBuilderFactory
private final javax.ws.rs.core.UriInfo uriInfo
@Inject public CategoryServiceEP6Rest(InvocationBuilderFactory invocationBuilderFactory, Converter<java.util.List<Link>,java.util.List<Link>> converter, javax.ws.rs.core.UriInfo uriInfo)
public Category getRootCategory(ShopRequestContext ctx)
getRootCategory
in interface CategoryService
public Category getCategory(ShopRequestContext ctx, GUID categoryGUID)
getCategory
in interface CategoryService
Category invokeGet(ShopRequestContext ctx, java.lang.String path)
private <T> T doRestCall(javax.ws.rs.client.Invocation invocation, java.lang.Class<T> class1)
private Category postProcessCategories(ShopRequestContext ctx, Category category)
private void addLinks(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