Package overit.geocall.basic.bl.usertype
Class BOUserType
java.lang.Object
overit.geocall.model.DynO
overit.geocall.basic.bl.usertype.BOUserType
- All Implemented Interfaces:
ConstraintValidator<DynO.Valid,,DynO> Serializable,overit.geocall.timezone.model.TimeZoned
This class represent a business object for all information concerning a user's type.
It will be used to map data from a DTO to fields of the TUSER table in the database.
It will be used to map data from a DTO to fields of the TUSER table in the database.
- Since:
- 9.1
- 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 TypeMethodDescriptionvoidaddFunction(String function) Add a permission's function to the current set.final StringgetCode()Gets the code for the user's type.final LocalizedStringGets the user's type description.final LongGets the user type's factory.Gets the user's type permissions.final LonggetId()Gets the user's id.final BooleanDeprecated, for removal: This API element is subject to removal in a future version.final BooleanDeprecated, for removal: This API element is subject to removal in a future version.useisCompanyAdmin()Gets if the user's type is a tenant admin or not.final BooleanDeprecated, for removal: This API element is subject to removal in a future version.useisSuper()Gets if the user's type is a system admin or not.final LongGets the user's type max inactive interval.final LongGets the user's type ordering.final LongGets the profile's id.final StringGets the user type's resources authorization policy.final BooleanisActive()Gets if the user type is active or not.final BooleanDeprecated, for removal: This API element is subject to removal in a future version.UseisTenantAdmin()insteadfinal BooleanisSuper()Deprecated, for removal: This API element is subject to removal in a future version.UseisSystemAdmin()insteadfinal BooleanGets if the user's type is a system admin or not.final BooleanGets if the user's type is a tenant admin or not.final voidSets if the user is active or not.final voidSets the user's type code.final voidsetCompanyAdmin(Boolean isCompanyAdmin) Deprecated, for removal: This API element is subject to removal in a future version.UsesetTenantAdmin(Boolean)insteadfinal voidsetDescription(LocalizedString description) Sets the user's type description.final voidsetFactory(Long factory) Sets the user type's factory.final voidsetFunctions(Set<String> functions) Sets the user's type permissions.final voidSets the user's id.final voidsetIsActive(Boolean isActive) Deprecated, for removal: This API element is subject to removal in a future version.usesetActive(Boolean)Sets if the user is active or not.final voidsetIsCompanyAdmin(Boolean isCompanyAdmin) Deprecated, for removal: This API element is subject to removal in a future version.usesetCompanyAdmin(Boolean)Sets if the user's type is a tenant admin or not.final voidsetIsSuper(Boolean isSuper) Deprecated, for removal: This API element is subject to removal in a future version.usesetSuper(Boolean)Sets if the user's type is a system admin or not.final voidsetMaxInactiveInterval(Long maxInactiveInterval) Sets the user's type max inactive interval.final voidsetOrdering(Long ordering) Sets the user's type ordering.final voidsetProfile(Long profile) Sets the profile's id.final voidSets the user type's resources authorization policy.final voidDeprecated, for removal: This API element is subject to removal in a future version.UsesetSystemAdmin(Boolean)insteadfinal voidsetSystemAdmin(Boolean systemAdmin) Sets if the user's type is a system admin or not.final voidsetTenantAdmin(Boolean tenantAdmin) Sets if the user's type is a tenant admin or not.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
-
BOUserType
public BOUserType()
-
-
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.
-
getFactory
Gets the user type's factory.- Returns:
- The user type's factory.
-
setFactory
Sets the user type's factory.- Parameters:
factory- The user type's factory to set.
-
getDescription
Gets the user's type description.- Returns:
- The user's type description.
-
setDescription
Sets the user's type description.- Parameters:
description- The user's type description to set.
-
getOrdering
Gets the user's type ordering.- Returns:
- The user's type ordering.
-
setOrdering
Sets the user's type ordering.- Parameters:
ordering- The user's type ordering to set.
-
getMaxInactiveInterval
Gets the user's type max inactive interval.- Returns:
- The user's type max inactive interval.
-
setMaxInactiveInterval
Sets the user's type max inactive interval.- Parameters:
maxInactiveInterval- The user's type max inactive interval to set.
-
getIsActive
Deprecated, for removal: This API element is subject to removal in a future version.useisActive()Gets if the user type is active or not.- Returns:
- If the user is active or not.
-
setIsActive
Deprecated, for removal: This API element is subject to removal in a future version.usesetActive(Boolean)Sets if the user is active or not.- Parameters:
isActive-trueif the user is active,falseotherwise.
-
isActive
Gets if the user type is active or not.- Returns:
- If the user is active or not.
-
setActive
Sets if the user is active or not.- Parameters:
isActive-trueif the user is active,falseotherwise.
-
getCode
Gets the code for the user's type.- Returns:
- The code for the user's type.
-
setCode
Sets the user's type code.- Parameters:
code- The user's type code to set.
-
getRsAuth
Gets the user type's resources authorization policy.- Returns:
- The user type's resources authorization policy.
-
setRsAuth
Sets the user type's resources authorization policy.- Parameters:
rsAuth- The user type's resources authorization policy to set.
-
getIsSuper
Deprecated, for removal: This API element is subject to removal in a future version.useisSuper()Gets if the user's type is a system admin or not.- Returns:
- If the user's type is a system admin or not.
-
setIsSuper
Deprecated, for removal: This API element is subject to removal in a future version.usesetSuper(Boolean)Sets if the user's type is a system admin or not.- Parameters:
isSuper-trueif the user's type is a system admin,falseotherwise.
-
isSuper
Deprecated, for removal: This API element is subject to removal in a future version.UseisSystemAdmin()insteadGets if the user's type is a system admin or not.- Returns:
- If the user's type is a system admin or not.
-
setSuper
Deprecated, for removal: This API element is subject to removal in a future version.UsesetSystemAdmin(Boolean)insteadSets if the user's type is a system admin or not.- Parameters:
isSuper-trueif the user's type is a system admin,falseotherwise.
-
isSystemAdmin
Gets if the user's type is a system admin or not.- Returns:
- If the user's type is a system admin or not.
-
setSystemAdmin
Sets if the user's type is a system admin or not.- Parameters:
systemAdmin-trueif the user's type is a system admin,falseotherwise.
-
getIsCompanyAdmin
Deprecated, for removal: This API element is subject to removal in a future version.useisCompanyAdmin()Gets if the user's type is a tenant admin or not.- Returns:
- If the user's type is a tenant admin or not.
-
setIsCompanyAdmin
Deprecated, for removal: This API element is subject to removal in a future version.usesetCompanyAdmin(Boolean)Sets if the user's type is a tenant admin or not.- Parameters:
isCompanyAdmin-trueif the user's type is a tenant admin,falseotherwise.
-
isCompanyAdmin
Deprecated, for removal: This API element is subject to removal in a future version.UseisTenantAdmin()insteadGets if the user's type is a tenant admin or not.- Returns:
- If the user's type is a tenant admin or not.
-
setCompanyAdmin
@Deprecated(since="12.0", forRemoval=true) public final void setCompanyAdmin(Boolean isCompanyAdmin) Deprecated, for removal: This API element is subject to removal in a future version.UsesetTenantAdmin(Boolean)insteadSets if the user's type is a tenant admin or not.- Parameters:
isCompanyAdmin-trueif the user's type is a tenant admin,falseotherwise.
-
isTenantAdmin
Gets if the user's type is a tenant admin or not.- Returns:
- If the user's type is a tenant admin or not.
-
setTenantAdmin
Sets if the user's type is a tenant admin or not.- Parameters:
tenantAdmin-trueif the user's type is a tenant admin,falseotherwise.
-
getFunctions
Gets the user's type permissions.- Returns:
- The user's type permissions.
-
setFunctions
Sets the user's type permissions.- Parameters:
functions- List of persmissions to set.
-
addFunction
Add a permission's function to the current set.- Parameters:
function- the function that will be added- Throws:
NullPointerException- if the specified element is null
-
getProfile
Gets the profile's id.- Returns:
- profile's id.
-
setProfile
Sets the profile's id.- Parameters:
profile- The profile's id to set.
-
isActive()Gets if the user type is active or not.