Interface User

Represents information about a single user

interface User {
    addGroup(userGroup: string | number | UserGroup): boolean;
    getEmail(): string;
    getFirstName(): string;
    getGroups(): UserGroup[];
    getId(): number;
    getLastName(): string;
    getLoginName(): string;
    isInGroup(userGroup: string | number | UserGroup): boolean;
    removeGroup(userGroup: string | number | UserGroup): boolean;
    setEmail(email: string): boolean;
    setFirstName(firstName: string): boolean;
    setLastName(lastName: string): boolean;
    setLoginName(loginName: string): boolean;
}

Methods

  • Add this user to the user group

    Parameters

    Returns boolean

    Whether operation was successful or not.

  • Returns string

  • Returns string

  • Returns number

  • Returns string

  • Returns string

  • Returns whether this user is in the group

    Parameters

    Returns boolean

  • Remove this user from the user group

    Parameters

    Returns boolean

    Whether operation was successful or not.

  • Sets new email

    Parameters

    • email: string

    Returns boolean

    Whether operation was successful or not.

  • Sets new first name.

    Parameters

    • firstName: string

    Returns boolean

    Whether operation was successful or not.

  • Sets new last name

    Parameters

    • lastName: string

    Returns boolean

    Whether operation was successful or not.

  • Sets new login name.

    Parameters

    • loginName: string

    Returns boolean

    Whether operation was successful or not.