Class CurrentUser

java.lang.Object
lukas.wais.smart.mirror.model.CurrentUser

public class CurrentUser
extends java.lang.Object
Defines the current user. Implemented as Singleton. The default value of the user is null.
Author:
Lukas Wais
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static CurrentUser instance  
  • Constructor Summary

    Constructors 
    Constructor Description
    CurrentUser()  
  • Method Summary

    Modifier and Type Method Description
    static CurrentUser getInstance()  
    Person getUser()  
    java.util.ArrayList<java.lang.String> getWidgets()  
    void setUser​(Person person)
    This methods sets the current user.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • getInstance

      public static CurrentUser getInstance()
      Returns:
      instance of the CurrentUser
    • getUser

      public Person getUser()
      Returns:
      returns the current user.
    • setUser

      public void setUser​(Person person)
      This methods sets the current user. You are changing the current profile indirectly. It personalizes the mirror.
      Parameters:
      person - sets the new person from which the settings are loaded.
    • getWidgets

      public java.util.ArrayList<java.lang.String> getWidgets()