hero.session
Class UserServiceBean

java.lang.Object
  extended byhero.session.UserServiceBean
All Implemented Interfaces:
javax.ejb.EnterpriseBean, java.io.Serializable, javax.ejb.SessionBean

public class UserServiceBean
extends java.lang.Object
implements javax.ejb.SessionBean

See Also:
Serialized Form

Constructor Summary
UserServiceBean()
           
 
Method Summary
 void ejbActivate()
          Internal Enterprise Java Beans method.
 void ejbCreate()
          Create the User Session Bean.
 void ejbPassivate()
          Internal Enterprise Java Beans method.
 void ejbRemove()
          Internal Enterprise Java Beans method.
 hero.interfaces.BnUserLocal findUser(java.lang.String name)
           
 hero.interfaces.BnUserLocal findUserLocal(java.lang.String name)
           
 java.util.Collection findUsers()
           
 java.util.Map getUserInfos(java.lang.String name)
           
 void setSessionContext(javax.ejb.SessionContext context)
          Internal Enterprise Java Beans method.
 void unsetSessionContext()
          Internal Enterprise Java Beans method.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserServiceBean

public UserServiceBean()
Method Detail

ejbCreate

public void ejbCreate()
               throws javax.ejb.CreateException
Create the User Session Bean. This method is the first one to invoke in order to creates a new user account.

Throws:
javax.ejb.CreateException

findUserLocal

public hero.interfaces.BnUserLocal findUserLocal(java.lang.String name)
                                          throws hero.util.HeroException
Parameters:
name -
Throws:
hero.util.HeroException

findUser

public hero.interfaces.BnUserLocal findUser(java.lang.String name)
                                     throws hero.util.HeroException
Parameters:
name -
Throws:
hero.util.HeroException

findUsers

public java.util.Collection findUsers()
                               throws hero.util.HeroException
Throws:
hero.util.HeroException

getUserInfos

public java.util.Map getUserInfos(java.lang.String name)
                           throws hero.util.HeroException
Parameters:
name -
Throws:
hero.util.HeroException

setSessionContext

public void setSessionContext(javax.ejb.SessionContext context)
                       throws java.rmi.RemoteException
Internal Enterprise Java Beans method.

Specified by:
setSessionContext in interface javax.ejb.SessionBean
Throws:
java.rmi.RemoteException

unsetSessionContext

public void unsetSessionContext()
                         throws java.rmi.RemoteException
Internal Enterprise Java Beans method.

Throws:
java.rmi.RemoteException

ejbRemove

public void ejbRemove()
               throws java.rmi.RemoteException
Internal Enterprise Java Beans method.

Specified by:
ejbRemove in interface javax.ejb.SessionBean
Throws:
java.rmi.RemoteException

ejbActivate

public void ejbActivate()
                 throws java.rmi.RemoteException
Internal Enterprise Java Beans method.

Specified by:
ejbActivate in interface javax.ejb.SessionBean
Throws:
java.rmi.RemoteException

ejbPassivate

public void ejbPassivate()
                  throws java.rmi.RemoteException
Internal Enterprise Java Beans method.

Specified by:
ejbPassivate in interface javax.ejb.SessionBean
Throws:
java.rmi.RemoteException