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)java.util.Map<java.lang.String,java.lang.Object>createOrUpdateCustomData(java.lang.Integer brandId, java.util.Map<java.lang.String,java.lang.Object> model)java.util.Map<java.lang.String,java.lang.Object>createOrUpdateCustomData(java.lang.Integer brandId, java.util.Map<java.lang.String,java.lang.Object> model, ApiOptions options)java.util.Map<java.lang.String,java.lang.Object>createOrUpdateCustomDataForKey(java.lang.Integer brandId, java.lang.String key, java.util.Map<java.lang.String,java.lang.Object> model)java.util.Map<java.lang.String,java.lang.Object>createOrUpdateCustomDataForKey(java.lang.Integer brandId, java.lang.String key, java.util.Map<java.lang.String,java.lang.Object> model, ApiOptions options)voiddelete(java.lang.Integer brandId)voiddelete(java.lang.Integer brandId, ApiOptions options)voiddeleteCustomData(java.lang.Integer brandId)voiddeleteCustomData(java.lang.Integer brandId, ApiOptions options)voiddeleteCustomDataForKey(java.lang.Integer brandId, java.lang.String key)voiddeleteCustomDataForKey(java.lang.Integer brandId, java.lang.String key, ApiOptions options)Brandget(java.lang.Integer brandId)Brandget(java.lang.Integer brandId, ApiOptions options)java.util.Map<java.lang.String,java.lang.Object>getCustomData(java.lang.Integer brandId)java.util.Map<java.lang.String,java.lang.Object>getCustomData(java.lang.Integer brandId, ApiOptions options)java.util.Map<java.lang.String,java.lang.Object>getCustomDataForKey(java.lang.Integer brandId, java.lang.String key)java.util.Map<java.lang.String,java.lang.Object>getCustomDataForKey(java.lang.Integer brandId, java.lang.String key, 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
-
createOrUpdateCustomData
public java.util.Map<java.lang.String,java.lang.Object> createOrUpdateCustomData(java.lang.Integer brandId, 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(java.lang.Integer brandId, java.util.Map<java.lang.String,java.lang.Object> model, ApiOptions options) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
deleteCustomData
public void deleteCustomData(java.lang.Integer brandId) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
deleteCustomData
public void deleteCustomData(java.lang.Integer brandId, ApiOptions options) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
getCustomData
public java.util.Map<java.lang.String,java.lang.Object> getCustomData(java.lang.Integer brandId) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
getCustomData
public java.util.Map<java.lang.String,java.lang.Object> getCustomData(java.lang.Integer brandId, ApiOptions options) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
createOrUpdateCustomDataForKey
public java.util.Map<java.lang.String,java.lang.Object> createOrUpdateCustomDataForKey(java.lang.Integer brandId, 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(java.lang.Integer brandId, 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(java.lang.Integer brandId, java.lang.String key) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
deleteCustomDataForKey
public void deleteCustomDataForKey(java.lang.Integer brandId, java.lang.String key, ApiOptions options) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
getCustomDataForKey
public java.util.Map<java.lang.String,java.lang.Object> getCustomDataForKey(java.lang.Integer brandId, java.lang.String key) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
getCustomDataForKey
public java.util.Map<java.lang.String,java.lang.Object> getCustomDataForKey(java.lang.Integer brandId, java.lang.String key, ApiOptions options) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
-