use of org.structr.api.search.Occurrence in project structr by structr.
the class TypeSearchAttribute method includeInResult.
@Override
public boolean includeInResult(final GraphObject entity) {
final String nodeValue = entity.getProperty(getKey());
final Occurrence occur = getOccurrence();
final boolean isOfType = types.contains(nodeValue);
if (occur.equals(Occurrence.FORBIDDEN)) {
return !isOfType;
} else {
return isOfType;
}
}
Aggregations