This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EPractice Lab mock final exam quesiton 53  RSS feed

Himai Minh
Ranch Hand
Posts: 1565
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For this question, there are two model answers :
option b : annotate method processLicense with @RolesAllowed( {"CORPORATECUSTOMER" , "CUSTOMER" }....);
option d: if EJBContext.isCallerInRole("CORPORATECUSTOMER") return true.....

I think for option b, it should be @DeclareRoles instead.

According to session, the roles declared in @DeclareRoles can be tested with isCallerInRole.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!