Class ProductImageService
- java.lang.Object
-
- com.aboutyou.cloud.adminapi.service.AbstractService
-
- com.aboutyou.cloud.adminapi.service.ProductImageService
-
public class ProductImageService extends AbstractService
-
-
Constructor Summary
Constructors Constructor Description ProductImageService(HttpClient httpClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiCollection<ProductImage>all(Identifier productIdentifier)ApiCollection<ProductImage>all(Identifier productIdentifier, ApiOptions options)ApiCollection<Attribute>allAttributes(Identifier productIdentifier, Identifier imageIdentifier)ApiCollection<Attribute>allAttributes(Identifier productIdentifier, Identifier imageIdentifier, ApiOptions options)ProductImagecreate(Identifier productIdentifier, ProductImage model)ProductImagecreate(Identifier productIdentifier, ProductImage model, ApiOptions options)voiddelete(Identifier productIdentifier, Identifier imageIdentifier)voiddelete(Identifier productIdentifier, Identifier imageIdentifier, ApiOptions options)voiddeleteAttribute(Identifier productIdentifier, Identifier imageIdentifier, java.lang.String attributeGroupName)voiddeleteAttribute(Identifier productIdentifier, Identifier imageIdentifier, java.lang.String attributeGroupName, ApiOptions options)AttributegetAttribute(Identifier productIdentifier, Identifier imageIdentifier, java.lang.String attributeGroupName)AttributegetAttribute(Identifier productIdentifier, Identifier imageIdentifier, java.lang.String attributeGroupName, ApiOptions options)AttributeupdateOrCreateAttribute(Identifier productIdentifier, Identifier imageIdentifier, Attribute model)AttributeupdateOrCreateAttribute(Identifier productIdentifier, Identifier imageIdentifier, Attribute model, ApiOptions options)ProductImageupdatePosition(Identifier productIdentifier, Identifier imageIdentifier, ProductImagePosition model)ProductImageupdatePosition(Identifier productIdentifier, Identifier imageIdentifier, ProductImagePosition model, ApiOptions options)-
Methods inherited from class com.aboutyou.cloud.adminapi.service.AbstractService
request, request, requestCollection, requestCollection, resolvePath
-
-
-
-
Constructor Detail
-
ProductImageService
public ProductImageService(HttpClient httpClient)
-
-
Method Detail
-
create
public ProductImage create(Identifier productIdentifier, ProductImage model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
create
public ProductImage create(Identifier productIdentifier, ProductImage model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
all
public ApiCollection<ProductImage> all(Identifier productIdentifier) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
all
public ApiCollection<ProductImage> all(Identifier productIdentifier, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
updatePosition
public ProductImage updatePosition(Identifier productIdentifier, Identifier imageIdentifier, ProductImagePosition model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
updatePosition
public ProductImage updatePosition(Identifier productIdentifier, Identifier imageIdentifier, ProductImagePosition model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
delete
public void delete(Identifier productIdentifier, Identifier imageIdentifier) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
delete
public void delete(Identifier productIdentifier, Identifier imageIdentifier, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
updateOrCreateAttribute
public Attribute updateOrCreateAttribute(Identifier productIdentifier, Identifier imageIdentifier, Attribute model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
updateOrCreateAttribute
public Attribute updateOrCreateAttribute(Identifier productIdentifier, Identifier imageIdentifier, Attribute model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
deleteAttribute
public void deleteAttribute(Identifier productIdentifier, Identifier imageIdentifier, java.lang.String attributeGroupName) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
deleteAttribute
public void deleteAttribute(Identifier productIdentifier, Identifier imageIdentifier, java.lang.String attributeGroupName, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
getAttribute
public Attribute getAttribute(Identifier productIdentifier, Identifier imageIdentifier, java.lang.String attributeGroupName) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
getAttribute
public Attribute getAttribute(Identifier productIdentifier, Identifier imageIdentifier, java.lang.String attributeGroupName, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
allAttributes
public ApiCollection<Attribute> allAttributes(Identifier productIdentifier, Identifier imageIdentifier) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
allAttributes
public ApiCollection<Attribute> allAttributes(Identifier productIdentifier, Identifier imageIdentifier, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
-