org.lateralnz.panther.wrapper
Class SessionContextWrapper

java.lang.Object
  extended by org.lateralnz.panther.wrapper.SessionContextWrapper
All Implemented Interfaces:
javax.ejb.EJBContext, javax.ejb.SessionContext

public class SessionContextWrapper
extends java.lang.Object
implements javax.ejb.SessionContext

simple wrapper for session context. At the moment this only supports the method "setRollbackOnly"


Constructor Summary
SessionContextWrapper(SessionBeanHome sbw)
           
 
Method Summary
 java.security.Identity getCallerIdentity()
           
 java.security.Principal getCallerPrincipal()
           
 javax.ejb.EJBHome getEJBHome()
           
 javax.ejb.EJBLocalHome getEJBLocalHome()
           
 javax.ejb.EJBLocalObject getEJBLocalObject()
           
 javax.ejb.EJBObject getEJBObject()
           
 java.util.Properties getEnvironment()
           
 boolean getRollbackOnly()
           
 javax.transaction.UserTransaction getUserTransaction()
           
 boolean isCallerInRole(java.security.Identity identity)
           
 boolean isCallerInRole(java.lang.String str)
           
 void setRollbackOnly()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionContextWrapper

public SessionContextWrapper(SessionBeanHome sbw)
Method Detail

getCallerIdentity

public java.security.Identity getCallerIdentity()
Specified by:
getCallerIdentity in interface javax.ejb.EJBContext

getCallerPrincipal

public java.security.Principal getCallerPrincipal()
Specified by:
getCallerPrincipal in interface javax.ejb.EJBContext

getEJBHome

public javax.ejb.EJBHome getEJBHome()
Specified by:
getEJBHome in interface javax.ejb.EJBContext

getEJBLocalHome

public javax.ejb.EJBLocalHome getEJBLocalHome()
Specified by:
getEJBLocalHome in interface javax.ejb.EJBContext

getEnvironment

public java.util.Properties getEnvironment()
Specified by:
getEnvironment in interface javax.ejb.EJBContext

getRollbackOnly

public boolean getRollbackOnly()
Specified by:
getRollbackOnly in interface javax.ejb.EJBContext

getUserTransaction

public javax.transaction.UserTransaction getUserTransaction()
Specified by:
getUserTransaction in interface javax.ejb.EJBContext

isCallerInRole

public boolean isCallerInRole(java.lang.String str)
Specified by:
isCallerInRole in interface javax.ejb.EJBContext

isCallerInRole

public boolean isCallerInRole(java.security.Identity identity)
Specified by:
isCallerInRole in interface javax.ejb.EJBContext

setRollbackOnly

public void setRollbackOnly()
Specified by:
setRollbackOnly in interface javax.ejb.EJBContext

getEJBLocalObject

public javax.ejb.EJBLocalObject getEJBLocalObject()
Specified by:
getEJBLocalObject in interface javax.ejb.SessionContext

getEJBObject

public javax.ejb.EJBObject getEJBObject()
Specified by:
getEJBObject in interface javax.ejb.SessionContext