public class MagentoCategoryManager extends MagentoHttpComponent
httpComponent| Constructor and Description |
|---|
MagentoCategoryManager(MagentoClient client) |
| Modifier and Type | Method and Description |
|---|---|
long |
addCategory(Category category) |
boolean |
addProductToCategory(long categoryId,
String productSku,
int position) |
Category |
all() |
String |
baseUri() |
boolean |
deleteCategory(long categoryId) |
Category |
getCategoryByIdClean(long id) |
Category |
getCategoryByIdWithChildren(long id) |
List<CategoryProduct> |
getProductsInCategory(long id) |
Category |
getRootCategoryById(long id) |
boolean |
removeProductFromCategory(long categoryId,
String productSku) |
String |
token() |
boolean |
updateCategory(Category category) |
deleteSecure, escape, getHttpComponent, getSecured, postSecure, putSecure, setHttpComponent, validatepublic MagentoCategoryManager(MagentoClient client)
public boolean deleteCategory(long categoryId)
public long addCategory(Category category)
public boolean updateCategory(Category category)
public Category all()
public Category getCategoryByIdClean(long id)
public Category getRootCategoryById(long id)
public Category getCategoryByIdWithChildren(long id)
public List<CategoryProduct> getProductsInCategory(long id)
public boolean addProductToCategory(long categoryId,
String productSku,
int position)
public String token()
token in class MagentoHttpComponentpublic String baseUri()
baseUri in class MagentoHttpComponentpublic boolean removeProductFromCategory(long categoryId,
String productSku)
Copyright © 2017. All rights reserved.