Class SessionBean

All Implemented Interfaces:
ISessionBean, Serializable

@Named @SessionScoped public class SessionBean extends AJSFContext implements ISessionBean
See Also:
  • Constructor Details

    • SessionBean

      public SessionBean()
  • Method Details

    • getUser

      public IUser getUser()
    • getBrowserType

      public EBrowserType getBrowserType()
    • getParameterPID

      public Long getParameterPID()
    • setParameterPID

      public void setParameterPID(Long id)
    • getLastVisitedClient

      public Mandant getLastVisitedClient()
    • setLastVisitedClient

      public void setLastVisitedClient(Mandant lastVisitedClient)
    • isLoggedIn

      public boolean isLoggedIn()
    • isSuperAdmin

      public boolean isSuperAdmin()
    • isHasUserInboxAccess

      public boolean isHasUserInboxAccess()
    • getUri

      public String getUri(IView view)
      Parameters:
      view - the view to link to
      Returns:
      an uri with maybe client id
    • checkMultiLogin

      public void checkMultiLogin()
    • checkProductUpdatePrompt

      public void checkProductUpdatePrompt()
    • disposeOtherSessions

      public void disposeOtherSessions()
    • getClientHash

      public String getClientHash()
    • getExpireDate

      public String getExpireDate()
    • logout

      public void logout()
    • isSetupUser

      @Deprecated public boolean isSetupUser()
      Deprecated.
    • isLdapUser

      @Deprecated public boolean isLdapUser()
      Deprecated.
    • getSuperAdminName

      @Deprecated public String getSuperAdminName()
      Deprecated.
      TODO(fse) use UserDataBean.getSuperAdminName instead?
    • getContextBean

      @Deprecated public AContextBean getContextBean()
      Deprecated.
      Returns:
      The context bean for the current context, that is, either the MSContextBean or the FSContextBean.
    • getCurrentClient

      @Deprecated public Mandant getCurrentClient()
      Deprecated.
      The client is now view dependent not session dependent. Users are now able to switch between clients and thus have multiple views with different client. Use the method CurrentViewBean.getCurrentClient() instead to get the client for the current view.
      Specified by:
      getCurrentClient in interface ISessionBean
    • setCurrentClient

      @Deprecated public void setCurrentClient(Mandant currentClient)
      Deprecated.
      Specified by:
      setCurrentClient in interface ISessionBean
    • getCurrentUser

      @Deprecated public Benutzer getCurrentUser()
      Deprecated.
      Specified by:
      getCurrentUser in interface ISessionBean
    • setCurrentUser

      @Deprecated public void setCurrentUser(Benutzer currentUser)
      Deprecated.
      Specified by:
      setCurrentUser in interface ISessionBean
    • getCurrentUserGroups

      @Deprecated public List<BenutzerGruppe> getCurrentUserGroups()
      Deprecated.
      the user groups of a user within a client should be gotten via IUser.getClientUserGroups(String, Mandant).
      Specified by:
      getCurrentUserGroups in interface ISessionBean
    • setCurrentUserGroups

      @Deprecated public void setCurrentUserGroups(List<BenutzerGruppe> currentUserGroups)
      Deprecated.
      Specified by:
      setCurrentUserGroups in interface ISessionBean
    • getLogin

      @Deprecated public LoginModel getLogin()
      Deprecated.
    • setLogin

      @Deprecated public void setLogin(LoginModel login)
      Deprecated.
    • getAjaxLoginUrl

      @Deprecated public String getAjaxLoginUrl()
      Deprecated.
      Returns:
      The URL for the login dialog. URL parameters are added for preselecting the username, client, and language.
    • updateCurrentUser

      @Deprecated public void updateCurrentUser()
      Deprecated.