Re: About Question enthuware.oce-ejbd.v6.2.606 :
Posted: Thu Jun 11, 2015 7:15 pm
For option 5 explanation, "the bean can call getCallerPrincipal and based on that it can either continue executing..."
I think the bean can also call isCallerInRole to determine if it should continue the business logic.
For example:
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();
}