public class SimpleFilter extends Object implements AttributeFilter, RoleFilter
| Modifier and Type | Field and Description |
|---|---|
protected HashSet<String> |
excludedAttributeNames
Set of attribute names to disqualify
|
protected HashSet<String> |
excludedRoleNames
Sets of role names to disqualify
|
| Constructor and Description |
|---|
SimpleFilter()
Constructs a new
SimpleFilter |
| Modifier and Type | Method and Description |
|---|---|
SimpleFilter |
addExcludedAttributeName(String attributeName)
Adds one excluded name to the list of excluded attribute names.
|
SimpleFilter |
addExcludedAttributeNames(Set<String> attributeNames)
Adds a set of names to the list of excluded attribute names.
|
void |
addExcludedAttributeNames(String[] attributeNames)
Adds excluded attribute names, given as an array of Strings
|
SimpleFilter |
addExcludedRoleName(String roleName)
Adds one excluded name to the list of excluded role names.
|
SimpleFilter |
addExcludedRoleNames(Set<String> roleName)
Adds a set of names to the list of excluded role names.
|
SimpleFilter |
addExcludedRoleNames(String[] roleNames)
Adds excluded role names, given as an array of Strings
|
boolean |
isAttributeIncluded(String attributeName,
Object domainObject)
Checks if an attribute should be included or excluded.
|
boolean |
isRoleIncluded(String roleName,
Object domainObject)
Checks if a role should be included or excluded.
|
public SimpleFilter()
SimpleFilterpublic boolean isRoleIncluded(String roleName, Object domainObject)
RoleFilterisRoleIncluded in interface RoleFilterroleName - Name of the role or attribute.domainObject - The domain object.public boolean isAttributeIncluded(String attributeName, Object domainObject)
AttributeFilterisAttributeIncluded in interface AttributeFilterattributeName - Name of the role or attribute.domainObject - The domain object where the attribute is.public SimpleFilter addExcludedRoleName(String roleName)
roleName - (missing javadoc)public SimpleFilter addExcludedRoleNames(Set<String> roleName)
roleName - (missing javadoc)public SimpleFilter addExcludedRoleNames(String[] roleNames)
roleNames - (missing javadoc)public SimpleFilter addExcludedAttributeName(String attributeName)
attributeName - The attribute to exclude, given as "role.attribute"public SimpleFilter addExcludedAttributeNames(Set<String> attributeNames)
attributeNames - The attribute to exclude, given as a Set of Strings
"role.attribute"public void addExcludedAttributeNames(String[] attributeNames)
attributeNames - The attribute to exclude, given as an array of
Strings "role.attribute"Copyright © 2006–2017 Esito AS. All rights reserved.