Class BaseIdentity
java.lang.Object
overit.geocall.util.Identity
overit.geocallapp.utilities.system.BaseIdentity
- All Implemented Interfaces:
Serializable,Cloneable,Scoped
Abstract base class that extends
This class stores information about the currently logged-in user and provides methods to retrieve and set that information.
Implementations must define permission validation behavior through the abstract method.
Identity to provide user identity management functionality.This class stores information about the currently logged-in user and provides methods to retrieve and set that information.
Implementations must define permission validation behavior through the abstract method.
- Since:
- 1.0
- See Also:
-
Field Summary
Fields inherited from class overit.geocall.util.Identity
_agentLang, _branch, _branchDesc, _culturalConventions, _dbf, _dbLang, _defaultLang, _device, _documentLang, _door, _email, _extraTypes, _face, _gender, _hgIdentity, _ip, _lang, _langHints, _langMap, _lastAccessDate, _lastPasswordSet, _maxInactiveInterval, _messagesLastSearch, _messagesNumber, _normalizationMode, _state, _type, _typeCode, _typeDesc, _userAgent, _userDesc, _userId, _userName, _userSurname, _userUsername, _viewUnallowed, _zones, accesibleMode, accessToken, company, COMPANY_AUTH_MAX_INACTIVE_INTERVAL, COMPANY_LANG, COMPANY_UI_VIEW_UNALLOWED, COMPANY_UI_VIEW_UNALLOWED_EXTENDED_ATTRIBUTES, favoritesBoxOpen, functions, noExpiration, pickedProfile, reference, resourceAuthorizationPolicy, rtl, systemUser, userProfile, viewUnallowedExtendedAttributesFields inherited from interface overit.geocall.platform.Scoped
contextScope -
Constructor Summary
ConstructorsModifierConstructorDescriptionBaseIdentity(Long factory) protectedBaseIdentity(String pkg) Creates a new BaseIdentity instance with the specified package name.protectedCreates a newBaseIdentityinstance for the specifiedCompany.protectedBaseIdentity(Identity id) Creates a new BaseIdentity instance from an existingIdentity. -
Method Summary
Modifier and TypeMethodDescriptionGets the current user identifier.Gets the language defined as default for the system.abstract booleanDetermines whether permission validation is active for this identity.Methods inherited from class overit.geocall.util.Identity
addFunction, bind, canAccessToResource, clone, current, getAccessibleTheme, getAccessToken, getAuthenticationTokenDuration, getBarLayout, getBarMode, getBarType, getBranch, getBranchDesc, getBranchDescription, getCompany, getCulturalConventions, getDBClientIdentifier, getDBFieldMap, getDBLang, getDefaultTheme, getDevice, getDocumentLang, getDoor, getEmail, getExtraTypeDesc, getExtraTypes, getFace, getFactory, getFactoryLogin, getFirstWindow, getFunctions, getGender, getHideMenu, getIdentity, getInPage, getIp, getLang, getLang, getLangHints, getLangMap, getLastAccessDate, getLastPasswordSet, getLayerIdentity, getLog, getLogos, getMaxAccessFailures, getMaxInactiveInterval, getMaxInactivePeriod, getMaxMaxInactiveInterval, getMaxWebViews, getMenu, getMessagesLastSearch, getMessagesNumber, getMinMaxInactiveInterval, getOutPage, getPackage, getPickedProfile, getReference, getResourceFactory, getRtl, getState, getTheme, getTimezone, getType, getTypeCode, getTypeDesc, getUser, getUserAgent, getUserDesc, getUserDesc, getUsername, getUserName, getUserProfile, getUserSurname, getUserUsername, getWASessionDuration, getWASessionLatency, getWebViewsMode, getZones, hasAllFunctions, hasFunction, haveFunction, isAccessibleMode, isFavoritesBoxOpen, isNoExpiration, isPasswordExpired, isSystemAdmin, isSystemUser, isTenantAdmin, setAccessToken, setAgentLang, setAttributes, setBranch, setDBFieldMap, setDBLang, setDevice, setDoor, setEmail, setExtraTypes, setFace, setFavoritesBoxOpen, setGender, setHideMenu, setIp, setLastAccessDate, setLastPasswordSet, setLog, setMaxInactiveInterval, setMessagesNumber, setNoExpiration, setPickedProfile, setReference, setResourceAuthorizationPolicy, setRtl, setState, setSystemUser, setTheme, setType, setup, setUser, setUserAccessibility, setUserAgent, setUserProfile, setViewUnallowed, setViewUnallowedExtendedAttributes, toString, unbind, viewUnallowed, viewUnallowedExtendedAttributes
-
Constructor Details
-
BaseIdentity
-
BaseIdentity
Creates a new BaseIdentity instance from an existingIdentity.- Parameters:
id- theIdentityto copy from
-
BaseIdentity
Creates a new BaseIdentity instance with the specified package name.- Parameters:
pkg- the package name
-
BaseIdentity
Creates a newBaseIdentityinstance for the specifiedCompany.- Parameters:
t- theCompanyto associate with this identity
-
-
Method Details
-
isPermissionValidationActive
public abstract boolean isPermissionValidationActive()Determines whether permission validation is active for this identity. Implementation-specific behavior must be defined by subclasses.- Returns:
- true if permission validation is active, false otherwise
-
getCurrentUser
Gets the current user identifier.- Returns:
- the current user ID, or null if no user is set
-
getDefaultLang
Gets the language defined as default for the system. The default language is English, but if not defined the first language of the configuration is retrieved.- Overrides:
getDefaultLangin classIdentity- Returns:
- the default
Lang
-