Class ProductService
- java.lang.Object
-
- com.aboutyou.cloud.adminapi.service.AbstractService
-
- com.aboutyou.cloud.adminapi.service.ProductService
-
public class ProductService extends AbstractService
-
-
Constructor Summary
Constructors Constructor Description ProductService(HttpClient httpClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiCollection<Product>all()ApiCollection<Product>all(ApiOptions options)ApiCollection<Attribute>allAttributes(Identifier productIdentifier)ApiCollection<Attribute>allAttributes(Identifier productIdentifier, ApiOptions options)Productcreate(Product model)Productcreate(Product model, ApiOptions options)ProductcreateComposite(Product model)ProductcreateComposite(Product model, ApiOptions options)java.util.Map<java.lang.String,java.lang.Object>createOrUpdateCustomData(Identifier productIdentifier, java.util.Map<java.lang.String,java.lang.Object> model)java.util.Map<java.lang.String,java.lang.Object>createOrUpdateCustomData(Identifier productIdentifier, java.util.Map<java.lang.String,java.lang.Object> model, ApiOptions options)java.util.Map<java.lang.String,java.lang.Object>createOrUpdateCustomDataForKey(Identifier productIdentifier, java.lang.String key, java.util.Map<java.lang.String,java.lang.Object> model)java.util.Map<java.lang.String,java.lang.Object>createOrUpdateCustomDataForKey(Identifier productIdentifier, java.lang.String key, java.util.Map<java.lang.String,java.lang.Object> model, ApiOptions options)voiddelete(Identifier productIdentifier)voiddelete(Identifier productIdentifier, ApiOptions options)voiddeleteAttribute(Identifier productIdentifier, java.lang.String attributeGroupName)voiddeleteAttribute(Identifier productIdentifier, java.lang.String attributeGroupName, ApiOptions options)voiddeleteComposite(Identifier productIdentifier)voiddeleteComposite(Identifier productIdentifier, ApiOptions options)voiddeleteCustomData(Identifier productIdentifier)voiddeleteCustomData(Identifier productIdentifier, ApiOptions options)voiddeleteCustomDataForKey(Identifier productIdentifier, java.lang.String key)voiddeleteCustomDataForKey(Identifier productIdentifier, java.lang.String key, ApiOptions options)Productget(Identifier productIdentifier)Productget(Identifier productIdentifier, ApiOptions options)AttributegetAttribute(Identifier productIdentifier, java.lang.String attributeGroupName)AttributegetAttribute(Identifier productIdentifier, java.lang.String attributeGroupName, ApiOptions options)java.util.Map<java.lang.String,java.lang.Object>getCustomData(Identifier productIdentifier)java.util.Map<java.lang.String,java.lang.Object>getCustomData(Identifier productIdentifier, ApiOptions options)java.util.Map<java.lang.String,java.lang.Object>getCustomDataForKey(Identifier productIdentifier, java.lang.String key)java.util.Map<java.lang.String,java.lang.Object>getCustomDataForKey(Identifier productIdentifier, java.lang.String key, ApiOptions options)Productupdate(Identifier productIdentifier, Product model)Productupdate(Identifier productIdentifier, Product model, ApiOptions options)ProductupdateComposite(Identifier productIdentifier, Product model)ProductupdateComposite(Identifier productIdentifier, Product model, ApiOptions options)ProductMasterCategoriesupdateMasterCategories(Identifier productIdentifier, ProductMasterCategories model)ProductMasterCategoriesupdateMasterCategories(Identifier productIdentifier, ProductMasterCategories model, ApiOptions options)AttributeupdateOrCreateAttribute(Identifier productIdentifier, Attribute model)AttributeupdateOrCreateAttribute(Identifier productIdentifier, Attribute model, ApiOptions options)ProductStateupdateState(Identifier productIdentifier, ProductState model)ProductStateupdateState(Identifier productIdentifier, ProductState model, ApiOptions options)-
Methods inherited from class com.aboutyou.cloud.adminapi.service.AbstractService
request, request, requestCollection, requestCollection, resolvePath
-
-
-
-
Constructor Detail
-
ProductService
public ProductService(HttpClient httpClient)
-
-
Method Detail
-
create
public Product create(Product model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
create
public Product create(Product model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
get
public Product get(Identifier productIdentifier) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
get
public Product get(Identifier productIdentifier, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
all
public ApiCollection<Product> all() throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
all
public ApiCollection<Product> all(ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
update
public Product update(Identifier productIdentifier, Product model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
update
public Product update(Identifier productIdentifier, Product model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
delete
public void delete(Identifier productIdentifier) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
delete
public void delete(Identifier productIdentifier, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
updateOrCreateAttribute
public Attribute updateOrCreateAttribute(Identifier productIdentifier, Attribute model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
updateOrCreateAttribute
public Attribute updateOrCreateAttribute(Identifier productIdentifier, Attribute model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
deleteAttribute
public void deleteAttribute(Identifier productIdentifier, java.lang.String attributeGroupName) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
deleteAttribute
public void deleteAttribute(Identifier productIdentifier, java.lang.String attributeGroupName, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
getAttribute
public Attribute getAttribute(Identifier productIdentifier, java.lang.String attributeGroupName) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
getAttribute
public Attribute getAttribute(Identifier productIdentifier, java.lang.String attributeGroupName, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
allAttributes
public ApiCollection<Attribute> allAttributes(Identifier productIdentifier) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
allAttributes
public ApiCollection<Attribute> allAttributes(Identifier productIdentifier, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
updateMasterCategories
public ProductMasterCategories updateMasterCategories(Identifier productIdentifier, ProductMasterCategories model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
updateMasterCategories
public ProductMasterCategories updateMasterCategories(Identifier productIdentifier, ProductMasterCategories model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
createOrUpdateCustomData
public java.util.Map<java.lang.String,java.lang.Object> createOrUpdateCustomData(Identifier productIdentifier, java.util.Map<java.lang.String,java.lang.Object> model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
createOrUpdateCustomData
public java.util.Map<java.lang.String,java.lang.Object> createOrUpdateCustomData(Identifier productIdentifier, java.util.Map<java.lang.String,java.lang.Object> model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
deleteCustomData
public void deleteCustomData(Identifier productIdentifier) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
deleteCustomData
public void deleteCustomData(Identifier productIdentifier, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
getCustomData
public java.util.Map<java.lang.String,java.lang.Object> getCustomData(Identifier productIdentifier) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
getCustomData
public java.util.Map<java.lang.String,java.lang.Object> getCustomData(Identifier productIdentifier, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
createOrUpdateCustomDataForKey
public java.util.Map<java.lang.String,java.lang.Object> createOrUpdateCustomDataForKey(Identifier productIdentifier, java.lang.String key, java.util.Map<java.lang.String,java.lang.Object> model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
createOrUpdateCustomDataForKey
public java.util.Map<java.lang.String,java.lang.Object> createOrUpdateCustomDataForKey(Identifier productIdentifier, java.lang.String key, java.util.Map<java.lang.String,java.lang.Object> model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
deleteCustomDataForKey
public void deleteCustomDataForKey(Identifier productIdentifier, java.lang.String key) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
deleteCustomDataForKey
public void deleteCustomDataForKey(Identifier productIdentifier, java.lang.String key, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
getCustomDataForKey
public java.util.Map<java.lang.String,java.lang.Object> getCustomDataForKey(Identifier productIdentifier, java.lang.String key) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
getCustomDataForKey
public java.util.Map<java.lang.String,java.lang.Object> getCustomDataForKey(Identifier productIdentifier, java.lang.String key, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
createComposite
public Product createComposite(Product model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
createComposite
public Product createComposite(Product model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
updateComposite
public Product updateComposite(Identifier productIdentifier, Product model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
updateComposite
public Product updateComposite(Identifier productIdentifier, Product model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
deleteComposite
public void deleteComposite(Identifier productIdentifier) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
deleteComposite
public void deleteComposite(Identifier productIdentifier, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
updateState
public ProductState updateState(Identifier productIdentifier, ProductState model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
updateState
public ProductState updateState(Identifier productIdentifier, ProductState model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
-