Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fltrail
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fides
fltrail
Commits
b23d51dd
Commit
b23d51dd
authored
6 years ago
by
Sven Kästle
Browse files
Options
Downloads
Patches
Plain Diff
refactor: Switch from object to annotation class and renamed variables
parent
150d2d9b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gemeinsamforschen/src/main/java/unipotsdam/gf/interfaces/Annotatable.java
+19
-14
19 additions, 14 deletions
...n/src/main/java/unipotsdam/gf/interfaces/Annotatable.java
with
19 additions
and
14 deletions
gemeinsamforschen/src/main/java/unipotsdam/gf/interfaces/Annotatable.java
+
19
−
14
View file @
b23d51dd
package
unipotsdam.gf.interfaces
;
import
unipotsdam.gf.modules.annotation.Annotation
;
import
java.util.ArrayList
;
/**
* @author Sven Kästle
* skaestle@uni-potsdam.de
...
...
@@ -7,42 +11,43 @@ package unipotsdam.gf.interfaces;
public
interface
Annotatable
{
/**
* Adds an annotation to a
documen
t and returns the new id
* Adds an annotation to a
targe
t and returns the new id
*
* @param userId The id of the author of the annotation
* @param annotation The annotation as an Object
* @param newAnnotation The new annotation as an Object
* @return Returns the id of the new annotation
*/
Str
in
g
addAnnotation
(
String
userId
,
Object
a
nnotation
);
in
t
addAnnotation
(
Annotation
newA
nnotation
);
/**
* Alters an annotation
*
* @param
i
d The id of the annotation
* @param
annotation The annotation as an Object
* @param
annotationI
d The id of the
original
annotation
* @param
newBody The new body of the annotation
*/
void
alterAnnotation
(
String
id
,
Object
annotation
);
void
alterAnnotation
(
int
annotationId
,
String
newBody
);
/**
* Deletes an annotation
*
* @param
i
d The id of the annotation
* @param
annotationI
d The id of the annotation
*/
void
deleteAnnotation
(
String
i
d
);
void
deleteAnnotation
(
int
annotationI
d
);
/**
* Returns a specific annotation from a
documen
t
* Returns a specific annotation from a
targe
t
*
* @param id The id of the annotation
* @param annotationId The id of the annotation
* @param targetId The id of the target
* @return Returns a specific annotation
*/
Object
getAnnotation
(
String
i
d
);
Annotation
getAnnotation
(
int
annotationId
,
int
targetI
d
);
/**
* Return all annotations from a
documen
t
* Return
s
all annotations from a
targe
t
*
* @param targetIds An ArrayList of target ids
* @return Returns all annotations
*/
Object
[]
getAnnotations
(
);
ArrayList
<
Annotation
>
getAnnotations
(
ArrayList
<
Integer
>
targetIds
);
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment