public class InheritAnnotationsManager
extends java.lang.Object
InheritSpecification
:s, each one holding a rule for
inheriting a single annotation type.
Use process(Annotatable)
to apply all rules to the given item.Modifier and Type | Class and 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.
|
Modifier and Type | Field and Description |
---|---|
private DbControl |
dc |
private InheritAnnotationsManager.AnnotationTypeFilter |
removeFilter |
private InheritAnnotationsManager.AnnotationTypeFilter |
resyncFilter |
private SnapshotManager |
snapshotManager |
private java.util.List<InheritSpecification> |
specifications |
Constructor and Description |
---|
InheritAnnotationsManager(DbControl dc,
SnapshotManager snapshotManager,
java.util.List<InheritSpecification> specifications) |
Modifier and Type | Method and Description |
---|---|
void |
process(Annotatable item)
Process the given item, inheriting and/or removing annotations as specified by
the rules.
|
private final DbControl dc
private final SnapshotManager snapshotManager
private final InheritAnnotationsManager.AnnotationTypeFilter removeFilter
private final InheritAnnotationsManager.AnnotationTypeFilter resyncFilter
private final java.util.List<InheritSpecification> specifications
public InheritAnnotationsManager(DbControl dc, SnapshotManager snapshotManager, java.util.List<InheritSpecification> specifications)
public void process(Annotatable item)