B - class that represents the collectionpublic class CollectionHandler<B> extends ReferenceableHandler<B>
auditLog, beanClass, converter, defaultZones, errorHandler, invalidParameterHandler, localServerUserId, publishZones, repositoryHandler, repositoryHelper, securityVerifier, serverName, serviceName, supportedZones| Constructor and Description |
|---|
CollectionHandler(OpenMetadataAPIGenericConverter<B> converter,
Class<B> beanClass,
String serviceName,
String serverName,
InvalidParameterHandler invalidParameterHandler,
RepositoryHandler repositoryHandler,
OMRSRepositoryHelper repositoryHelper,
String localServerUserId,
OpenMetadataServerSecurityVerifier securityVerifier,
List<String> supportedZones,
List<String> defaultZones,
List<String> publishZones,
AuditLog auditLog)
Construct the handler with information needed to work with B objects.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFolderClassificationToCollection(String userId,
String collectionGUID,
String collectionGUIDParameterName,
int orderBy,
String orderPropertyName,
String methodName)
Mark the collection as a taxonomy.
|
void |
addMemberToCollection(String userId,
String externalSourceGUID,
String externalSourceName,
String collectionGUID,
String collectionGUIDParameterName,
String memberGUID,
String memberGUIDParameterName,
String membershipRationale,
String methodName)
Add a member (Referenceable) to collection.
|
String |
createCollection(String userId,
String externalSourceGUID,
String externalSourceName,
String qualifiedName,
String displayName,
String description,
Map<String,String> additionalProperties,
String suppliedTypeName,
Map<String,Object> extendedProperties,
String classificationName,
String methodName)
Create the collection object.
|
String |
createCollectionFromTemplate(String userId,
String externalSourceGUID,
String externalSourceName,
String templateGUID,
String qualifiedName,
String displayName,
String description,
String methodName)
Create a new metadata element to represent a collection using an existing metadata element as a template.
|
String |
createFolder(String userId,
String externalSourceGUID,
String externalSourceName,
String qualifiedName,
String displayName,
String description,
Map<String,String> additionalProperties,
String suppliedTypeName,
Map<String,Object> extendedProperties,
int orderBy,
String orderPropertyName,
String methodName)
Create the folder object.
|
List<B> |
findCollections(String userId,
String searchString,
String searchStringParameterName,
int startFrom,
int pageSize,
String methodName)
Retrieve the list of collection metadata elements that contain the search string.
|
B |
getCollectionByGUID(String userId,
String guid,
String guidParameterName,
String methodName)
Retrieve the collection metadata element with the supplied unique identifier.
|
List<B> |
getCollectionsByName(String userId,
String name,
String nameParameterName,
int startFrom,
int pageSize,
String methodName)
Retrieve the list of collection metadata elements with a matching qualified or display name.
|
void |
removeCollection(String userId,
String externalSourceGUID,
String externalSourceName,
String collectionGUID,
String collectionGUIDParameterName,
String methodName)
Remove the metadata element representing a collection.
|
void |
removeFolderClassificationFromCollection(String userId,
String collectionGUID,
String collectionGUIDParameterName,
String methodName)
Remove the taxonomy designation from a collection.
|
void |
removeMemberFromCollection(String userId,
String externalSourceGUID,
String externalSourceName,
String collectionGUID,
String collectionGUIDParameterName,
String memberGUID,
String memberGUIDParameterName,
String methodName)
Remove a parent-child relationship between two categories.
|
void |
updateCollection(String userId,
String externalSourceGUID,
String externalSourceName,
String collectionGUID,
String collectionGUIDParameterName,
String qualifiedName,
String displayName,
String description,
Map<String,String> additionalProperties,
String suppliedTypeName,
Map<String,Object> extendedProperties,
String methodName)
Update the anchor object that all elements in a collection (terms and categories) are linked to.
|
addOwner, addSecurityTags, addTemplateClassification, clearBusinessSignificant, findBeanGUIDsByQualifiedName, findBeanGUIDsByQualifiedName, findBeansByQualifiedName, findBeansByQualifiedName, getBeanByQualifiedName, getBeanByQualifiedName, getBeanGUIDByQualifiedName, getBeanGUIDByQualifiedName, getBeanGUIDsByQualifiedName, getBeanGUIDsByQualifiedName, getBeansByQualifiedName, getBeansByQualifiedName, getCollectionMembers, getEntityByUniqueQualifiedName, getMoreInformation, getMoreInformation, getVendorProperties, linkElementsAsDuplicates, removeOwner, removeResourceListMember, removeSecurityTags, removeSemanticAssignment, removeTemplateClassification, saveResourceListMember, saveSemanticAssignment, saveSemanticAssignment, setBusinessSignificant, unlinkElementsAsDuplicatesarchiveBeanInRepository, archiveBeanInRepository, countAttachments, createBeanFromTemplate, createBeanInRepository, deleteBeanInRepository, deleteBeanInRepository, findAttachmentLinks, findBeanGUIDs, findBeans, findBeans, findBeans, findBeans, findEntities, getAllAttachmentLinks, getAnchorsForAttachedElements, getAttachedElement, getAttachedElement, getAttachedElementGUID, getAttachedElementGUID, getAttachedElementGUIDs, getAttachedElementGUIDs, getAttachedElements, getAttachedElements, getAttachedElements, getAttachedElements, getAttachedEntities, getAttachedEntities, getAttachedEntities, getAttachedEntity, getAttachedEntity, getAttachmentLinks, getAttachmentLinks, getAttachmentLinks, getBeanByUniqueName, getBeanByUniqueName, getBeanByValue, getBeanFromEntity, getBeanFromRepository, getBeanFromRepository, getBeanGUIDByUniqueName, getBeanGUIDByUniqueName, getBeanGUIDsByClassification, getBeanGUIDsByType, getBeanGUIDsByType, getBeanGUIDsByValue, getBeansByClassification, getBeansByCreator, getBeansByIntValue, getBeansByType, getBeansByType, getBeansByValue, getBeansByValue, getBeansByValue, getBeansByValue, getBeansByValue, getEntitiesByIntValue, getEntitiesByType, getEntitiesByValue, getEntitiesByValue, getEntitiesByValue, getEntitiesByValue, getEntityByValue, getEntityFromRepository, getEntityFromRepository, getEntityFromRepository, getEntityFromRepository, getEntityGUIDByValue, getEntityGUIDsByValue, getRepositoryHelper, getServiceName, getUniqueAttachmentLink, getUniqueAttachmentLink, linkElementToElement, linkElementToElement, maintainSupplementaryProperties, relinkElementToNewElement, relinkElementToNewElement, removeClassificationFromRepository, setClassificationInRepository, setClassificationInRepository, setSecurityVerifier, unlinkAllElements, unlinkAllElements, unlinkConnectedElement, unlinkConnectedElement, unlinkElementFromElement, unlinkElementFromElement, unlinkElementFromElement, unlinkElementFromElement, updateBeanEffectivityDates, updateBeanInRepository, updateBeanInRepository, updateBeanPropertyInRepository, updateBeanStatusInRepository, updateBeanStatusInRepository, updateClassificationEffectivityDates, updateElementToElementLink, updateElementToElementLink, updateRelationshipEffectivityDates, updateRelationshipProperties, validateAnchorEntity, validateAnchorEntity, verifyExternalSourceIdentitypublic CollectionHandler(OpenMetadataAPIGenericConverter<B> converter, Class<B> beanClass, String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, String localServerUserId, OpenMetadataServerSecurityVerifier securityVerifier, List<String> supportedZones, List<String> defaultZones, List<String> publishZones, AuditLog auditLog)
converter - specific converter for this bean classbeanClass - name of bean class that is represented by the generic class BserviceName - name of this serviceserverName - name of the local serverinvalidParameterHandler - handler for managing parameter errorsrepositoryHandler - manages calls to the repository servicesrepositoryHelper - provides utilities for manipulating the repository services objectslocalServerUserId - userId for this serversecurityVerifier - open metadata security services verifiersupportedZones - list of zones that the access service is allowed to serve B instances fromdefaultZones - list of zones that the access service should set in all new B instancespublishZones - list of zones that the access service sets up in published B instancesauditLog - destination for audit log eventspublic String createCollection(String userId, String externalSourceGUID, String externalSourceName, String qualifiedName, String displayName, String description, Map<String,String> additionalProperties, String suppliedTypeName, Map<String,Object> extendedProperties, String classificationName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userexternalSourceGUID - unique identifier of the software server capability that owns this collectionexternalSourceName - unique name of the software server capability that owns this collectionqualifiedName - unique name for the collection - used in other configurationdisplayName - short display name for the collectiondescription - description of the governance collectionadditionalProperties - additional properties for a collectionsuppliedTypeName - type name from the caller (enables creation of subtypes)extendedProperties - properties for a governance collection subtypeclassificationName - name of classification to add to the collection (assume no properties)methodName - calling methodInvalidParameterException - qualifiedName or userId is nullPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic String createFolder(String userId, String externalSourceGUID, String externalSourceName, String qualifiedName, String displayName, String description, Map<String,String> additionalProperties, String suppliedTypeName, Map<String,Object> extendedProperties, int orderBy, String orderPropertyName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userexternalSourceGUID - unique identifier of the software server capability that owns this collectionexternalSourceName - unique name of the software server capability that owns this collectionqualifiedName - unique name for the collection - used in other configurationdisplayName - short display name for the collectiondescription - description of the governance collectionadditionalProperties - additional properties for a collectionsuppliedTypeName - type name from the caller (enables creation of subtypes)extendedProperties - properties for a governance collection subtypeorderBy - the factor used to organize the membersorderPropertyName - name of property of OrderBy is 99 (OTHER)methodName - calling methodInvalidParameterException - qualifiedName or userId is nullPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic String createCollectionFromTemplate(String userId, String externalSourceGUID, String externalSourceName, String templateGUID, String qualifiedName, String displayName, String description, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userexternalSourceGUID - unique identifier of the software server capability that owns this collectionexternalSourceName - unique name of the software server capability that owns this collectiontemplateGUID - unique identifier of the metadata element to copyqualifiedName - unique name for the collection - used in other configurationdisplayName - short display name for the collectiondescription - description of the governance collectionmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void updateCollection(String userId, String externalSourceGUID, String externalSourceName, String collectionGUID, String collectionGUIDParameterName, String qualifiedName, String displayName, String description, Map<String,String> additionalProperties, String suppliedTypeName, Map<String,Object> extendedProperties, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userexternalSourceGUID - unique identifier of the software server capability that owns this collectionexternalSourceName - unique name of the software server capability that owns this collectioncollectionGUID - unique identifier of the collection to updatecollectionGUIDParameterName - parameter passing the collectionGUIDqualifiedName - unique name for the collection - used in other configurationdisplayName - short display name for the collectiondescription - description of the governance collectionadditionalProperties - additional properties for a governance collectionsuppliedTypeName - type of collectionextendedProperties - properties for a governance collection subtypemethodName - calling methodInvalidParameterException - qualifiedName or userId is nullPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void addFolderClassificationToCollection(String userId, String collectionGUID, String collectionGUIDParameterName, int orderBy, String orderPropertyName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling usercollectionGUID - unique identifier of assetcollectionGUIDParameterName - parameter name supplying collectionGUIDorderBy - the factor used to organize the membersorderPropertyName - name of property of OrderBy is 99 (OTHER)methodName - calling methodInvalidParameterException - entity not known, null userId or guidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void removeFolderClassificationFromCollection(String userId, String collectionGUID, String collectionGUIDParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling usercollectionGUID - unique identifier of assetcollectionGUIDParameterName - parameter name supplying collectionGUIDmethodName - calling methodInvalidParameterException - entity not known, null userId or guidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void addMemberToCollection(String userId, String externalSourceGUID, String externalSourceName, String collectionGUID, String collectionGUIDParameterName, String memberGUID, String memberGUIDParameterName, String membershipRationale, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userexternalSourceGUID - unique identifier of the software server capability that owns this collectionexternalSourceName - unique name of the software server capability that owns this collectioncollectionGUID - unique identifier of the collectioncollectionGUIDParameterName - parameter supplying the collectionGUIDmemberGUID - unique identifier of the element that is being added to the collectionmemberGUIDParameterName - parameter supplying the memberGUIDmembershipRationale - why is the element a member? (optional)methodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void removeMemberFromCollection(String userId, String externalSourceGUID, String externalSourceName, String collectionGUID, String collectionGUIDParameterName, String memberGUID, String memberGUIDParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userexternalSourceGUID - unique identifier of the software server capability that owns this collectionexternalSourceName - unique name of the software server capability that owns this collectioncollectionGUID - unique identifier of the collectioncollectionGUIDParameterName - parameter supplying the collectionGUIDmemberGUID - unique identifier of the element that is being added to the collectionmemberGUIDParameterName - parameter supplying the memberGUIDmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void removeCollection(String userId, String externalSourceGUID, String externalSourceName, String collectionGUID, String collectionGUIDParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userexternalSourceGUID - unique identifier of the software server capability that owns this collectionexternalSourceName - unique name of the software server capability that owns this collectioncollectionGUID - unique identifier of the metadata element to removecollectionGUIDParameterName - parameter supplying the collectionGUIDmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<B> findCollections(String userId, String searchString, String searchStringParameterName, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling usersearchString - string to find in the propertiessearchStringParameterName - name of parameter supplying the search stringstartFrom - paging start pointpageSize - maximum results that can be returnedmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<B> getCollectionsByName(String userId, String name, String nameParameterName, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling username - name to search fornameParameterName - parameter supplying namestartFrom - paging start pointpageSize - maximum results that can be returnedmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public B getCollectionByGUID(String userId, String guid, String guidParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userguid - unique identifier of the requested metadata elementguidParameterName - parameter name of guidmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.