Class User

    • Constructor Detail

      • User

        public User()
      • User

        public User​(IUserInfo newUserInfo)
      • User

        public User​(String newLogin,
                    String newPassword)
    • Method Detail

      • getLogin

        public String getLogin()
        Returns:
      • getPassword

        public String getPassword()
        Returns:
      • getRoles

        public Set<String> getRoles()
        Returns:
      • validForRoles

        public boolean validForRoles​(String... roles)
        check if user can work with this roles. admin return always true.
        Parameters:
        roles -
        Returns:
      • getUserInfo

        public IUserInfo getUserInfo()
        Returns:
      • setUserInfo

        public void setUserInfo​(IUserInfo info)
        Parameters:
        info -
      • setLogin

        public void setLogin​(String login)
      • getContext

        public String getContext()
      • setContext

        public void setContext​(String context)
      • isRightPassword

        public boolean isRightPassword​(String pwd)
      • isEditor

        public boolean isEditor()
      • setEditor

        public void setEditor​(boolean editor)
      • getLabel

        public String getLabel()
      • isCustomer

        public boolean isCustomer()
      • isProvider

        public boolean isProvider()