org.apache.openejb.core.entity
Class EntityContext.ContextEntityState

java.lang.Object
  extended by org.apache.openejb.core.BaseContext.State
      extended by org.apache.openejb.core.entity.EntityContext.ContextEntityState
Enclosing class:
EntityContext

protected static class EntityContext.ContextEntityState
extends BaseContext.State


Constructor Summary
protected EntityContext.ContextEntityState()
           
 
Method Summary
 Principal getCallerPrincipal(SecurityService securityService)
           
 javax.ejb.EJBLocalObject getEJBLocalObject()
           
 javax.ejb.EJBObject getEJBObject()
           
 Object getPrimaryKey()
           
 boolean getRollbackOnly(TransactionManager transactionManager)
           
 javax.ejb.TimerService getTimerService()
           
 UserTransaction getUserTransaction(UserTransaction userTransaction)
           
 boolean isCallerInRole(SecurityService securityService, String roleName)
           
 boolean isEntityManagerAccessAllowed()
           
 boolean isEntityManagerFactoryAccessAllowed()
           
 boolean isMessageContextAccessAllowed()
           
 boolean isTimerAccessAllowed()
           
 boolean isUserTransactionAccessAllowed()
           
 void setRollbackOnly(TransactionManager transactionManager)
           
 
Methods inherited from class org.apache.openejb.core.BaseContext.State
getEJBHome, getEJBLocalHome, isJNDIAccessAllowed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityContext.ContextEntityState

protected EntityContext.ContextEntityState()
Method Detail

getEJBLocalObject

public javax.ejb.EJBLocalObject getEJBLocalObject()
                                           throws IllegalStateException
Throws:
IllegalStateException

getEJBObject

public javax.ejb.EJBObject getEJBObject()
                                 throws IllegalStateException
Throws:
IllegalStateException

getPrimaryKey

public Object getPrimaryKey()
                     throws IllegalStateException
Throws:
IllegalStateException

getCallerPrincipal

public Principal getCallerPrincipal(SecurityService securityService)
Overrides:
getCallerPrincipal in class BaseContext.State

isCallerInRole

public boolean isCallerInRole(SecurityService securityService,
                              String roleName)
Overrides:
isCallerInRole in class BaseContext.State

getUserTransaction

public UserTransaction getUserTransaction(UserTransaction userTransaction)
                                   throws IllegalStateException
Overrides:
getUserTransaction in class BaseContext.State
Throws:
IllegalStateException

setRollbackOnly

public void setRollbackOnly(TransactionManager transactionManager)
                     throws IllegalStateException
Overrides:
setRollbackOnly in class BaseContext.State
Throws:
IllegalStateException

getRollbackOnly

public boolean getRollbackOnly(TransactionManager transactionManager)
                        throws IllegalStateException
Overrides:
getRollbackOnly in class BaseContext.State
Throws:
IllegalStateException

getTimerService

public javax.ejb.TimerService getTimerService()
                                       throws IllegalStateException
Overrides:
getTimerService in class BaseContext.State
Throws:
IllegalStateException

isUserTransactionAccessAllowed

public boolean isUserTransactionAccessAllowed()
Overrides:
isUserTransactionAccessAllowed in class BaseContext.State

isMessageContextAccessAllowed

public boolean isMessageContextAccessAllowed()
Overrides:
isMessageContextAccessAllowed in class BaseContext.State

isEntityManagerFactoryAccessAllowed

public boolean isEntityManagerFactoryAccessAllowed()
Overrides:
isEntityManagerFactoryAccessAllowed in class BaseContext.State

isEntityManagerAccessAllowed

public boolean isEntityManagerAccessAllowed()
Overrides:
isEntityManagerAccessAllowed in class BaseContext.State

isTimerAccessAllowed

public boolean isTimerAccessAllowed()
Overrides:
isTimerAccessAllowed in class BaseContext.State


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