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
-
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
-
-