|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hyperic.hq.bizapp.server.session.BizappSessionEJB
org.hyperic.hq.bizapp.server.session.AuthBossEJBImpl
public class AuthBossEJBImpl
The BizApp's interface to the Auth Subsystem
Nested Class Summary | |
---|---|
class |
AuthBossEJBImpl.UserZeventListener
|
Field Summary |
---|
Fields inherited from class org.hyperic.hq.bizapp.server.session.BizappSessionEJB |
---|
ctx |
Constructor Summary | |
---|---|
AuthBossEJBImpl()
|
Method Summary | |
---|---|
void |
addUser(int sessionID,
java.lang.String username,
java.lang.String password)
Add a user to the internal database |
void |
changePassword(int sessionID,
java.lang.String username,
java.lang.String password)
Change a password for a user |
void |
ejbActivate()
|
void |
ejbCreate()
|
void |
ejbPassivate()
|
void |
ejbRemove()
|
static org.hyperic.hq.bizapp.shared.AuthBossLocal |
getOne()
|
boolean |
isLoggedIn(java.lang.String username)
Check if a user is logged in. |
boolean |
isUser(int sessionID,
java.lang.String username)
Check existence of a user |
int |
login(java.lang.String username,
java.lang.String password)
Login a user. |
int |
loginGuest()
Login a guest. |
void |
logout(int sessionID)
Logout a user. |
void |
setSessionContext(javax.ejb.SessionContext ctx)
|
void |
startup()
Add buffered listener to register login audits post commit. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AuthBossEJBImpl()
Method Detail |
---|
public void startup()
public int login(java.lang.String username, java.lang.String password) throws javax.security.auth.login.LoginException, ApplicationException, PasswordIsNullException, ServerStillStartingException, AccountDisabledException
username
- The name of the user.password
- The password.
AccountDisabledException
ServerStillStartingException
PasswordIsNullException
javax.security.auth.login.LoginException
ApplicationException
public int loginGuest() throws javax.security.auth.login.LoginException, AccountDisabledException
javax.security.auth.login.LoginException
AccountDisabledException
public void logout(int sessionID)
sessionID
- The session id for the current userpublic boolean isLoggedIn(java.lang.String username)
username
- The name of the user.
public void addUser(int sessionID, java.lang.String username, java.lang.String password) throws SessionException
sessionID
- The session id for the current userusername
- The username to addpassword
- The password for this user
SessionException
public void changePassword(int sessionID, java.lang.String username, java.lang.String password) throws javax.ejb.FinderException, PermissionException, SessionException
sessionID
- The session id for the current userusername
- The user whose password should be updatedpassword
- The new password for the user
javax.ejb.FinderException
PermissionException
SessionException
public boolean isUser(int sessionID, java.lang.String username) throws SessionTimeoutException, SessionNotFoundException
SessionTimeoutException
SessionNotFoundException
public static org.hyperic.hq.bizapp.shared.AuthBossLocal getOne()
public void ejbCreate()
public void ejbRemove()
ejbRemove
in interface javax.ejb.SessionBean
public void ejbActivate()
ejbActivate
in interface javax.ejb.SessionBean
public void ejbPassivate()
ejbPassivate
in interface javax.ejb.SessionBean
public void setSessionContext(javax.ejb.SessionContext ctx)
setSessionContext
in interface javax.ejb.SessionBean
setSessionContext
in class BizappSessionEJB
|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |