Class User

    • Constructor Detail

      • User

        public User()
        Deprecated.
    • Method Detail

      • getUserName

        @NotNull
        @Pattern(regexp="^[a-z0-9_.-]+$")
        @Size(min=3,
              max=64)
        public @NotNull @Pattern(regexp="^[a-z0-9_.-]+$") @Size(min=3,max=64) String getUserName()
        Deprecated.
        The unique, immutable drupal user account name. This name should be used for referring to a user. The account name is made of ASCII lower case alphanumerics, underscore, dash or dots and is in particular void of whitespace.
      • getFirstName

        @NotNull
        public @NotNull String getFirstName()
        Deprecated.
        Returns:
        the first name of a person
      • getLastName

        @NotNull
        public @NotNull String getLastName()
        Deprecated.
        Returns:
        the last name of the user
      • getName

        @NotNull
        public @NotNull String getName()
        Deprecated.
        Returns:
        the first and last name of the user concatenated with a space
      • getPasswordHash

        public String getPasswordHash()
        Deprecated.
        Returns:
        the drupal hashed version of the user password.
      • hasRole

        public boolean hasRole​(UserRole role)
        Deprecated.
        Checks if the user has the given user role.
        Parameters:
        role -
        Returns:
        true if the user has the requested role
      • isAdmin

        public boolean isAdmin()
        Deprecated.
      • getSettings

        @NotNull
        public @NotNull Map<String,​StringgetSettings()
        Deprecated.
        Gets the settings which may be empty but never null.
        Returns:
      • setSettings

        public void setSettings​(Map<String,​String> settings)
        Deprecated.
        Sets the settings object, setting an empty map if null is provided.