public class CollectionManager extends Object
| Constructor and Description |
|---|
CollectionManager(AuthenticatedHTTPClient authenticatedHTTPClient,
Configuration configuration) |
public CollectionManager(AuthenticatedHTTPClient authenticatedHTTPClient, Configuration configuration)
public CollectionDTO newCollection(String userId, NewCollectionRequest newCollectionRequest) throws UnauthorizedException, IOException, URISyntaxException
public CollectionDTO[] listCollections(String userId, String type) throws UnauthorizedException, IOException, URISyntaxException
@Nullable public CollectionDTO getCollection(String userId, String collectionId) throws UnauthorizedException, IOException, URISyntaxException
public CollectionDTO updateCollection(String userId, String collectionId, UpdateCollectionRequest updateCollectionRequest) throws UnauthorizedException, IOException, URISyntaxException
public String publishCollection(String userId, String collectionId) throws UnauthorizedException, IOException, URISyntaxException
public void deleteCollection(String userId, String collectionId) throws UnauthorizedException, IOException, URISyntaxException
public ItemDTO[] prependItems(String userId, String collectionId, NewItemRequest[] newItems) throws UnauthorizedException, IOException, URISyntaxException
public ItemDTO[] appendItems(String userId, String collectionId, NewItemRequest[] newItems) throws UnauthorizedException, IOException, URISyntaxException
public ItemDTO[] insertBefore(String userId, String collectionId, String itemId, NewItemRequest[] newItems) throws UnauthorizedException, IOException, URISyntaxException
public ItemDTO[] insertAfter(String userId, String collectionId, String itemId, NewItemRequest[] newItems) throws UnauthorizedException, IOException, URISyntaxException
public ItemDTO[] updateItems(String userId, String collectionId, UpdateItemRequest[] updatedItems) throws UnauthorizedException, IOException, URISyntaxException
public ItemDTO[] moveToStart(String userId, String collectionId, String[] items) throws UnauthorizedException, IOException, URISyntaxException
public ItemDTO[] moveToEnd(String userId, String collectionId, String[] items) throws UnauthorizedException, IOException, URISyntaxException
public ItemDTO[] moveBefore(String userId, String collectionId, String itemId, String[] items) throws UnauthorizedException, IOException, URISyntaxException
public ItemDTO[] moveAfter(String userId, String collectionId, String itemId, String[] items) throws UnauthorizedException, IOException, URISyntaxException
public void deleteItems(String userId, String collectionId, String[] items) throws UnauthorizedException, IOException, URISyntaxException
Copyright © 2016 wix.com. All rights reserved.