Class BrandService
- java.lang.Object
-
- com.aboutyou.cloud.adminapi.service.AbstractService
-
- com.aboutyou.cloud.adminapi.service.BrandService
-
public class BrandService extends AbstractService
-
-
Constructor Summary
Constructors Constructor Description BrandService(HttpClient httpClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiCollection<Brand>all()ApiCollection<Brand>all(ApiOptions options)Brandcreate(Brand model)Brandcreate(Brand model, ApiOptions options)voiddelete(java.lang.Integer brandId)voiddelete(java.lang.Integer brandId, ApiOptions options)Brandget(java.lang.Integer brandId)Brandget(java.lang.Integer brandId, ApiOptions options)Brandupdate(java.lang.Integer brandId, Brand model)Brandupdate(java.lang.Integer brandId, Brand model, ApiOptions options)-
Methods inherited from class com.aboutyou.cloud.adminapi.service.AbstractService
request, request, requestCollection, requestCollection, resolvePath
-
-
-
-
Constructor Detail
-
BrandService
public BrandService(HttpClient httpClient)
-
-
Method Detail
-
all
public ApiCollection<Brand> all() throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
all
public ApiCollection<Brand> all(ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
get
public Brand get(java.lang.Integer brandId) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
get
public Brand get(java.lang.Integer brandId, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
create
public Brand create(Brand model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
create
public Brand create(Brand model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
update
public Brand update(java.lang.Integer brandId, Brand model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
update
public Brand update(java.lang.Integer brandId, Brand model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
delete
public void delete(java.lang.Integer brandId) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
delete
public void delete(java.lang.Integer brandId, ApiOptions options) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
-