public abstract class DiscoveryAnnotationStore extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
assetGUID |
protected DiscoveryReport |
discoveryReport |
protected String |
userId |
| Constructor and Description |
|---|
DiscoveryAnnotationStore(String userId,
String assetGUID,
DiscoveryReport discoveryReport)
Constructor sets up the key parameters for accessing the annotations store.
|
| Modifier and Type | Method and Description |
|---|---|
abstract String |
addAnnotationToAnnotation(String anchorAnnotationGUID,
Annotation annotation)
Add a new annotation and link it to an existing annotation.
|
abstract String |
addAnnotationToDataField(String anchorDataFieldGUID,
Annotation annotation)
Add a new annotation and link it to an existing data field.
|
abstract String |
addAnnotationToDiscoveryReport(Annotation annotation)
Add a new annotation to the annotation store as a top level annotation linked directly off of the report.
|
abstract String |
addDataFieldToDataField(String anchorDataFieldGUID,
DataField dataField)
Add a new data field and link it to an existing data field.
|
abstract String |
addDataFieldToDiscoveryReport(String annotationGUID,
DataField dataField)
Add a new data field to the Annotation store linked off of an annotation (typically SchemaAnalysisAnnotation).
|
abstract void |
deleteAnnotation(String annotationGUID)
Remove an annotation from the annotation store.
|
abstract void |
deleteDataField(String dataFieldGUID)
Remove a data field from the annotation store.
|
abstract Annotation |
getAnnotation(String annotationGUID)
Return a specific annotation stored in the annotation store (previous or new).
|
abstract DataField |
getDataField(String dataFieldGUID)
Return a specific data field stored in the annotation store (previous or new).
|
DiscoveryReport |
getDiscoveryReport()
Return the report identifier for this discovery context.
|
abstract List<Annotation> |
getExtendedAnnotations(String annotationGUID,
int startingFrom,
int maximumResults)
Return any annotations attached to this annotation.
|
abstract List<DataField> |
getNestedDataFields(String anchorDataFieldGUID,
int startingFrom,
int maximumResults)
Return any annotations attached to this annotation.
|
abstract List<Annotation> |
getNewAnnotationsForAsset(int startingFrom,
int maximumResults)
Return the current list of annotations for this discovery run.
|
abstract List<Annotation> |
getNewDataFieldsForAsset(int startingFrom,
int maximumResults)
Return the current list of data fields for this discovery run.
|
abstract List<Annotation> |
getPreviousAnnotationsForAsset(AnnotationStatus status,
int startingFrom,
int maximumResults)
Return the list of annotations from previous runs of the discovery service that are set to a specific status.
|
abstract List<Annotation> |
getPreviousAnnotationsForAsset(int startingFrom,
int maximumResults)
Return the list of Annotations created for the asset by previous runs of the discovery service.
|
abstract List<DataField> |
getPreviousDataFieldsForAsset(int startingFrom,
int maximumResults)
Return the list of data fields from previous runs of the discovery service.
|
abstract void |
linkAnnotation(String anchorGUID,
String annotationGUID)
Link an existing annotation to another object.
|
abstract void |
unlinkAnnotation(String anchorGUID,
String annotationGUID)
Remove the relationship between an annotation and another object.
|
abstract Annotation |
updateAnnotation(Annotation annotation)
Replace the current properties of an annotation.
|
abstract DataField |
updateDataField(DataField dataField)
Replace the current properties of a data field.
|
protected String userId
protected String assetGUID
protected DiscoveryReport discoveryReport
public DiscoveryAnnotationStore(String userId, String assetGUID, DiscoveryReport discoveryReport)
userId - calling userassetGUID - unique identifier of the asset that the annotations should be attached todiscoveryReport - discovery report that these annotations will be filed against.public DiscoveryReport getDiscoveryReport()
public abstract List<Annotation> getPreviousAnnotationsForAsset(int startingFrom, int maximumResults) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
startingFrom - starting position in the list.maximumResults - maximum number of elements that can be returnedInvalidParameterException - 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 abstract List<Annotation> getPreviousAnnotationsForAsset(AnnotationStatus status, int startingFrom, int maximumResults) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
status - status value to use on the querystartingFrom - starting position in the list.maximumResults - maximum number of elements that can be returnedInvalidParameterException - 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 abstract List<Annotation> getNewAnnotationsForAsset(int startingFrom, int maximumResults) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
startingFrom - starting position in the list.maximumResults - maximum number of elements that can be returnedInvalidParameterException - 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 abstract List<Annotation> getExtendedAnnotations(String annotationGUID, int startingFrom, int maximumResults) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
annotationGUID - anchor annotationstartingFrom - starting position in the listmaximumResults - maximum number of annotations that can be returned.InvalidParameterException - 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 abstract Annotation getAnnotation(String annotationGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
annotationGUID - unique identifier of the annotationInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user id not authorized to issue this requestPropertyServerException - there was a problem retrieving the annotation from the annotation store.public abstract String addAnnotationToDiscoveryReport(Annotation annotation) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
annotation - annotation objectInvalidParameterException - the annotation is invalidUserNotAuthorizedException - the user id not authorized to issue this requestPropertyServerException - there was a problem adding the annotation to the annotation store.public abstract String addAnnotationToAnnotation(String anchorAnnotationGUID, Annotation annotation) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
anchorAnnotationGUID - unique identifier of the annotation that this new one is to be attached toannotation - annotation objectInvalidParameterException - 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 abstract void linkAnnotation(String anchorGUID, String annotationGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
anchorGUID - unique identifier that the annotation is to be linked toannotationGUID - unique identifier of the annotationInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user id not authorized to issue this requestPropertyServerException - there was a problem updating annotations in the annotation store.public abstract void unlinkAnnotation(String anchorGUID, String annotationGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
anchorGUID - unique identifier that the annotation is to be unlinked fromannotationGUID - unique identifier of the annotationInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user id not authorized to issue this requestPropertyServerException - there was a problem updating annotations in the annotation store.public abstract Annotation updateAnnotation(Annotation annotation) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
annotation - new propertiesInvalidParameterException - 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 abstract void deleteAnnotation(String annotationGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
annotationGUID - unique identifier of the annotationInvalidParameterException - 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 abstract List<DataField> getPreviousDataFieldsForAsset(int startingFrom, int maximumResults) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
startingFrom - starting position in the list.maximumResults - maximum number of elements that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user id not authorized to issue this requestPropertyServerException - there was a problem retrieving data fields from the annotation store.public abstract List<Annotation> getNewDataFieldsForAsset(int startingFrom, int maximumResults) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
startingFrom - starting position in the list.maximumResults - maximum number of elements that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user id not authorized to issue this requestPropertyServerException - there was a problem retrieving data fields from the annotation store.public abstract List<DataField> getNestedDataFields(String anchorDataFieldGUID, int startingFrom, int maximumResults) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
anchorDataFieldGUID - anchor data field identifierstartingFrom - starting position in the listmaximumResults - maximum number of annotations that can be returned.InvalidParameterException - 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 abstract DataField getDataField(String dataFieldGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
dataFieldGUID - unique identifier of the data fieldInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user id not authorized to issue this requestPropertyServerException - there was a problem retrieving the data field from the annotation store.public abstract String addDataFieldToDiscoveryReport(String annotationGUID, DataField dataField) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
annotationGUID - unique identifier of the annotation that the data field is to be linked todataField - dataField objectInvalidParameterException - the dataField is invalid or the annotation GUID points to an annotation
that can not be associated with a data field.UserNotAuthorizedException - the user id not authorized to issue this requestPropertyServerException - there was a problem adding the data field to the Annotation store.public abstract String addDataFieldToDataField(String anchorDataFieldGUID, DataField dataField) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
anchorDataFieldGUID - unique identifier of the data field that this new one is to be attached todataField - data field objectInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user id not authorized to issue this requestPropertyServerException - there was a problem saving data fields in the annotation store.public abstract String addAnnotationToDataField(String anchorDataFieldGUID, Annotation annotation) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
anchorDataFieldGUID - unique identifier of the data field that this new one is to be attached toannotation - data field objectInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user id not authorized to issue this requestPropertyServerException - there was a problem saving data fields in the annotation store.public abstract DataField updateDataField(DataField dataField) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
dataField - new propertiesInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user id not authorized to issue this requestPropertyServerException - there was a problem updating the data field in the annotation store.public abstract void deleteDataField(String dataFieldGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
dataFieldGUID - unique identifier of the data fieldInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user id not authorized to issue this requestPropertyServerException - there was a problem deleting the data field from the annotation store.Copyright © 2018–2020 ODPi. All rights reserved.