Interface User


public interface User
A User represents someone who accesses to the Presentation layer.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the id for this instance.
    Returns the login for this instance.
    int
    Returns the presentationId for this instance.
    boolean
    Returns whether this user is valid or not.
    void
    setId(int id)
    Sets the id property of this instance.
    void
    Sets the login property of this instance.
    void
    setPresentationId(int presentationId)
    Sets the presentationId property of this instance.
  • Method Details

    • setLogin

      void setLogin(String login)
      Sets the login property of this instance.
      Parameters:
      login - The new login value.
    • getLogin

      String getLogin()
      Returns the login for this instance.
      Returns:
      The login of this instance.
    • setPresentationId

      void setPresentationId(int presentationId)
      Sets the presentationId property of this instance.
      Parameters:
      presentationId - The new presentationId value.
    • getPresentationId

      int getPresentationId()
      Returns the presentationId for this instance.
      Returns:
      The presentationId of this instance.
    • setId

      void setId(int id)
      Sets the id property of this instance.
      Parameters:
      id - The new id value.
    • getId

      int getId()
      Returns the id for this instance.
      Returns:
      The id of this instance.
    • isValid

      boolean isValid()
      Returns whether this user is valid or not.
      Returns:
      true if the user is valid, false otherwise.