public abstract class BaseContext extends Object implements javax.ejb.EJBContext, Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
BaseContext.Call |
static class |
BaseContext.State |
class |
BaseContext.UserTransactionWrapper |
| Modifier and Type | Field and Description |
|---|---|
protected SecurityService |
securityService |
protected UserTransaction |
userTransaction |
| Modifier | Constructor and Description |
|---|---|
protected |
BaseContext(SecurityService securityService) |
protected |
BaseContext(SecurityService securityService,
UserTransaction userTransaction) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
check(BaseContext.Call call) |
Identity |
getCallerIdentity() |
Principal |
getCallerPrincipal() |
protected Principal |
getCallerPrincipal(SecurityService securityService) |
Map<String,Object> |
getContextData() |
javax.ejb.EJBHome |
getEJBHome() |
javax.ejb.EJBLocalHome |
getEJBLocalHome() |
Properties |
getEnvironment() |
boolean |
getRollbackOnly() |
javax.ejb.TimerService |
getTimerService() |
UserTransaction |
getUserTransaction() |
UserTransaction |
getUserTransaction(UserTransaction userTransaction) |
protected IllegalStateException |
illegal(BaseContext.Call call,
Operation operation) |
boolean |
isCallerInRole(Identity identity) |
protected boolean |
isCallerInRole(SecurityService securityService,
String roleName) |
boolean |
isCallerInRole(String s) |
boolean |
isTimerMethodAllowed() |
boolean |
isUserTransactionAccessAllowed() |
Object |
lookup(String name) |
void |
setRollbackOnly() |
protected Object |
writeReplace() |
protected final SecurityService securityService
protected final UserTransaction userTransaction
protected BaseContext(SecurityService securityService)
protected BaseContext(SecurityService securityService, UserTransaction userTransaction)
public abstract void check(BaseContext.Call call)
protected IllegalStateException illegal(BaseContext.Call call, Operation operation)
public Map<String,Object> getContextData()
getContextData in interface javax.ejb.EJBContextpublic javax.ejb.EJBHome getEJBHome()
getEJBHome in interface javax.ejb.EJBContextpublic javax.ejb.EJBLocalHome getEJBLocalHome()
getEJBLocalHome in interface javax.ejb.EJBContextpublic Principal getCallerPrincipal()
getCallerPrincipal in interface javax.ejb.EJBContextprotected Principal getCallerPrincipal(SecurityService securityService)
public boolean isCallerInRole(String s)
isCallerInRole in interface javax.ejb.EJBContextprotected boolean isCallerInRole(SecurityService securityService, String roleName)
public UserTransaction getUserTransaction() throws IllegalStateException
getUserTransaction in interface javax.ejb.EJBContextIllegalStateExceptionpublic UserTransaction getUserTransaction(UserTransaction userTransaction) throws IllegalStateException
IllegalStateExceptionpublic void setRollbackOnly()
throws IllegalStateException
setRollbackOnly in interface javax.ejb.EJBContextIllegalStateExceptionpublic boolean getRollbackOnly()
throws IllegalStateException
getRollbackOnly in interface javax.ejb.EJBContextIllegalStateExceptionpublic javax.ejb.TimerService getTimerService()
throws IllegalStateException
getTimerService in interface javax.ejb.EJBContextIllegalStateExceptionpublic boolean isTimerMethodAllowed()
public boolean isUserTransactionAccessAllowed()
public final Properties getEnvironment()
getEnvironment in interface javax.ejb.EJBContextpublic final Identity getCallerIdentity()
getCallerIdentity in interface javax.ejb.EJBContextpublic final boolean isCallerInRole(Identity identity)
isCallerInRole in interface javax.ejb.EJBContextprotected Object writeReplace() throws ObjectStreamException
ObjectStreamExceptionCopyright © 1999–2014 The Apache Software Foundation. All rights reserved.