|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.northwestern.at.wordhoard.swing.annotations.AnnotationUtils
public class AnnotationUtils
Work set utilities.
| Constructor Summary | |
|---|---|
protected |
AnnotationUtils()
Don't allow instantiation but do allow overrides. |
| Method Summary | |
|---|---|
static AuthoredTextAnnotation |
createAnnotation(AuthoredTextAnnotation annot)
Create a new annotation. |
static boolean |
deleteAnnotation(AuthoredTextAnnotation annotation)
Delete a annotation. |
static java.util.Collection |
getAnnotations(java.lang.String annotates)
Get all annotations associated with a specific item if public or user logged in. |
static boolean |
updateAnnotation(AuthoredTextAnnotation annot,
java.lang.String text)
Update annotation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AnnotationUtils()
| Method Detail |
|---|
public static AuthoredTextAnnotation createAnnotation(AuthoredTextAnnotation annot)
throws BadOwnerException
annot - The annotation.
BadOwnerException - if the owner is null or empty.
public static boolean updateAnnotation(AuthoredTextAnnotation annot,
java.lang.String text)
throws BadOwnerException
BadOwnerException - if the owner is null or empty or not admin. public static boolean deleteAnnotation(AuthoredTextAnnotation annotation)
annotation - The annotation to delete.
The currently logged in user must be the owner to delete an annotation.
public static java.util.Collection getAnnotations(java.lang.String annotates)
annotates - The tag of the annotated item.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||