Interface ItemSearchRequestValidator
-
- All Known Implementing Classes:
ItemDeleteRequestValidator,ItemSearchPermissionValidator,KeyPropertyValuePresenceValidator,NotNullSearchRequestValidator,RequestedItemPresenceValidator
public interface ItemSearchRequestValidatorA validator forItemSearchRequests, which ensures certain conditions in the request before performing an item search byItemSearchService. If conditions are not met the validator can throw an instance ofRuntimeExceptionand to veto the search.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidvalidate(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 Detail
-
validate
void validate(ItemSearchRequest request)
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:
java.lang.RuntimeException- if request is not valid and cannot be corrected.
-
-