| java.lang.Object | ||
| ↳ | com.atlassian.bitbucket.ao.AbstractAoDao | |
| ↳ | com.atlassian.bitbucket.internal.codeinsights.dao.AoInsightAnnotationDao | |
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.atlassian.bitbucket.ao.AbstractAoDao
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Count the number of annotations stored for the commit.
| |||||||||||
Count the number of annotations stored for the report.
| |||||||||||
Create a new annotation.
| |||||||||||
Delete an annotation by its ID.
| |||||||||||
Delete all the annotations for the provided
reportId filtering by externalIds if any is provided. | |||||||||||
Delete annotations for the reportId given.
| |||||||||||
Return the annotation identified by the given reportId and externalID.
| |||||||||||
Checks the external ids are unique.
| |||||||||||
Search for annotations matching the given fields.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.atlassian.bitbucket.ao.AbstractAoDao
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.bitbucket.internal.codeinsights.dao.InsightAnnotationDao
| |||||||||||
Count the number of annotations stored for the commit.
| repositoryId | id of repository the commit is in |
|---|---|
| commitId | commit id to count annotations for |
Count the number of annotations stored for the report.
| id | id of report to count for |
|---|
Create a new annotation.
| reportId | the ID of the report the annotation should be associated with |
|---|---|
| externalId | the external ID for the report |
| line | the line number on which this annotation is anchored |
| link | a link to associate with the annotation |
| message | the annotation's message |
| path | a path to the file on which the annotation is anchored |
| severity | the AnnotationSeverity severity of the annotation |
| type | the AnnotationType type of annotation |
Delete an annotation by its ID.
Delete all the annotations for the provided reportId filtering by externalIds if any is provided.
| reportId | the ID for the report to use when selecting annotations to delete |
|---|---|
| externalIds | if any are provided only annotations matching those external IDs will be deleted. Otherwise all annotations for the given report will be deleted |
Delete annotations for the reportId given.
| reportId | id of the report to delete annotations for |
|---|
Return the annotation identified by the given reportId and externalID.
| reportId | the getID() to which this annotation belongs |
|---|---|
| externalId | the InsightAnnotation#getExternalId() identifying the annotation |
Checks the external ids are unique. If any annotation has an external id in the list this will return true, but will not say which id already exists, or even if more than one id exists.
| reportID | report to check for |
|---|---|
| externalIds | external ids to check |
Search for annotations matching the given fields. Values in each field is ORed together and the fields are ANDed together.
| repositoryId | Only return annotations from this repository |
|---|---|
| commitId | Only return annotations for this commit |
| reportKeys | Only return annotations that belong to one of the given reports |
| externalIds | Only return annotations that belong to one of the given external IDs |
| modifiedFiles | Only return annotations that belong to one of the given paths and lines (if included) |
| severities | Only return annotations that have one of the given severities |
| types | Only return annotations that have one of the given types |
| pageRequest | page request |