public class ProductService extends EvrythngServiceBase
/products endpoint of the EVRYTHNG Engine API.| Modifier and Type | Field and Description |
|---|---|
protected ActionDeserializer |
deserializer |
static String |
PATH_PRODUCT |
static String |
PATH_PRODUCT_ACTIONS |
static String |
PATH_PRODUCT_ALL_ACTION |
static String |
PATH_PRODUCT_ALL_ACTIONS |
static String |
PATH_PRODUCT_PROPERTIES |
static String |
PATH_PRODUCT_PROPERTY |
static String |
PATH_PRODUCT_REDIRECTOR |
static String |
PATH_PRODUCT_REDIRECTOR_QR |
static String |
PATH_PRODUCT_TYPED_ACTION |
static String |
PATH_PRODUCT_TYPED_ACTIONS |
static String |
PATH_PRODUCTS |
| Constructor and Description |
|---|
ProductService(ApiManager apiManager,
EvrythngJacksonModule evrythngJacksonModule) |
absoluteUri, delete, deleteMultiple, encodeBase64, get, getConfig, iterator, mqttUrl, onBuilderCreated, post, post, postAsynchronously, postMultipart, postMultipart, put, put, putMultipart, putMultipart, putMultiple, urlEncodePathPartpublic static final String PATH_PRODUCTS
public static final String PATH_PRODUCT
public static final String PATH_PRODUCT_PROPERTIES
public static final String PATH_PRODUCT_PROPERTY
public static final String PATH_PRODUCT_REDIRECTOR
public static final String PATH_PRODUCT_REDIRECTOR_QR
public static final String PATH_PRODUCT_ACTIONS
public static final String PATH_PRODUCT_ALL_ACTIONS
public static final String PATH_PRODUCT_ALL_ACTION
public static final String PATH_PRODUCT_TYPED_ACTIONS
public static final String PATH_PRODUCT_TYPED_ACTION
protected ActionDeserializer deserializer
public ProductService(ApiManager apiManager, EvrythngJacksonModule evrythngJacksonModule)
public EvrythngApiBuilder.Builder<Product> productCreator(Product product) throws EvrythngClientException
product - Product instanceEvrythngApiBuilder.BuilderEvrythngClientExceptionpublic final EvrythngApiBuilder.Builder<Iterator<org.pcollections.PVector<Product>>> iterator() throws EvrythngClientException
Products, whether all, by filter, or by ids, in an iterative way.EvrythngApiBuilder.Builder.perPage(int) method, until all matching resources are returned.EvrythngClientException - in case server communication fails.public EvrythngApiBuilder.Builder<Product> productReader(String productId) throws EvrythngClientException
productId - product idEvrythngApiBuilder.BuilderEvrythngClientExceptionpublic EvrythngApiBuilder.Builder<Long> productsUpdater(Product product) throws EvrythngClientException
Product. Select the {Product}s to update using query parameters ?ids or ?filter.
PUT "/products"
product - Product instanceEvrythngApiBuilder.BuilderEvrythngClientExceptionpublic EvrythngApiBuilder.Builder<Product> productUpdater(String productId, Product product) throws EvrythngClientException
productId - product idproduct - Product instanceEvrythngApiBuilder.BuilderEvrythngClientExceptionpublic EvrythngApiBuilder.Builder<Boolean> productDeleter(String productId) throws EvrythngClientException
productId - product idEvrythngApiBuilder.BuilderEvrythngClientExceptionpublic EvrythngApiBuilder.Builder<Long> productsDeleter() throws EvrythngClientException
DELETE "/products"
EvrythngApiBuilder.BuilderEvrythngClientExceptionpublic EvrythngApiBuilder.Builder<List<Property<?>>> propertiesCreator(String productId, List<Property<?>> properties) throws EvrythngClientException
productId - product idproperties - list of PropertyEvrythngApiBuilder.BuilderEvrythngClientExceptionpublic EvrythngApiBuilder.Builder<List<Property<?>>> propertiesReader(String productId) throws EvrythngClientException
productId - product idEvrythngApiBuilder.BuilderEvrythngClientExceptionpublic final EvrythngApiBuilder.Builder<Iterator<org.pcollections.PVector<Property<?>>>> propertiesIterator(String productId, String key) throws EvrythngClientException
EvrythngApiBuilder.Builder.perPage(int) method, until all matching resources are returned.EvrythngClientException - in case server communication fails.public EvrythngApiBuilder.Builder<Boolean> propertiesDeleter(String productId) throws EvrythngClientException
productId - product idEvrythngApiBuilder.BuilderEvrythngClientExceptionpublic EvrythngApiBuilder.Builder<List<Property<?>>> propertyReader(String productId, String key) throws EvrythngClientException
propertiesIterator(String, String) instead.productId - product idkey - keyEvrythngApiBuilder.BuilderEvrythngClientExceptionpublic EvrythngApiBuilder.Builder<List<Property<?>>> propertyUpdater(String productId, String key, Property<?> update) throws EvrythngClientException
productId - product idkey - keyupdate - property updateEvrythngApiBuilder.BuilderEvrythngClientExceptionpublic EvrythngApiBuilder.Builder<List<Property<?>>> propertyUpdater(String productId, String key, String value, Long timestamp) throws EvrythngClientException
EvrythngClientExceptionpublic EvrythngApiBuilder.Builder<List<Property<?>>> propertyUpdater(String productId, String key, Number value, Long timestamp) throws EvrythngClientException
EvrythngClientExceptionpublic EvrythngApiBuilder.Builder<List<Property<?>>> propertyUpdater(String productId, String key, Boolean value, Long timestamp) throws EvrythngClientException
EvrythngClientExceptionpublic EvrythngApiBuilder.Builder<List<Property<?>>> propertyUpdater(String thngId, String key, String value) throws EvrythngClientException
EvrythngClientExceptionpublic EvrythngApiBuilder.Builder<List<Property<?>>> propertyUpdater(String thngId, String key, Number value) throws EvrythngClientException
EvrythngClientExceptionpublic EvrythngApiBuilder.Builder<List<Property<?>>> propertyUpdater(String thngId, String key, Boolean value) throws EvrythngClientException
EvrythngClientExceptionpublic EvrythngApiBuilder.Builder<Boolean> propertyDeleter(String productId, String key) throws EvrythngClientException
productId - product idkey - keyEvrythngApiBuilder.BuilderEvrythngClientExceptionpublic EvrythngApiBuilder.Builder<Redirector> redirectorCreator(String productId, Redirector redirection) throws EvrythngClientException
Creates a redirector for the Product.
productId - product idredirection - Redirector instanceEvrythngApiBuilder.BuilderEvrythngClientExceptionpublic EvrythngApiBuilder.Builder<Redirector> redirectorReader(String productId) throws EvrythngClientException
Retrieves the redirector for the Product.
productId - product idEvrythngApiBuilder.BuilderEvrythngClientExceptionpublic EvrythngApiBuilder.Builder<Boolean> redirectorDeleter(String productId) throws EvrythngClientException
Deletes the redirector for the Product.
productId - product idEvrythngApiBuilder.BuilderEvrythngClientExceptionpublic EvrythngApiBuilder.Builder<Redirector> redirectorUpdater(String productId, Redirector redirection) throws EvrythngClientException
Updates the redirector for the Product.
productId - product idredirection - Redirector instanceEvrythngApiBuilder.BuilderEvrythngClientExceptionpublic <T extends Action> EvrythngApiBuilder.Builder<T> actionCreator(String productId, T action) throws EvrythngClientException
EvrythngClientExceptionpublic EvrythngApiBuilder.Builder<Action> actionAllCreator(String productId, Action action) throws EvrythngClientException
EvrythngClientExceptionpublic <T extends Action> EvrythngApiBuilder.Builder<T> actionReader(String productId, Class<T> actionClass, String actionId) throws EvrythngClientException
EvrythngClientExceptionpublic EvrythngApiBuilder.Builder<CustomAction> actionReader(String productId, String customType, String actionId) throws EvrythngClientException
EvrythngClientExceptionpublic EvrythngApiBuilder.Builder<Action> actionReader(String productId, String actionId) throws EvrythngClientException
EvrythngClientExceptionpublic EvrythngApiBuilder.Builder<List<Action>> actionsReader(String productId) throws EvrythngClientException
EvrythngClientExceptionpublic <T extends Action> EvrythngApiBuilder.Builder<List<T>> actionsReader(String productId, Class<T> actionClass) throws EvrythngClientException
EvrythngClientExceptionpublic EvrythngApiBuilder.Builder<List<CustomAction>> actionsReader(String productId, String customType) throws EvrythngClientException
EvrythngClientExceptionprotected void checkCustomType(String customType)
Copyright © 2016 EVRYTHNG Ltd London / Zurich. All rights reserved.