Search This Blog

Wednesday, November 14, 2018

Example usage of @RolesAllowed


RolesAllowed Can be used at type or method level. It indicates that the given method or all business methods in the EJB can be accessed by users associated with the list of roles.


@RolesAllowed({"user"}) public String helloI88ca() { //... } @RolesAllowed({"team", "otherteam"}) public String helloI88ca() { //... }