public interface CollectionManagementInterface
| Modifier and Type | Method and Description |
|---|---|
void |
attachCollection(String userId,
String collectionGUID,
String anchorGUID)
Connect an existing collection to an anchor point.
|
Collection |
createCollection(String userId,
String qualifiedName,
String displayName,
String description,
String collectionUse,
Map<String,Object> additionalProperties)
Create a new generic collection.
|
Collection |
createFolder(String userId,
String qualifiedName,
String displayName,
String description,
String collectionUse,
CollectionOrder collectionOrder,
Map<String,Object> additionalProperties)
Create a collection that acts like a folder with an order.
|
Collection |
createSet(String userId,
String qualifiedName,
String displayName,
String description,
String collectionUse,
Map<String,Object> additionalProperties)
Create a collection that acts like a set (this does not allow duplicate entries).
|
void |
detachCollection(String userId,
String collectionGUID,
String anchorGUID)
Detach an existing collection from an anchor point.
|
Collection |
getCollection(String userId,
String collectionGUID)
Return the properties of a specific collection.
|
List<Collection> |
getCollections(String userId,
String anchorGUID,
int startFrom,
int pageSize)
Returns the list of collections that are linked off of the supplied anchor point.
|
void |
removeCollection(String userId,
String collectionGUID)
Delete a collection (the members are not affected).
|
List<Collection> getCollections(String userId, String anchorGUID, int startFrom, int pageSize) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making requestanchorGUID - unique identifier of referenceable object (typically a personal profile, project or
community) that they collections hang off of.startFrom - index of the list to start from (0 for start)pageSize - maximum number of elements to returnInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.Collection getCollection(String userId, String collectionGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.collectionGUID - unique identifier of the required connection.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.Collection createCollection(String userId, String qualifiedName, String displayName, String description, String collectionUse, Map<String,Object> additionalProperties) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.qualifiedName - unique name of the collection.displayName - short displayable name for the collection.description - description of the collection.collectionUse - description of how the collection is to be used.additionalProperties - additional arbitrary properties.InvalidParameterException - one of the parameters is invalid.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.Collection createFolder(String userId, String qualifiedName, String displayName, String description, String collectionUse, CollectionOrder collectionOrder, Map<String,Object> additionalProperties) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.qualifiedName - unique name of the collection.displayName - short displayable name for the collection.description - description of the collection.collectionUse - description of how the collection will be used.collectionOrder - description of how the members in the collection should be organized.additionalProperties - additional arbitrary properties.InvalidParameterException - one of the parameters is invalid.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.Collection createSet(String userId, String qualifiedName, String displayName, String description, String collectionUse, Map<String,Object> additionalProperties) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.qualifiedName - unique name of the collection.displayName - short displayable name for the collection.description - description of the collection.collectionUse - description of how the collection will be used.additionalProperties - additional arbitrary properties.InvalidParameterException - one of the parameters is invalid.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.void attachCollection(String userId, String collectionGUID, String anchorGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.collectionGUID - unique identifier of the collection.anchorGUID - unique identifier of referenceable object that the collection should be attached to.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.void detachCollection(String userId, String collectionGUID, String anchorGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.collectionGUID - unique identifier of the collection.anchorGUID - unique identifier of referenceable object that the collection should be attached to.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.void removeCollection(String userId, String collectionGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.collectionGUID - unique identifier of the collection.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.Copyright © 2018–2019 ODPi. All rights reserved.