Interface CollectionManagementInterface
public interface CollectionManagementInterface
The CollectionManagementInterface adds methods for managing collections that can be attached to communities
and personal profiles.
-
Method Summary
Modifier and TypeMethodDescriptioncreateCollection(String userId, String externalSourceGUID, String externalSourceName, org.odpi.openmetadata.frameworks.openmetadata.properties.collections.CollectionProperties properties) Create a new generic collection.createFolderCollection(String userId, String externalSourceGUID, String externalSourceName, org.odpi.openmetadata.frameworks.openmetadata.properties.collections.CollectionFolderProperties properties) Create a collection that acts like a folder with an order.List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.CollectionElement>findCollections(String userId, String searchString, int startFrom, int pageSize) Retrieve the list of collection metadata elements that contain the search string.org.odpi.openmetadata.frameworks.openmetadata.metadataelements.CollectionElementgetCollection(String userId, String collectionGUID) Return the properties of a specific collection.org.odpi.openmetadata.frameworks.openmetadata.metadataelements.CollectionMembergetCollectionMember(String userId, String collectionGUID, String memberGUID) Return details of the membership between a collection and a specific member of the collection.List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.CollectionMember>getCollectionMembers(String userId, String collectionGUID, int startFrom, int pageSize) Return a list of elements that are a member of a collection.List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.CollectionElement>getCollections(String userId, String parentGUID, int startFrom, int pageSize) Returns the list of collections that are linked off of the supplied element.List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.CollectionElement>getCollectionsByName(String userId, String name, int startFrom, int pageSize) Retrieve the list of collection metadata elements with a matching qualified or display name.List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.CollectionElement>getElementsCollections(String userId, String elementGUID, int startFrom, int pageSize) Return a list of collections that the supplied element is a member of.voidremoveCollection(String userId, String externalSourceGUID, String externalSourceName, String collectionGUID) Delete a collection.voidremoveFromCollection(String userId, String externalSourceGUID, String externalSourceName, String collectionGUID, String elementGUID) Remove an element from a collection.voidupdateCollection(String userId, String externalSourceGUID, String externalSourceName, String collectionGUID, boolean isMergeUpdate, org.odpi.openmetadata.frameworks.openmetadata.properties.collections.CollectionProperties properties) Update the metadata element representing a collection.voidupdateCollectionMembership(String userId, String externalSourceGUID, String externalSourceName, String collectionGUID, org.odpi.openmetadata.frameworks.openmetadata.properties.collections.CollectionMembershipProperties properties, boolean isMergeUpdate, String elementGUID) Add an element to a collection (or update its membership properties).
-
Method Details
-
getCollections
List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.CollectionElement> getCollections(String userId, String parentGUID, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException Returns the list of collections that are linked off of the supplied element.- Parameters:
userId- userId of user making requestparentGUID- unique identifier of referenceable object (typically a personal profile, project or community) that the collections hang off of.startFrom- index of the list to start from (0 for start)pageSize- maximum number of elements to return- Returns:
- a list of collections
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is null or invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem retrieving information from the property server(s).org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the requesting user is not authorized to issue this request.
-
getCollection
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.CollectionElement getCollection(String userId, String collectionGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException Return the properties of a specific collection.- Parameters:
userId- userId of user making request.collectionGUID- unique identifier of the required connection.- Returns:
- collection properties
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is null or invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem retrieving information from the property server(s).org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the requesting user is not authorized to issue this request.
-
findCollections
List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.CollectionElement> findCollections(String userId, String searchString, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the list of collection metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
userId- calling usersearchString- string to find in the propertiesstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getCollectionsByName
List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.CollectionElement> getCollectionsByName(String userId, String name, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the list of collection metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Parameters:
userId- calling username- name to search forstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
createCollection
String createCollection(String userId, String externalSourceGUID, String externalSourceName, org.odpi.openmetadata.frameworks.openmetadata.properties.collections.CollectionProperties properties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException Create a new generic collection.- Parameters:
userId- userId of user making request.externalSourceGUID- unique identifier of software capability representing the callerexternalSourceName- unique name of software capability representing the callerproperties- description of the collection.- Returns:
- unique identifier of the newly created Collection
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem retrieving information from the property server(s).org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the requesting user is not authorized to issue this request.
-
createFolderCollection
String createFolderCollection(String userId, String externalSourceGUID, String externalSourceName, org.odpi.openmetadata.frameworks.openmetadata.properties.collections.CollectionFolderProperties properties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException Create a collection that acts like a folder with an order.- Parameters:
userId- userId of user making request.externalSourceGUID- unique identifier of software capability representing the callerexternalSourceName- unique name of software capability representing the callerproperties- description of the collection.- Returns:
- unique identifier of the newly created Collection
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem retrieving information from the property server(s).org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the requesting user is not authorized to issue this request.
-
updateCollection
void updateCollection(String userId, String externalSourceGUID, String externalSourceName, String collectionGUID, boolean isMergeUpdate, org.odpi.openmetadata.frameworks.openmetadata.properties.collections.CollectionProperties properties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Update the metadata element representing a collection.- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software capability representing the callerexternalSourceName- unique name of software capability representing the callercollectionGUID- unique identifier of the metadata element to updateisMergeUpdate- should the new properties be merged with existing properties (true) or completely replace them (false)?properties- new properties for this element- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
removeCollection
void removeCollection(String userId, String externalSourceGUID, String externalSourceName, String collectionGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException Delete a collection. It is deleted from all parent elements. If members are anchored to the collection then they are also deleted.- Parameters:
userId- userId of user making request.externalSourceGUID- unique identifier of software capability representing the callerexternalSourceName- unique name of software capability representing the callercollectionGUID- unique identifier of the collection.- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is null or invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem retrieving information from the property server(s).org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the requesting user is not authorized to issue this request.
-
getCollectionMembers
List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.CollectionMember> getCollectionMembers(String userId, String collectionGUID, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException Return a list of elements that are a member of a collection.- Parameters:
userId- userId of user making request.collectionGUID- unique identifier of the collection.startFrom- index of the list to start from (0 for start)pageSize- maximum number of elements to return.- Returns:
- list of asset details
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem retrieving information from the property server(s).org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the requesting user is not authorized to issue this request.
-
getCollectionMember
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.CollectionMember getCollectionMember(String userId, String collectionGUID, String memberGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException Return details of the membership between a collection and a specific member of the collection.- Parameters:
userId- userId of user making request.collectionGUID- unique identifier of the collection.memberGUID- unique identifier of the element who is a member of the collection.- Returns:
- list of asset details
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem retrieving information from the property server(s).org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the requesting user is not authorized to issue this request.
-
getElementsCollections
List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.CollectionElement> getElementsCollections(String userId, String elementGUID, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException Return a list of collections that the supplied element is a member of.- Parameters:
userId- userId of user making request.elementGUID- unique identifier of the collection.startFrom- index of the list to start from (0 for start)pageSize- maximum number of elements to return.- Returns:
- list of asset details
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem retrieving information from the property server(s).org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the requesting user is not authorized to issue this request.
-
updateCollectionMembership
void updateCollectionMembership(String userId, String externalSourceGUID, String externalSourceName, String collectionGUID, org.odpi.openmetadata.frameworks.openmetadata.properties.collections.CollectionMembershipProperties properties, boolean isMergeUpdate, String elementGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException Add an element to a collection (or update its membership properties).- Parameters:
userId- userId of user making request.externalSourceGUID- unique identifier of software capability representing the callerexternalSourceName- unique name of software capability representing the callercollectionGUID- unique identifier of the collection.properties- new propertiesisMergeUpdate- should the properties be merged with the existing properties or replace them?elementGUID- unique identifier of the element.- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem updating information in the property server(s).org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the requesting user is not authorized to issue this request.
-
removeFromCollection
void removeFromCollection(String userId, String externalSourceGUID, String externalSourceName, String collectionGUID, String elementGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException Remove an element from a collection.- Parameters:
userId- userId of user making request.externalSourceGUID- unique identifier of software capability representing the callerexternalSourceName- unique name of software capability representing the callercollectionGUID- unique identifier of the collection.elementGUID- unique identifier of the element.- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem updating information in the property server(s).org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the requesting user is not authorized to issue this request.
-