Class BOUser

java.lang.Object
overit.geocall.model.DynO
overit.geocall.basic.bl.user.BOUser
All Implemented Interfaces:
ConstraintValidator<DynO.Valid,DynO>, Serializable, overit.geocall.timezone.model.TimeZoned
Direct Known Subclasses:
BOManagedUser, BOUser

@EntityRef(UserEntity.class) public class BOUser extends DynO
This class represent a business object for all information concerning a user.
It will be used to map data from a DTO to fields of the AUSER table in the database.
Since:
9.0
See Also:
GCApi:
bo
  • Constructor Details

    • BOUser

      public BOUser()
  • Method Details

    • getId

      public final Long getId()
      Gets the user's id.
      Returns:
      The user's id.
    • setId

      public final void setId(Long id)
      Sets the user's id.
      Parameters:
      id - The user's id to set.
    • getUsername

      public final String getUsername()
      Gets the user's username.
      Returns:
      The user's username.
    • setUsername

      public final void setUsername(String username)
      Sets the user's username.
      Parameters:
      username - The user's username to set.
    • getPassword

      public final String getPassword()
      Get the user's password if any
      Returns:
      the user's password or null if the user's credentials is managed by an external identity provider
    • setPassword

      public final void setPassword(String password)
      Sets the user's password
      Parameters:
      password - the user's password
    • getName

      public final String getName()
      Gets the user's name.
      Returns:
      The user's name.
    • setName

      public final void setName(String name)
      Sets the user's name.
      Parameters:
      name - The user's name to set.
    • getSurname

      public final String getSurname()
      Gets the user's surname.
      Returns:
      The user's surname.
    • setSurname

      public final void setSurname(String surname)
      Sets the user's surname.
      Parameters:
      surname - The user's surname to set.
    • getEmail

      public final String getEmail()
      Gets the user's email
      Returns:
      the user's email
    • setEmail

      public final void setEmail(String email)
      Set the user's email
      Parameters:
      email - the user's email to set
    • getFactory

      public final Long getFactory()
      Gets the user's factory.
      Returns:
      The user's factory.
    • setFactory

      public final void setFactory(Long factory)
      Sets the user's factory.
      Parameters:
      factory - The user's factory to set.
    • getType

      public final Long getType()
      Gets the user's type.
      Returns:
      The user's type.
    • setType

      public final void setType(Long type)
      Sets the user's type.
      Parameters:
      type - The user's type to set.
    • getAdditionalRoles

      public final Set<Long> getAdditionalRoles()
      Returns:
      the identifier of the additional roles who's the user belongs to
    • setAdditionalRoles

      public final void setAdditionalRoles(Set<Long> additionalRoles)
      Set the additional roles to this user
      Parameters:
      additionalRoles - set of identifier each one corresponds to one additional role
    • getTheme

      public final String getTheme()
      Gets the theme selected for the user.
      Returns:
      The theme selected for the user.
    • setTheme

      public final void setTheme(String theme)
      Sets the user's theme.
      Parameters:
      theme - The user's theme to set.
    • getAccessFailed

      public final Long getAccessFailed()
      Gets the number of failed logins by the user.
      Returns:
      The number of failed logins by the user.
    • setAccessFailed

      public final void setAccessFailed(Long accessFailed)
      Sets the user's accss failed number.
      Parameters:
      accessFailed - The access failed number to set.
    • getStart

      public final Date getStart()
      Gets the user's start date.
      Returns:
      The user's start date.
    • setStart

      public final void setStart(Date start)
      Sets the user's start date.
      Parameters:
      start - The user's start date to set.
    • getEnd

      public final Date getEnd()
      Gets the user's end date.
      Returns:
      The user's enddate.
    • setEnd

      public final void setEnd(Date end)
      Sets the user's end date.
      Parameters:
      end - The user's end date to set.
    • getLastAccess

      public final Date getLastAccess()
      Gets the user's last access date.
      Returns:
      The user's last acces date.
    • setLastAccess

      public final void setLastAccess(Date lastAccess)
      Sets the user's last acces date.
      Parameters:
      lastAccess - The user's last access date to set.
    • getLastPasswordEdit

      public final Date getLastPasswordEdit()
      Gets the user's last password edit date.
      Returns:
      The user's last password date.
    • setLastPasswordEdit

      public final void setLastPasswordEdit(Date lastPasswordEdit)
      Sets the user's last edit password date.
      Parameters:
      lastPasswordEdit - The user's last edit password date to set.
    • getUnlockDate

      public final Date getUnlockDate()
      Gets the user's unlock date.
      Returns:
      The user's unlock date.
    • setUnlockDate

      public final void setUnlockDate(Date unlockDate)
      Sets the user's unlockdate.
      Parameters:
      unlockDate - The unlock date to set.
    • getUnallowedOperations

      public final Boolean getUnallowedOperations()
      Gets if the user is enable to perform some operations or not.
      Returns:
      If the user is enable to perform some operations or not.
    • setUnallowedOperations

      public final void setUnallowedOperations(Boolean unallowedOperations)
      Sets if the user is able to perform operations or not.
      Parameters:
      unallowedOperations - true if the user is able to perform operations, false otherwise.
    • getLanguage

      public final String getLanguage()
      Get the user language
      Returns:
      the current user language or null if it is not setup
    • setLanguage

      public final void setLanguage(String language)
      Set the current user language
      Parameters:
      language - The string containing the language to set