org.apache.openejb.core
Class BaseContext.State

java.lang.Object
  extended by org.apache.openejb.core.BaseContext.State
Direct Known Subclasses:
BaseSessionContext.SessionState, EntityContext.ActivatePassivateEntityState, EntityContext.ContextEntityState, EntityContext.CreateEntityState, EntityContext.FindEntityState, EntityContext.HomeEntityState, EntityContext.LifecycleBusinessTimeoutEntityState, MdbContext.BusinessTimeoutMdbState, MdbContext.InjectionMdbState, MdbContext.LifecycleMdbState
Enclosing class:
BaseContext

public static class BaseContext.State
extends java.lang.Object


Constructor Summary
BaseContext.State()
           
 
Method Summary
 java.security.Principal getCallerPrincipal(SecurityService securityService)
           
 javax.ejb.EJBHome getEJBHome()
           
 javax.ejb.EJBLocalHome getEJBLocalHome()
           
 boolean getRollbackOnly()
           
 javax.ejb.TimerService getTimerService()
           
 javax.transaction.UserTransaction getUserTransaction(javax.transaction.UserTransaction userTransaction)
           
 boolean isCallerInRole(SecurityService securityService, java.lang.String roleName)
           
 boolean isEntityManagerAccessAllowed()
           
 boolean isEntityManagerFactoryAccessAllowed()
           
 boolean isJNDIAccessAllowed()
           
 boolean isMessageContextAccessAllowed()
           
 boolean isTimerAccessAllowed()
           
 boolean isTimerMethodAllowed()
           
 boolean isUserTransactionAccessAllowed()
           
 void setRollbackOnly()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseContext.State

public BaseContext.State()
Method Detail

getEJBHome

public javax.ejb.EJBHome getEJBHome()

getEJBLocalHome

public javax.ejb.EJBLocalHome getEJBLocalHome()

getCallerPrincipal

public java.security.Principal getCallerPrincipal(SecurityService securityService)

isCallerInRole

public boolean isCallerInRole(SecurityService securityService,
                              java.lang.String roleName)

getUserTransaction

public javax.transaction.UserTransaction getUserTransaction(javax.transaction.UserTransaction userTransaction)
                                                     throws java.lang.IllegalStateException
Throws:
java.lang.IllegalStateException

setRollbackOnly

public void setRollbackOnly()
                     throws java.lang.IllegalStateException
Throws:
java.lang.IllegalStateException

getRollbackOnly

public boolean getRollbackOnly()
                        throws java.lang.IllegalStateException
Throws:
java.lang.IllegalStateException

getTimerService

public javax.ejb.TimerService getTimerService()
                                       throws java.lang.IllegalStateException
Throws:
java.lang.IllegalStateException

isTimerAccessAllowed

public boolean isTimerAccessAllowed()

isTimerMethodAllowed

public boolean isTimerMethodAllowed()

isUserTransactionAccessAllowed

public boolean isUserTransactionAccessAllowed()

isMessageContextAccessAllowed

public boolean isMessageContextAccessAllowed()

isJNDIAccessAllowed

public boolean isJNDIAccessAllowed()

isEntityManagerFactoryAccessAllowed

public boolean isEntityManagerFactoryAccessAllowed()

isEntityManagerAccessAllowed

public boolean isEntityManagerAccessAllowed()


Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.