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
Fields inherited from class com.logicaldoc.core.PersistentObject
DELETED_CODE_DEFAULT, DELETED_CODE_STRONG
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getIp()
getLabel()
int
getType()
long
int
hashCode()
void
setBrowser
(String browser) void
setBrowserVersion
(String browserVersion) void
setCreation
(Date creation) void
setDeviceId
(String deviceId) void
void
void
setLastLogin
(Date lastLogin) void
setOperativeSystem
(String operativeSystem) void
setTrusted
(int trusted) void
void
setUserId
(long userId) void
setUsername
(String username) toString()
Methods inherited from class com.logicaldoc.core.PersistentObject
getDeleted, getId, getLastModified, getRecordVersion, getTenantId, setDeleted, setId, setLastModified, setRecordVersion, setTenantId
-
Field Details
-
PARAM_DEVICE
- See Also:
-
-
Constructor Details
-
Device
public Device() -
Device
public Device(javax.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
-
getCreation
-
setCreation
-
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:
toString
in classPersistentObject
-
equals
- Overrides:
equals
in classPersistentObject
-
hashCode
public int hashCode()- Overrides:
hashCode
in classPersistentObject
-