public abstract class BaseContext
extends java.lang.Object
implements java.io.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 |
---|---|
protected abstract void |
check(ThreadContext context,
BaseContext.Call call) |
void |
doCheck(BaseContext.Call call) |
java.security.Principal |
getCallerPrincipal() |
protected java.security.Principal |
getCallerPrincipal(SecurityService securityService) |
java.util.Map<java.lang.String,java.lang.Object> |
getContextData() |
EJBHome |
getEJBHome() |
EJBLocalHome |
getEJBLocalHome() |
boolean |
getRollbackOnly() |
TimerService |
getTimerService() |
UserTransaction |
getUserTransaction() |
UserTransaction |
getUserTransaction(UserTransaction userTransaction) |
protected java.lang.IllegalStateException |
illegal(BaseContext.Call call,
Operation operation) |
protected boolean |
isCallerInRole(SecurityService securityService,
java.lang.String roleName) |
boolean |
isCallerInRole(java.lang.String s) |
boolean |
isTimerMethodAllowed() |
boolean |
isUserTransactionAccessAllowed() |
java.lang.Object |
lookup(java.lang.String name) |
void |
setRollbackOnly() |
protected java.lang.Object |
writeReplace() |
protected final SecurityService securityService
protected final UserTransaction userTransaction
protected BaseContext(SecurityService securityService)
protected BaseContext(SecurityService securityService, UserTransaction userTransaction)
protected abstract void check(ThreadContext context, BaseContext.Call call)
protected java.lang.IllegalStateException illegal(BaseContext.Call call, Operation operation)
public java.util.Map<java.lang.String,java.lang.Object> getContextData()
public void doCheck(BaseContext.Call call)
public EJBHome getEJBHome()
public EJBLocalHome getEJBLocalHome()
public java.security.Principal getCallerPrincipal()
protected java.security.Principal getCallerPrincipal(SecurityService securityService)
public boolean isCallerInRole(java.lang.String s)
protected boolean isCallerInRole(SecurityService securityService, java.lang.String roleName)
public UserTransaction getUserTransaction() throws java.lang.IllegalStateException
java.lang.IllegalStateException
public UserTransaction getUserTransaction(UserTransaction userTransaction) throws java.lang.IllegalStateException
java.lang.IllegalStateException
public void setRollbackOnly() throws java.lang.IllegalStateException
java.lang.IllegalStateException
public boolean getRollbackOnly() throws java.lang.IllegalStateException
java.lang.IllegalStateException
public TimerService getTimerService() throws java.lang.IllegalStateException
java.lang.IllegalStateException
public boolean isTimerMethodAllowed()
public boolean isUserTransactionAccessAllowed()
public java.lang.Object lookup(java.lang.String name)
protected java.lang.Object writeReplace() throws java.io.ObjectStreamException
java.io.ObjectStreamException