|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.cinecolombia.cinecolombia.control.util.EJBUtil
This is an utility class for obtaining EJB references in cinecolombia module.
| Constructor Summary | |
EJBUtil()
|
|
| Method Summary | |
static CinecolombiaControllerHome |
getCinecolombiaControllerHome()
get Home reference to CinecolombiaController EJB |
static SecurityHome |
getSecurityHome()
get Home reference to a Security EJB |
static java.lang.String |
getUserId(javax.ejb.SessionContext context)
get the current user from the context |
static boolean |
isUserInRole(javax.ejb.SessionContext context,
java.lang.String rol)
determine if the current user belongs to a role |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EJBUtil()
| Method Detail |
public static CinecolombiaControllerHome getCinecolombiaControllerHome()
throws java.lang.Exception
java.lang.Exception
public static SecurityHome getSecurityHome()
throws java.lang.Exception
java.lang.Exception
public static java.lang.String getUserId(javax.ejb.SessionContext context)
throws java.lang.Exception
context - is the context
java.lang.Exception
public static boolean isUserInRole(javax.ejb.SessionContext context,
java.lang.String rol)
throws java.lang.Exception
context - is the contextrol - role of sistem
java.lang.Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||