|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BusinessFunction
Interface for business function enclosures to implement. Implementations should consider making the execute() method automatically calling the checkSecurity, validate, and checkBusinessRules methods and then performing the work of the function. Regardless, this work performed by this method is intended to be executed after checkSecurity, validate, and checkBusinessRules have been executed.
| Method Summary | |
|---|---|
void |
checkBusinessRules()
Check any business rules associated with this business function, throwing a BusinessRuleException if any rule is violated. |
void |
checkSecurity()
Verify the security requirements of this business function have been met, throwing a SecurityException if they have not. |
void |
validate()
Validate that any data inputs supplied to the business function meet the minimum data integrity requirements of the function, throwing a ValidationException if they do not. |
| Methods inherited from interface com.rshtech.func.UndoableFunction |
|---|
isUndone, undo |
| Methods inherited from interface com.rshtech.func.Function |
|---|
execute, getResult |
| Method Detail |
|---|
void checkSecurity()
throws SecurityException
SecurityException - if the security
requirements have not been met.
void validate()
throws ValidationException
ValidationException - if the data inputs do not meet the data integrity
requirements of this business function.
void checkBusinessRules()
throws BusinessRuleException
BusinessRuleException - if any business rule associated with this business
function is violated.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||