About Question enthuware.oce-ejbd.v6.2.606 :

Moderator: admin

Post Reply
himaiMinh
Posts: 358
Joined: Fri Nov 29, 2013 8:26 pm
Contact:

Re: About Question enthuware.oce-ejbd.v6.2.606 :

Post by himaiMinh »

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:

Code: Select all

          if ( isCallerInRole("teacher")){
                    updateStudentGrades();
            }
          else  if (isCallerInRole("admin)) {
                        updateStudentInfo();
                }



admin
Site Admin
Posts: 10053
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.oce-ejbd.v6.2.606 :

Post by admin »

Checking roles will not do because the restriction is to be based on client and not on role. For example, out of two clients in the same role, you may want to change the logic for one client.
HTH,
Paul.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 35 guests