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