|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.ejb.EnterpriseContext.EJBContextImpl
Constructor Summary | |
protected |
EnterpriseContext.EJBContextImpl()
|
Method Summary | |
java.security.Identity |
getCallerIdentity()
Deprecated. Use Principal getCallerPrincipal() instead. |
java.security.Principal |
getCallerPrincipal()
Get the Principal for the current caller. |
EJBHome (src) |
getEJBHome()
Obtain the enterprise bean's remote home interface. |
EJBLocalHome (src) |
getEJBLocalHome()
Obtain the enterprise bean's local home interface. |
java.util.Properties |
getEnvironment()
Deprecated. Use the JNDI naming context java:comp/env to access enterprise bean's environment. |
boolean |
getRollbackOnly()
Test if the transaction has been marked for rollback only. |
TimerService (src) |
getTimerService()
Get access to the EJB Timer Service. |
UserTransaction (src) |
getUserTransaction()
Obtain the transaction demarcation interface. |
boolean |
isCallerInRole(java.security.Identity id)
Deprecated. Use boolean isCallerInRole(String roleName) instead. |
boolean |
isCallerInRole(java.lang.String roleName)
Checks if the current caller has a given role. |
java.lang.Object |
lookup(java.lang.String name)
New from EJB 3.0. |
void |
setRollbackOnly()
Mark the current transaction for rollback. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected EnterpriseContext.EJBContextImpl()
Method Detail |
public java.lang.Object lookup(java.lang.String name)
EJBContext (src)
lookup
in interface EJBContext (src)
name
-
public java.security.Identity getCallerIdentity()
EJBContext (src)
Obtain the java.security.Identity of the caller. This method is deprecated in EJB 1.1. The Container is allowed to return alway null from this method. The enterprise bean should use the getCallerPrincipal method instead.
getCallerIdentity
in interface EJBContext (src)
public TimerService (src) getTimerService() throws java.lang.IllegalStateException
EJBContext (src)
getTimerService
in interface EJBContext (src)
java.lang.IllegalStateException
- The Container throws the exception
if the instance is not allowed to use this method (e.g. if the bean
is a stateful session bean)public java.security.Principal getCallerPrincipal()
getCallerPrincipal
in interface EJBContext (src)
public EJBHome (src) getEJBHome()
EJBContext (src)
getEJBHome
in interface EJBContext (src)
public EJBLocalHome (src) getEJBLocalHome()
EJBContext (src)
getEJBLocalHome
in interface EJBContext (src)
public java.util.Properties getEnvironment()
EJBContext (src)
Obtain the enterprise bean's environment properties.
Note: If the enterprise bean has no environment properties this method returns an empty java.util.Properties object. This method never returns null.
getEnvironment
in interface EJBContext (src)
public boolean getRollbackOnly()
EJBContext (src)
getRollbackOnly
in interface EJBContext (src)
public void setRollbackOnly()
EJBContext (src)
setRollbackOnly
in interface EJBContext (src)
public boolean isCallerInRole(java.security.Identity id)
EJBContext (src)
Test if the caller has a given role.
This method is deprecated in EJB 1.1. The enterprise bean should use the isCallerInRole(String roleName) method instead.
isCallerInRole
in interface EJBContext (src)
id
- - The java.security.Identity of the role to be tested.
public boolean isCallerInRole(java.lang.String roleName)
isCallerInRole
in interface EJBContext (src)
roleName
- - The name of the security role. The role must be one of the security roles that
is defined in the deployment descriptor.
public UserTransaction (src) getUserTransaction()
EJBContext (src)
getUserTransaction
in interface EJBContext (src)
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |