Interface ItemSearchRequestValidator
- All Known Implementing Classes:
ItemDeleteRequestValidator,ItemSearchPermissionValidator,KeyPropertyValuePresenceValidator,NotNullSearchRequestValidator,RequestedItemPresenceValidator
public interface ItemSearchRequestValidator
A validator for
ItemSearchRequests, which
ensures certain conditions in the request before performing an item search by
ItemSearchService. If conditions are not met
the validator can throw an instance of RuntimeException and to veto the search.-
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate(ItemSearchRequest request) Validates the specified item search request and rejects it by throwing an exception, if the specified request does not meet certain criteria.
-
Method Details
-
validate
Validates the specified item search request and rejects it by throwing an exception, if the specified request does not meet certain criteria.- Parameters:
request- a request to validate- Throws:
RuntimeException- if request is not valid and cannot be corrected.
-