public class MagentoCategoryManager extends MagentoHttpComponent
| 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) |
boolean |
removeProductFromCategory(long categoryId,
String productSku) |
String |
token() |
boolean |
updateCategory(Category category) |
deleteSecure, escape, getSecured, postSecure, putSecure, 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 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.