Method Summary |
|
public Identity | getCallerIdentity() Obtains the java.security.Identity of the caller. |
public Principal | getCallerPrincipal() Obtain the java.security.Principal that identifies the caller. |
public EJBHome | getEJBHome() the enterprise bean's home interface. |
public EJBLocalHome | getEJBLocalHome() Obtain the enterprise bean's local home interface. |
public Properties | getEnvironment() 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. |
public boolean | getRollbackOnly() Tests if the transaction has been marked for rollback only. |
public int | getState() |
abstract public TimerService | getTimerService() Get access to the EJB Timer Service.
the EJB Timer Service throws: IllegalStateException - Thrown if the instance is notallowed to use this method (e.g. |
public UserTransaction | getUserTransaction() Obtains the transaction demarcation interface.
The UserTransaction interface that the enterprise bean instancecan use for transaction demarcation. throws: IllegalStateException - Thrown if the instance container doesnot make the UserTransaction interface available to theinstance. |
public WorkManager | getWorkManager() |
public boolean | isCallerInRole(Identity role) Parameters: role - - The java.security.Identity of the role to be tested. |
public boolean | isCallerInRole(String roleName) Test if the caller has a given role.
Parameters: roleName - The name of the security role.The role must be one of the security-role-ref that is defined in thedeployment descriptor. |
public void | setRollbackOnly() Marks the current transaction for rollback. |
public void | setState(int newState) |