@SessionScoped @Alternative @Priority(value=2000) public class DummySessionService extends Object implements SessionService, Serializable
| Constructor and Description |
|---|
DummySessionService()
Constructs a new and empty dummy session bean.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canAdminister() |
boolean |
canManageOwnedCables() |
String |
getLoggedInName()
Returns the distinguished name of the logged in user.
|
String |
getVisibleName()
Returns the name of the logged in user, which should be used for all display purposes.
|
boolean |
isLoggedIn() |
se.esss.ics.rbac.loginmodules.service.Message |
login(String username,
String password)
Logs in with the given credentials.
|
se.esss.ics.rbac.loginmodules.service.Message |
logout()
Logs out the currently logged in user and returns the result as the message.
|
public DummySessionService()
public se.esss.ics.rbac.loginmodules.service.Message login(String username, String password)
SessionServicelogin in interface SessionServiceusername - the user name to usepassword - the passwordpublic se.esss.ics.rbac.loginmodules.service.Message logout()
SessionServicelogout in interface SessionServicepublic boolean isLoggedIn()
isLoggedIn in interface SessionServicepublic String getVisibleName()
SessionServicegetVisibleName in interface SessionServicepublic String getLoggedInName()
SessionServicegetLoggedInName in interface SessionServicepublic boolean canAdminister()
canAdminister in interface SessionServicepublic boolean canManageOwnedCables()
canManageOwnedCables in interface SessionServiceCopyright © 2025 European Spallation Source. All rights reserved.