1 Reply Latest reply on Feb 14, 2002 4:36 AM by Martin Stepanek

    How would you do this? (*little bit angry with the specs*)

    Martin Stepanek Newbie

      Hi all,

      I have the following problem:
      I have an application with custom security and I need to get all the roles of the caller in my beans (eg. I need construct a SQL query, which would select all documents, to which the current user has access permission).

      However, this seems to be impossible according to the EJB specs, because I have only the isCallerInRole method at disposal. There is no getCallerRoles method, which is IMHO a serious absence...

      Have you any idea how to overcome that? Hope, there is someone more experienced or perhaps more inventive than I :o) I really don't want to write the authentication and authorization system on my own...

      Thanks
      Martin Stepanek