Class 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 Detail

      • LoginController

        public LoginController()
    • 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 -