Package overit.geocall.basic.bl.user
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
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.
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
-
Nested Class Summary
Nested classes/interfaces inherited from class overit.geocall.model.DynO
DynO.SpanFields, DynO.SpanTable, DynO.Valid -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal LongGets the number of failed logins by the user.final StringgetEmail()Gets the user's emailfinal DategetEnd()Gets the user's end date.final LongGets the user's factory.final LonggetId()Gets the user's id.final StringGet the user languagefinal DateGets the user's last access date.final DateGets the user's last password edit date.final StringgetName()Gets the user's name.final StringGet the user's password if anyfinal DategetStart()Gets the user's start date.final StringGets the user's surname.final StringgetTheme()Gets the theme selected for the user.final LonggetType()Gets the user's type.final BooleanGets if the user is enable to perform some operations or not.final DateGets the user's unlock date.final StringGets the user's username.final voidsetAccessFailed(Long accessFailed) Sets the user's accss failed number.final voidsetAdditionalRoles(Set<Long> additionalRoles) Set the additional roles to this userfinal voidSet the user's emailfinal voidSets the user's end date.final voidsetFactory(Long factory) Sets the user's factory.final voidSets the user's id.final voidsetLanguage(String language) Set the current user languagefinal voidsetLastAccess(Date lastAccess) Sets the user's last acces date.final voidsetLastPasswordEdit(Date lastPasswordEdit) Sets the user's last edit password date.final voidSets the user's name.final voidsetPassword(String password) Sets the user's passwordfinal voidSets the user's start date.final voidsetSurname(String surname) Sets the user's surname.final voidSets the user's theme.final voidSets the user's type.final voidsetUnallowedOperations(Boolean unallowedOperations) Sets if the user is able to perform operations or not.final voidsetUnlockDate(Date unlockDate) Sets the user's unlockdate.final voidsetUsername(String username) Sets the user's username.Methods inherited from class overit.geocall.model.DynO
addExtension, extract, extract, fields, from, from, getCriteria, getCriteriaNotExploded, getExtension, getFakeFilter, getUnknownAttributes, getUnknownCriteria, getVariant, getZone, insert, insert, isValid, make, removeCriteria, removeExtensionAttribute, setCriteria, setCriteriaNotExploded, setExtension, setFakeFilter, setUnknownAttributes, setUnknownCriteria, setVariant, setZone, toFlatMap, toFlatMap, toMap, toMap, toString, update, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface jakarta.validation.ConstraintValidator
initializeMethods inherited from interface overit.geocall.timezone.model.TimeZoned
hasZone
-
Constructor Details
-
BOUser
public BOUser()
-
-
Method Details
-
getId
Gets the user's id.- Returns:
- The user's id.
-
setId
Sets the user's id.- Parameters:
id- The user's id to set.
-
getUsername
Gets the user's username.- Returns:
- The user's username.
-
setUsername
Sets the user's username.- Parameters:
username- The user's username to set.
-
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
Sets the user's password- Parameters:
password- the user's password
-
getName
Gets the user's name.- Returns:
- The user's name.
-
setName
Sets the user's name.- Parameters:
name- The user's name to set.
-
getSurname
Gets the user's surname.- Returns:
- The user's surname.
-
setSurname
Sets the user's surname.- Parameters:
surname- The user's surname to set.
-
getEmail
Gets the user's email- Returns:
- the user's email
-
setEmail
Set the user's email- Parameters:
email- the user's email to set
-
getFactory
Gets the user's factory.- Returns:
- The user's factory.
-
setFactory
Sets the user's factory.- Parameters:
factory- The user's factory to set.
-
getType
Gets the user's type.- Returns:
- The user's type.
-
setType
Sets the user's type.- Parameters:
type- The user's type to set.
-
getAdditionalRoles
- Returns:
- the identifier of the additional roles who's the user belongs to
-
setAdditionalRoles
Set the additional roles to this user- Parameters:
additionalRoles- set of identifier each one corresponds to one additional role
-
getTheme
Gets the theme selected for the user.- Returns:
- The theme selected for the user.
-
setTheme
Sets the user's theme.- Parameters:
theme- The user's theme to set.
-
getAccessFailed
Gets the number of failed logins by the user.- Returns:
- The number of failed logins by the user.
-
setAccessFailed
Sets the user's accss failed number.- Parameters:
accessFailed- The access failed number to set.
-
getStart
Gets the user's start date.- Returns:
- The user's start date.
-
setStart
Sets the user's start date.- Parameters:
start- The user's start date to set.
-
getEnd
Gets the user's end date.- Returns:
- The user's enddate.
-
setEnd
Sets the user's end date.- Parameters:
end- The user's end date to set.
-
getLastAccess
Gets the user's last access date.- Returns:
- The user's last acces date.
-
setLastAccess
Sets the user's last acces date.- Parameters:
lastAccess- The user's last access date to set.
-
getLastPasswordEdit
Gets the user's last password edit date.- Returns:
- The user's last password date.
-
setLastPasswordEdit
Sets the user's last edit password date.- Parameters:
lastPasswordEdit- The user's last edit password date to set.
-
getUnlockDate
Gets the user's unlock date.- Returns:
- The user's unlock date.
-
setUnlockDate
Sets the user's unlockdate.- Parameters:
unlockDate- The unlock date to set.
-
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
Sets if the user is able to perform operations or not.- Parameters:
unallowedOperations-trueif the user is able to perform operations,falseotherwise.
-
getLanguage
Get the user language- Returns:
- the current user language or null if it is not setup
-
setLanguage
Set the current user language- Parameters:
language- The string containing the language to set
-