RoleFilter
- public class RoleFilter implements EntityFilterInterface
Constructors
RoleFilter
- public RoleFilter(Role role, String operator, boolean versioned)
Guarantees that all entities in the result set do have (“=”) or do not have (“!=”) the role in question.
- Parameters:
role – The role in question.
operator – Either “!=” or “=”.
- Throws:
NullPointerException – If role or operator is null.
IllegalArgumentException – If operator is not “=” or “!=”.
Methods
apply
- public void apply(QueryInterface query)
getCacheKey
toElement
- public Element toElement()