public class AnnotationHandler<B> extends ReferenceableHandler<B>
auditLog, beanClass, converter, defaultZones, errorHandler, invalidParameterHandler, localServerUserId, publishZones, repositoryHandler, repositoryHelper, securityVerifier, serverName, serviceName, supportedZones| Constructor and Description |
|---|
AnnotationHandler(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 annotation handler with information needed to work with B objects.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAnnotationReview(String userId,
String annotationGUID,
String annotationGUIDParameterName,
int annotationStatus,
Date reviewDate,
String steward,
String comment,
String annotationReviewTypeGUID,
String annotationReviewTypeName,
Map<String,Object> extendedProperties,
String methodName)
Attach an annotation review to an annotation.
|
String |
addAnnotationToAnnotation(String userId,
String parentAnnotationGUID,
Annotation annotation,
String methodName)
Add a new annotation and link it to an existing annotation.
|
String |
addAnnotationToDiscoveryReport(String userId,
String discoveryReportGUID,
Annotation annotation,
String methodName)
Add a new annotation to the annotation store as a top level annotation linked directly off of the report.
|
void |
deleteAnnotation(String userId,
String annotationGUID,
String methodName)
Remove an annotation from the annotation store.
|
B |
getAnnotation(String userId,
String annotationGUID,
String methodName)
Retrieve a single annotation by unique identifier.
|
List<B> |
getAnnotationsForAsset(String userId,
String assetGUID,
int startingFrom,
int maximumResults,
String methodName)
Return the list of annotations from previous runs of the discovery services that are set to
reviewed, approved and/or actioned status that are returned from
discovery reports that are not waiting or in progress.
|
List<B> |
getAnnotationsForAssetByStatus(String userId,
String assetGUID,
int status,
int startingFrom,
int maximumResults,
String methodName)
Return the list of annotations from previous runs of the discovery services that are set to a specific status.
|
List<B> |
getDiscoveryReportAnnotations(String userId,
String discoveryReportGUID,
int annotationStatus,
int startingFrom,
int maximumResults,
String methodName)
Return the annotations linked direction to the report.
|
List<B> |
getDiscoveryReportAnnotations(String userId,
String discoveryReportGUID,
int startingFrom,
int maximumResults,
String methodName)
Return the annotations linked direction to the report.
|
List<B> |
getExtendedAnnotations(String userId,
String annotationGUID,
int annotationStatus,
int startingFrom,
int maximumResults,
String methodName)
Return any annotations attached to this annotation.
|
List<B> |
getExtendedAnnotations(String userId,
String annotationGUID,
int startingFrom,
int maximumResults,
String methodName)
Return any annotations attached to this annotation.
|
List<String> |
getTypesOfAnnotation()
Return the annotation subtype names.
|
Map<String,String> |
getTypesOfAnnotationDescriptions()
Return the list of annotation subtype names mapped to their descriptions.
|
void |
updateAnnotation(String userId,
String annotationGUID,
Annotation annotation,
String methodName)
Replace the current properties of an annotation.
|
addSecurityTags, findBeanGUIDsByQualifiedName, findBeanGUIDsByQualifiedName, findBeansByQualifiedName, findBeansByQualifiedName, getBeanByQualifiedName, getBeanByQualifiedName, getBeanGUIDByQualifiedName, getBeanGUIDByQualifiedName, getBeanGUIDsByQualifiedName, getBeanGUIDsByQualifiedName, getBeansByQualifiedName, getBeansByQualifiedName, getMoreInformation, getMoreInformation, getVendorProperties, removeSecurityTags, removeSemanticAssignment, saveSemanticAssignment, saveSemanticAssignmentcountAttachments, createBeanFromTemplate, createBeanInRepository, deleteBeanInRepository, deleteBeanInRepository, findBeanGUIDs, findBeans, findBeans, findBeans, findEntities, getAllAttachmentLinks, getAnchorsForAttachedElements, getAttachedElement, getAttachedElement, getAttachedElementGUID, getAttachedElementGUID, getAttachedElementGUIDs, getAttachedElementGUIDs, getAttachedElements, getAttachedElements, getAttachedElements, getAttachedElements, getAttachedEntities, getAttachedEntities, getAttachedEntity, getAttachedEntity, getAttachmentLinks, getAttachmentLinks, getBeanByUniqueName, getBeanByUniqueName, getBeanByValue, getBeanFromRepository, getBeanFromRepository, getBeanGUIDByUniqueName, getBeanGUIDsByClassification, getBeanGUIDsByType, getBeanGUIDsByType, getBeanGUIDsByValue, getBeansByClassification, getBeansByCreator, getBeansByType, getBeansByType, getBeansByValue, getBeansByValue, getBeansByValue, getBeansByValue, getEntitiesByType, getEntitiesByValue, getEntitiesByValue, getEntityByValue, getEntityFromRepository, getEntityFromRepository, getEntityFromRepository, getEntityGUIDByValue, getRepositoryHelper, getServiceName, getUniqueAttachmentLink, linkElementToElement, linkElementToElement, relinkElementToNewElement, relinkElementToNewElement, setSecurityVerifier, unlinkAllElements, unlinkConnectedElement, unlinkElementFromElement, unlinkElementFromElement, updateBeanInRepository, updateBeanInRepository, updateBeanPropertyInRepository, updateBeanStatusInRepository, validateAnchorEntity, validateAnchorEntity, verifyExternalSourceIdentitypublic AnnotationHandler(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 from.defaultZones - list of zones that the access service should set in all new B instances.publishZones - list of zones that the access service sets up in published B instances.auditLog - destination for audit log events.public List<String> getTypesOfAnnotation()
public Map<String,String> getTypesOfAnnotationDescriptions()
public String addAnnotationToDiscoveryReport(String userId, String discoveryReportGUID, Annotation annotation, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - identifier of calling userdiscoveryReportGUID - unique identifier of the discovery analysis reportannotation - annotation objectmethodName - calling methodInvalidParameterException - the annotation is invalidUserNotAuthorizedException - the user id not authorized to issue this requestPropertyServerException - there was a problem retrieving adding the annotation to the annotation store.public String addAnnotationToAnnotation(String userId, String parentAnnotationGUID, Annotation annotation, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - identifier of calling userparentAnnotationGUID - unique identifier of the annotation that this new one is to be attached toannotation - annotation objectmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user id not authorized to issue this requestPropertyServerException - there was a problem saving annotations in the annotation store.public void updateAnnotation(String userId, String annotationGUID, Annotation annotation, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - identifier of calling userannotationGUID - unique identifierannotation - new propertiesmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user id not authorized to issue this requestPropertyServerException - there was a problem updating the annotation in the annotation store.public void addAnnotationReview(String userId, String annotationGUID, String annotationGUIDParameterName, int annotationStatus, Date reviewDate, String steward, String comment, String annotationReviewTypeGUID, String annotationReviewTypeName, Map<String,Object> extendedProperties, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userannotationGUID - annotation to attach toannotationGUIDParameterName - parameter supplying annotationGUIDannotationStatus - status of the annotation as a result of the reviewreviewDate - date of the reviewsteward - steward who performed the reviewcomment - comments from the stewardannotationReviewTypeGUID - subtype of the annotation review (or null for standard type)annotationReviewTypeName - subtype of the annotation review (or null for standard type)extendedProperties - any additional properties from the subtypemethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user id not authorized to issue this requestPropertyServerException - there was a problem updating the annotation in the annotation store.public void deleteAnnotation(String userId, String annotationGUID, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - identifier of calling userannotationGUID - unique identifier of the annotationmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user id not authorized to issue this requestPropertyServerException - there was a problem deleting the annotation from the annotation store.public B getAnnotation(String userId, String annotationGUID, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - identifier of calling userannotationGUID - unique identifier of the annotationmethodName - calling methodInvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.PropertyServerException - there was a problem that occurred within the property server.public List<B> getDiscoveryReportAnnotations(String userId, String discoveryReportGUID, int startingFrom, int maximumResults, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - identifier of calling userdiscoveryReportGUID - identifier of the discovery request.startingFrom - initial position in the stored list.maximumResults - maximum number of definitions to return on this call.methodName - calling methodInvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.PropertyServerException - there was a problem that occurred within the property server.public List<B> getDiscoveryReportAnnotations(String userId, String discoveryReportGUID, int annotationStatus, int startingFrom, int maximumResults, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - identifier of calling userdiscoveryReportGUID - identifier of the discovery request.annotationStatus - status of the desired annotations - null means all statuses.startingFrom - initial position in the stored list.maximumResults - maximum number of definitions to return on this call.methodName - calling methodInvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.PropertyServerException - there was a problem that occurred within the property server.public List<B> getExtendedAnnotations(String userId, String annotationGUID, int startingFrom, int maximumResults, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - identifier of calling userannotationGUID - anchor annotationstartingFrom - starting position in the listmaximumResults - maximum number of annotations that can be returned.methodName - calling methodInvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.PropertyServerException - there was a problem that occurred within the property server.public List<B> getExtendedAnnotations(String userId, String annotationGUID, int annotationStatus, int startingFrom, int maximumResults, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - identifier of calling userannotationGUID - anchor annotationannotationStatus - status of the desired annotations - null means all statuses.startingFrom - starting position in the listmaximumResults - maximum number of annotations that can be returned.methodName - calling methodInvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.PropertyServerException - there was a problem that occurred within the property server.public List<B> getAnnotationsForAsset(String userId, String assetGUID, int startingFrom, int maximumResults, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userassetGUID - unique identifier of the assetstartingFrom - starting position in the list.maximumResults - maximum number of elements that can be returnedmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user id not authorized to issue this requestPropertyServerException - there was a problem retrieving annotations from the annotation store.public List<B> getAnnotationsForAssetByStatus(String userId, String assetGUID, int status, int startingFrom, int maximumResults, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userassetGUID - unique identifier of the assetstatus - status value to use on the querystartingFrom - starting position in the list.maximumResults - maximum number of elements that can be returnedmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user id not authorized to issue this requestPropertyServerException - there was a problem retrieving annotations from the annotation store.Copyright © 2018–2020 ODPi. All rights reserved.