Package org.imixs.workflow.faces.util
Class LoginController
- java.lang.Object
-
- org.imixs.workflow.faces.util.LoginController
-
@Named @RequestScoped public class LoginController extends Object
This Backing Bean acts as a Login Helper Class. Can be used to identify the login state- Author:
- rsoika
-
-
Constructor Summary
Constructors Constructor Description LoginController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoLogout(jakarta.faces.event.ActionEvent event)invalidates the current user sessionStringgetRemoteUser()returns the remote user NameStringgetServerURI()returns the full qualified server URI from the current web contextList<String>getUserNameList()Returns the current user name list including userId, roles and context groups.StringgetUserPrincipal()returns the userPrincipal NamebooleanisAuthenticated()returns true if user is authenticated and has at least on of the Imixs Access RolesbooleanisUserInRole(String aRoleName)Test security context isUserInRole
-
-
-
Method Detail
-
isAuthenticated
public boolean isAuthenticated()
returns true if user is authenticated and has at least on of the Imixs Access Roles- Returns:
-
isUserInRole
public boolean isUserInRole(String aRoleName)
Test security context isUserInRole- Parameters:
aRoleName-- Returns:
-
getUserPrincipal
public String getUserPrincipal()
returns the userPrincipal Name- Returns:
-
getRemoteUser
public String getRemoteUser()
returns the remote user Name- Returns:
-
getUserNameList
public List<String> getUserNameList()
Returns the current user name list including userId, roles and context groups.- Returns:
-
getServerURI
public String getServerURI()
returns the full qualified server URI from the current web context- Returns:
-
doLogout
public void doLogout(jakarta.faces.event.ActionEvent event)
invalidates the current user session- Parameters:
event-
-
-