|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.cinecolombia.interfases.control.util.EJBUtil
This is an utility class for obtaining EJB references in interfases module.
Constructor Summary | |
EJBUtil()
|
Method Summary | |
static InterfasesControllerHome |
getInterfasesControllerHome()
get Home reference to InterfasesController EJB |
static InterfasesHome |
getInterfasesHome()
get Home reference to a Interfases 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 InterfasesControllerHome getInterfasesControllerHome() throws java.lang.Exception
java.lang.Exception
public static InterfasesHome getInterfasesHome() 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 |