I think the bean can also call isCallerInRole to determine if it should continue the business logic.
For example:
Code: Select all
if ( isCallerInRole("teacher")){
updateStudentGrades();
}
else if (isCallerInRole("admin)) {
updateStudentInfo();
}