Inheritance diagram for org.objectweb.jonas_ejb.container.JContext:
Public Member Functions | |
JContext (JFactory bf, EnterpriseBean i) | |
void | setState (int newState) |
int | getState () |
Identity | getCallerIdentity () |
Principal | getCallerPrincipal () throws IllegalStateException |
EJBHome | getEJBHome () throws IllegalStateException |
EJBLocalHome | getEJBLocalHome () throws IllegalStateException |
Properties | getEnvironment () |
boolean | getRollbackOnly () throws IllegalStateException |
abstract TimerService | getTimerService () throws IllegalStateException |
UserTransaction | getUserTransaction () throws IllegalStateException |
boolean | isCallerInRole (Identity role) |
boolean | isCallerInRole (String roleName) throws IllegalStateException |
void | setRollbackOnly () throws IllegalStateException |
Package Attributes | |
int | instanceState = 0 |
Florent Benoit (JACC security)
Definition at line 57 of file JContext.java.
|
Constructs a JContext
Definition at line 87 of file JContext.java. References org.objectweb.jonas_ejb.container.JFactory.cont, org.objectweb.jonas_ejb.container.JFactory.getContainer(), org.objectweb.jonas_ejb.container.JContainer.getPermissionManager(), org.objectweb.jonas_ejb.container.JFactory.getTransactionManager(), and org.objectweb.jonas_ejb.container.JContainer.tm. |
Here is the call graph for this function:
|
Obtains the java.security.Identity of the caller.
Definition at line 125 of file JContext.java. |
|
Obtain the java.security.Principal that identifies the caller. throws a java.lang.IllegalStateException if there is no security context available
Reimplemented in org.objectweb.jonas_ejb.container.JStatelessContext. Definition at line 136 of file JContext.java. References org.objectweb.jonas_ejb.container.JFactory.dd, org.objectweb.jonas_ejb.container.PrincipalFactory.getCallerPrincipal(), org.objectweb.jonas_ejb.container.JContainer.getPrincipalFactory(), org.objectweb.jonas_ejb.deployment.api.BeanDesc.getRunAsRole(), and org.objectweb.jonas_ejb.container.JContext.getState(). |
Here is the call graph for this function:
|
the enterprise bean's home interface.
Definition at line 159 of file JContext.java. |
|
Obtain the enterprise bean's local home interface.
Definition at line 168 of file JContext.java. References org.objectweb.jonas_ejb.container.JFactory.dd, and org.objectweb.jonas_ejb.deployment.api.BeanDesc.hasDefinedLocalInterface(). |
Here is the call graph for this function:
|
Obtains the enterprise bean's environment properties for EJB 1.0 style. (Conform to EJB 1.1 specification for a container chooses to provide support for EJB 1.0 style environment properties. Cf EJB 1.1 Chapter 14.5, pages 216-217) Note: If the enterprise bean has no environment properties, this method returns an empty java.util.Properties object. This method never returns null.
Definition at line 185 of file JContext.java. References org.objectweb.jonas_ejb.container.JFactory.getEjb10Environment(). |
Here is the call graph for this function:
|
Tests if the transaction has been marked for rollback only.
Reimplemented in org.objectweb.jonas_ejb.container.JSessionContext. Definition at line 194 of file JContext.java. References org.objectweb.jonas_ejb.container.JContext.getState(). Referenced by org.objectweb.jonas_ejb.container.JContext.setRollbackOnly(). |
Here is the call graph for this function:
|
|
Get access to the EJB Timer Service.
Implemented in org.objectweb.jonas_ejb.container.JEntityContext, org.objectweb.jonas_ejb.container.JStatefulContext, and org.objectweb.jonas_ejb.container.JStatelessContext. |
|
Obtains the transaction demarcation interface.
Definition at line 242 of file JContext.java. References org.objectweb.jonas_ejb.container.JContext.getState(), and org.objectweb.jonas_ejb.container.JFactory.isTxBeanManaged(). |
Here is the call graph for this function:
|
Test if the caller has a given role.
Reimplemented in org.objectweb.jonas_ejb.container.JStatelessContext. Definition at line 274 of file JContext.java. References org.objectweb.jonas_ejb.container.JFactory.dd, org.objectweb.jonas_ejb.container.JFactory.getEJBName(), org.objectweb.jonas_lib.deployment.api.SecurityRoleRefDesc.getRoleName(), org.objectweb.jonas_ejb.deployment.api.BeanDesc.getRunAsRole(), org.objectweb.jonas_ejb.deployment.api.BeanDesc.getSecurityRoleRefDescList(), org.objectweb.jonas_ejb.container.JContext.getState(), org.objectweb.jonas_ejb.container.PermissionManager.isCallerInRole(), and org.objectweb.jonas_ejb.deployment.api.BeanDesc.logger. |
Here is the call graph for this function:
|
Definition at line 261 of file JContext.java. |
|
Marks the current transaction for rollback. The transaction will become permanently marked for rollback. Definition at line 326 of file JContext.java. References org.objectweb.jonas_ejb.container.JContext.getRollbackOnly(). Referenced by org.objectweb.jonas_ejb.container.JEntitySwitchDB.notifyWriting(), and org.objectweb.jonas_ejb.container.JEntitySwitchCRU.notifyWriting(). |
Here is the call graph for this function:
|
Set the instance State Definition at line 102 of file JContext.java. References org.objectweb.jonas_ejb.container.JContext.instanceState. Referenced by org.objectweb.jonas_ejb.container.JEntityContext.activate(), org.objectweb.jonas_ejb.container.JStatefulContext.afterCompletion(), org.objectweb.jonas_ejb.container.JEntityFactory.createNewInstance(), and org.objectweb.jonas_ejb.container.JEntityContext.passivate(). |
|
State of this Context 0 = init, 1 = setContext done, 2 = ejbCreate done. Definition at line 76 of file JContext.java. Referenced by org.objectweb.jonas_ejb.container.JContext.getState(), and org.objectweb.jonas_ejb.container.JContext.setState(). |