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 Summary
FieldsFields inherited from class com.logicaldoc.core.PersistentObject
DELETED_CODE_DEFAULT, DELETED_CODE_STRONG, id -
Constructor Summary
Constructors -
Method Summary
Modifier 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.PersistentObject
getCreation, getDeleted, getId, getLastModified, getRecordVersion, getTenantId, setCreation, setDeleted, setId, setLastModified, setRecordVersion, setTenantId
-
Field Details
-
PARAM_DEVICE
- See Also:
-
-
Constructor Details
-
Device
public Device() -
Device
public 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
-
getUserId
public long getUserId() -
setUserId
public void setUserId(long userId) -
getDeviceId
-
setDeviceId
-
getTrusted
public int getTrusted() -
setTrusted
public void setTrusted(int trusted) -
getIp
-
setIp
-
getUsername
-
setUsername
-
getLabel
-
setLabel
-
toString
- Overrides:
toStringin classPersistentObject
-
hashCode
public int hashCode()- Overrides:
hashCodein classPersistentObject
-
equals
- Overrides:
equalsin classPersistentObject
-