|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Annotatable
This interface is implemented by all items which can be annotated. Annotations are extra values attached to an item. Usually these values are used in the analysis of an experiment.
AnnotationSet
,
Annotation
,
AnnotationType
Method Summary | |
---|---|
Set<Annotatable> |
getAnnotatableParents()
Get all parents objects which are annotatable and the logged in user has read permission to. |
AnnotationSet |
getAnnotationSet()
Get the annotation set containing the annotations for this item. |
Protocol |
getProtocol()
A protcol used in the creation of an item that is used to attach annotations for the protocol parameters. |
boolean |
isAnnotated()
Check if this item has an annotation set. |
void |
removeAnnotations()
Remove all annotations from this item, by deleting the annotation set. |
Methods inherited from interface net.sf.basedb.core.Identifiable |
---|
getId, getType, getVersion |
Methods inherited from interface net.sf.basedb.core.AccessControlled |
---|
checkPermission, getPermissions, hasPermission |
Method Detail |
---|
AnnotationSet getAnnotationSet() throws PermissionDeniedException, BaseException
DbControl.commit()
is
called. To check if an item has annotations without creating a new
annotation set use the isAnnotated()
method.
AnnotationSet
PermissionDeniedException
- If the logged in user doesn't have
enough permissions
BaseException
- If there is another errorboolean isAnnotated()
void removeAnnotations() throws PermissionDeniedException, BaseException
PermissionDeniedException
- If the logged in user doesn't have
write permission
BaseException
- If there is another errorSet<Annotatable> getAnnotatableParents() throws BaseException
BaseException
- If there is an errorProtocol getProtocol()
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |