Package de.hirola.sportslibrary.model
Class User
- java.lang.Object
-
- de.hirola.kintojava.model.KintoObject
-
- de.hirola.sportslibrary.PersistentObject
-
- de.hirola.sportslibrary.model.User
-
- All Implemented Interfaces:
de.hirola.kintojava.model.KintoModel
public class User extends PersistentObject
Copyright 2021 by Michael Schmidt, Hirola Consulting This software us licensed under the AGPL-3.0 or later. Der Nutzer der App, also der Läufer.- Since:
- 1.1.1
- Author:
- Michael Schmidt (Hirola)
-
-
Constructor Summary
Constructors Constructor Description User()Default constructor for reflection.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)RunningPlangetActiveRunningPlan()Get the first name of user.java.time.LocalDategetBirthday()Get the birthday of the user.StringgetEmailAddress()Get the email address of the user.StringgetFirstName()Get the first name of the user.intgetGender()Get the gender of the user.List<String>getIdentityAttributeNames()Get a list of all (persistent) attribute names of the objectStringgetLastName()Get the last name of the user.intgetMaxPulse()Get the max pulse of user.intgetTrainingLevel()Get the training level of user.inthashCode()voidsetActiveRunningPlan(RunningPlan activeRunningPlan)Set the active training plan.voidsetBirthday(java.time.LocalDate birthday)Set the birthday of the user.voidsetEmailAddress(String emailAddress)Set the email address of the user.voidsetFirstName(String firstName)Set the first name of the user.voidsetGender(int gender)Set the gender of the user.voidsetLastName(String lastName)Set the last name of the user.voidsetMaxPulse(int maxPulse)Set the max pulse of the user.voidsetTrainingLevel(int trainingLevel)Set the training level of the user.
-
-
-
Method Detail
-
getFirstName
public String getFirstName()
Get the first name of the user.- Returns:
- The first name of the user
-
setFirstName
public void setFirstName(String firstName)
Set the first name of the user.- Parameters:
firstName- of the user
-
getLastName
public String getLastName()
Get the last name of the user.- Returns:
- The last name of the user
-
setLastName
public void setLastName(String lastName)
Set the last name of the user.- Parameters:
lastName- of the user
-
getEmailAddress
public String getEmailAddress()
Get the email address of the user.- Returns:
- The first name of the user
-
setEmailAddress
public void setEmailAddress(String emailAddress)
Set the email address of the user. The address will be not validate.- Parameters:
emailAddress- of the user
-
getBirthday
public java.time.LocalDate getBirthday()
Get the birthday of the user. The year ist need to calculate the max pulse.- Returns:
- The birthday of the user
-
setBirthday
public void setBirthday(java.time.LocalDate birthday)
Set the birthday of the user.- Parameters:
birthday- of the user
-
getGender
public int getGender()
Get the gender of the user.- Returns:
- The gender of the user
- See Also:
Global
-
setGender
public void setGender(int gender)
Set the gender of the user. The gender ist need to calculate the max pulse.- Parameters:
gender- of the user
-
getTrainingLevel
public int getTrainingLevel()
Get the training level of user.- Returns:
- The training level of the user
- See Also:
Global
-
setTrainingLevel
public void setTrainingLevel(int trainingLevel)
Set the training level of the user.- Parameters:
trainingLevel- of the user
-
getMaxPulse
public int getMaxPulse()
Get the max pulse of user.- Returns:
- The max pulse of the user
-
setMaxPulse
public void setMaxPulse(int maxPulse)
Set the max pulse of the user.- Parameters:
maxPulse- of the user
-
getActiveRunningPlan
public RunningPlan getActiveRunningPlan()
Get the first name of user.- Returns:
- The first name of the user
-
setActiveRunningPlan
public void setActiveRunningPlan(RunningPlan activeRunningPlan)
Set the active training plan.- Parameters:
activeRunningPlan- wich the user want to train now
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classde.hirola.kintojava.model.KintoObject
-
hashCode
public int hashCode()
- Overrides:
hashCodein classde.hirola.kintojava.model.KintoObject
-
getIdentityAttributeNames
public List<String> getIdentityAttributeNames()
Description copied from class:PersistentObjectGet a list of all (persistent) attribute names of the object- Specified by:
getIdentityAttributeNamesin classPersistentObject- Returns:
- A list of all (persistent) attribute names of the object
-
-