Package com.logicaldoc.core.security
Class Device
java.lang.Object
com.logicaldoc.core.PersistentObject
com.logicaldoc.core.security.Device
- All Implemented Interfaces:
- Serializable
Represents a device with wich a user connects to the platform
- Since:
- 8.5.3
- Author:
- Marco Meschieri - LogicalDOC
- See Also:
- 
Field SummaryFieldsFields inherited from class com.logicaldoc.core.PersistentObjectDELETED_CODE_DEFAULT, DELETED_CODE_STRONG, id
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleangetIp()getLabel()intgetType()longinthashCode()voidsetBrowser(String browser) voidsetBrowserVersion(String browserVersion) voidsetDeviceId(String deviceId) voidvoidvoidsetLastLogin(Date lastLogin) voidsetOperativeSystem(String operativeSystem) voidsetTrusted(int trusted) voidvoidsetUserId(long userId) voidsetUsername(String username) toString()Methods inherited from class com.logicaldoc.core.PersistentObjectgetCreation, getDeleted, getId, getLastModified, getRecordVersion, getTenantId, setCreation, setDeleted, setId, setLastModified, setRecordVersion, setTenantId
- 
Field Details- 
PARAM_DEVICE- See Also:
 
 
- 
- 
Constructor Details- 
Devicepublic Device()
- 
Devicepublic Device(jakarta.servlet.http.HttpServletRequest request) Constructs a new Device inspecting the current request- Parameters:
- request- the current request
 
 
- 
- 
Method Details- 
getBrowser
- 
setBrowser
- 
getBrowserVersion
- 
setBrowserVersion
- 
getOperativeSystem
- 
setOperativeSystem
- 
getType
- 
setType
- 
getLastLogin
- 
setLastLogin
- 
getUserIdpublic long getUserId()
- 
setUserIdpublic void setUserId(long userId) 
- 
getDeviceId
- 
setDeviceId
- 
getTrustedpublic int getTrusted()
- 
setTrustedpublic void setTrusted(int trusted) 
- 
getIp
- 
setIp
- 
getUsername
- 
setUsername
- 
getLabel
- 
setLabel
- 
toString- Overrides:
- toStringin class- PersistentObject
 
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- PersistentObject
 
- 
equals- Overrides:
- equalsin class- PersistentObject
 
 
-