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
Modifier and Type Method Description ApiCollection<Product>all()ApiCollection<Product>all(ApiOptions options)Productcreate(Product model)Productcreate(Product model, ApiOptions options)voiddelete(Identifier productIdentifier)voiddelete(Identifier productIdentifier, ApiOptions options)Productget(Identifier productIdentifier)Productget(Identifier productIdentifier, ApiOptions options)Productupdate(Identifier productIdentifier, Product model)Productupdate(Identifier productIdentifier, Product model, ApiOptions options)Methods inherited from class com.aboutyou.cloud.adminapi.service.AbstractService
request, request, requestCollection, requestCollection, resolvePath
-
Constructor Details
-
Method Details
-
create
- Throws:
ApiErrorExceptionConnectionException
-
create
public Product create(Product model, ApiOptions options) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
get
- Throws:
ApiErrorExceptionConnectionException
-
get
public Product get(Identifier productIdentifier, ApiOptions options) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
all
- 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
- Throws:
ApiErrorExceptionConnectionException
-
delete
public void delete(Identifier productIdentifier, ApiOptions options) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-