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 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
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
Modifier and Type Method Description void
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.
-