}
// For compare operation
if (operation.getOperationType().equals(OperationType.COMPARE))
{
PreParseCompareOperation compareOp =
(PreParseCompareOperation) operation;
// Check the allowed/prohibited attributes
if (!prohibitedAttributes.isEmpty())
{
allowRequest =
!prohibitedAttributes.contains(compareOp
.getRawAttributeType());
}
if (!allowRequest)
{
statistics.updateRejectedAttributes();
messages.add(INFO_ERROR_ATTRIBUTE_NOT_ALLOWED.get());
return allowRequest;
}
if (!allowedAttributes.isEmpty())
{
allowRequest =
allowedAttributes.contains(compareOp
.getRawAttributeType());
}
if (!allowRequest)
{