Package org.alfresco.repo.policy
Interface BehaviourIndex<B extends BehaviourBinding>
-
- Type Parameters:
B- the type of Binding.
@AlfrescoPublicApi public interface BehaviourIndex<B extends BehaviourBinding>Index of Bound Behaviours.- Author:
- David Caruana
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddChangeObserver(org.alfresco.repo.policy.BehaviourChangeObserver<B> observer)Add a Behaviour Change Observer.java.util.Collection<BehaviourDefinition>find(B binding)Gets all bound behaviours for the specified binding.java.util.Collection<BehaviourDefinition>getAll()Gets all bound behavioursBehaviourFiltergetFilter()Gets the behaviour filter
-
-
-
Method Detail
-
getAll
java.util.Collection<BehaviourDefinition> getAll()
Gets all bound behaviours- Returns:
- the bound behaviours
-
find
java.util.Collection<BehaviourDefinition> find(B binding)
Gets all bound behaviours for the specified binding. Note: The index may use any algorithm for determining which behaviours are returned for the binding e.g. based on hierarchical binding- Parameters:
binding- the binding- Returns:
- the associated behaviours
-
addChangeObserver
void addChangeObserver(org.alfresco.repo.policy.BehaviourChangeObserver<B> observer)
Add a Behaviour Change Observer.- Parameters:
observer- the observer
-
getFilter
BehaviourFilter getFilter()
Gets the behaviour filter- Returns:
- the behaviour filter
-
-