Interface ItemPersistRequestValidator
-
- All Known Implementing Classes:
ItemPersistRequestPermissionValidator
public interface ItemPersistRequestValidator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidvalidate(PersistenceContext context, ItemModel itemModel)Validates the item can be persisted with the given context and rejects it by throwing an exception, if the specified request does not meet certain criteria.
-
-
-
Method Detail
-
validate
void validate(PersistenceContext context, ItemModel itemModel)
Validates the item can be persisted with the given context and rejects it by throwing an exception, if the specified request does not meet certain criteria.- Parameters:
context- a persistence context containing information about the item being persisted.itemModel- an item to be persisted- Throws:
java.lang.RuntimeException- if request is not valid and cannot be corrected.
-
-