public class CollectionService extends EvrythngServiceBase
/collections endpoint of the EVRYTHNG API.| Modifier and Type | Field and Description |
|---|---|
static String |
PATH_CHILD_COLLECTION |
static String |
PATH_CHILDREN_COLLECTIONS |
static String |
PATH_COLLECTION |
static String |
PATH_COLLECTION_THNG |
static String |
PATH_COLLECTION_THNGS |
static String |
PATH_COLLECTIONS |
static String |
PATH_COLLECTIONS_ACTIONS |
static String |
PATH_COLLECTIONS_TYPED_ACTION |
static String |
PATH_COLLECTIONS_TYPED_ACTIONS |
| Constructor and Description |
|---|
CollectionService(ApiManager apiManager) |
absoluteUri, delete, deleteMultiple, encodeBase64, get, getConfig, iterator, mqttUrl, onBuilderCreated, post, post, postAsynchronously, postMultipart, postMultipart, put, put, putMultipart, putMultipart, putMultiple, urlEncodePathPartpublic static final String PATH_COLLECTIONS
public static final String PATH_COLLECTION
public static final String PATH_COLLECTION_THNGS
public static final String PATH_COLLECTION_THNG
public static final String PATH_COLLECTIONS_ACTIONS
public static final String PATH_COLLECTIONS_TYPED_ACTIONS
public static final String PATH_COLLECTIONS_TYPED_ACTION
public static final String PATH_CHILDREN_COLLECTIONS
public static final String PATH_CHILD_COLLECTION
public CollectionService(ApiManager apiManager)
public EvrythngApiBuilder.Builder<Collection> collectionCreator(Collection collection) throws EvrythngClientException
Collection.
POST "/collections"
collection - the instant holding the Collection resource dataCollection creatorEvrythngClientExceptionpublic EvrythngApiBuilder.Builder<List<Collection>> collectionsReader() throws EvrythngClientException
Collection resources.
GET "/collections"
EvrythngApiBuilder.BuilderEvrythngClientExceptionpublic EvrythngApiBuilder.Builder<Collection> collectionReader(String collectionId) throws EvrythngClientException
Collection.
collectionId - collection idEvrythngApiBuilder.BuilderEvrythngClientExceptionpublic EvrythngApiBuilder.Builder<Collection> collectionUpdater(String collectionId, Collection collection) throws EvrythngClientException
Collection.
collectionId - collection idcollection - Collection instanceEvrythngApiBuilder.BuilderEvrythngClientExceptionpublic EvrythngApiBuilder.Builder<Boolean> collectionDeleter(String collectionId) throws EvrythngClientException
Collection.
DELETE "/collections/%s"
collectionId - collection idEvrythngApiBuilder.BuilderEvrythngClientExceptionpublic EvrythngApiBuilder.Builder<List<Thng>> thngsReader(String collectionId) throws EvrythngClientException
Thng resources linked with the
referenced Collection.
collectionId - collection idEvrythngApiBuilder.BuilderEvrythngClientExceptionpublic EvrythngApiBuilder.Builder<Collection> thngAdder(String collectionId, String thngId) throws EvrythngClientException
collectionId - collection idthngId - thng idEvrythngApiBuilder.BuilderEvrythngClientExceptionthngsAdder(String, List)public EvrythngApiBuilder.Builder<Collection> thngsAdder(String collectionId, List<String> thngs) throws EvrythngClientException
collectionId - collection idthngs - list of thng idsEvrythngApiBuilder.BuilderEvrythngClientExceptionpublic EvrythngApiBuilder.Builder<Boolean> thngRemover(String collectionId, String thngId) throws EvrythngClientException
collectionId - collection idthngId - thng idEvrythngApiBuilder.BuilderEvrythngClientExceptionpublic EvrythngApiBuilder.Builder<Boolean> thngsRemover(String collectionId) throws EvrythngClientException
collectionId - collection idEvrythngApiBuilder.BuilderEvrythngClientExceptionprotected void checkCustomType(String customType)
public <T extends Action> EvrythngApiBuilder.Builder<T> actionCreator(String collectionId, T actionToCreate) throws EvrythngClientException
EvrythngClientExceptionpublic EvrythngApiBuilder.Builder<CustomAction> actionReader(String collectionId, String customType, String actionId) throws EvrythngClientException
EvrythngClientExceptionpublic EvrythngApiBuilder.Builder<List<CustomAction>> actionsReader(String collectionId, String customType) throws EvrythngClientException
EvrythngClientExceptionpublic EvrythngApiBuilder.Builder<Boolean> childrenCollectionsRemover(String collectionId) throws EvrythngClientException
EvrythngClientExceptionpublic EvrythngApiBuilder.Builder<Boolean> childCollectionRemover(String collectionId, String childCollectionId) throws EvrythngClientException
Collection from the provided Collection.
EvrythngClientExceptionpublic EvrythngApiBuilder.Builder<Void> childrenCollectionsAdder(String collectionId, Set<String> childrenCollectionsId) throws EvrythngClientException
Collections matching the provided ids to the provided Collection.
EvrythngClientExceptionpublic EvrythngApiBuilder.Builder<Void> childCollectionAdder(String collectionId, String childCollectionId) throws EvrythngClientException
Collection matching the provided id to the provided Collection.
EvrythngClientExceptionpublic EvrythngApiBuilder.Builder<List<Collection>> childrenCollectionsReader(String collectionId) throws EvrythngClientException
EvrythngClientExceptionCopyright © 2016 EVRYTHNG Ltd London / Zurich. All rights reserved.