Package net.sf.basedb.util.annotations
Class InheritAnnotationsManager
- java.lang.Object
-
- net.sf.basedb.util.annotations.InheritAnnotationsManager
-
public class InheritAnnotationsManager extends Object
Manager class for batch inheriting of annotations. The manager is created with a list ofInheritSpecification
:s, each one holding a rule for inheriting a single annotation type. Useprocess(Annotatable)
to apply all rules to the given item.- Since:
- 3.5
- Author:
- nicklas
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
InheritAnnotationsManager.AnnotationTypeFilter
Filter for finding annotation types to process.(package private) static class
InheritAnnotationsManager.UsableParentFilter
Filter used to find parent items that are annotated and for which the current user has permission to USE the annotations.
-
Field Summary
Fields Modifier and Type Field Description private DbControl
dc
private InheritAnnotationsManager.AnnotationTypeFilter
removeFilter
private InheritAnnotationsManager.AnnotationTypeFilter
resyncFilter
private SnapshotManager
snapshotManager
private List<InheritSpecification>
specifications
-
Constructor Summary
Constructors Constructor Description InheritAnnotationsManager(DbControl dc, SnapshotManager snapshotManager, List<InheritSpecification> specifications)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
process(Annotatable item)
Process the given item, inheriting and/or removing annotations as specified by the rules.
-
-
-
Field Detail
-
dc
private final DbControl dc
-
snapshotManager
private final SnapshotManager snapshotManager
-
removeFilter
private final InheritAnnotationsManager.AnnotationTypeFilter removeFilter
-
resyncFilter
private final InheritAnnotationsManager.AnnotationTypeFilter resyncFilter
-
specifications
private final List<InheritSpecification> specifications
-
-
Constructor Detail
-
InheritAnnotationsManager
public InheritAnnotationsManager(DbControl dc, SnapshotManager snapshotManager, List<InheritSpecification> specifications)
-
-
Method Detail
-
process
public void process(Annotatable item)
Process the given item, inheriting and/or removing annotations as specified by the rules.
-
-