Package net.webpdf.wsclient.openapi
Class SessionTableEntry
- java.lang.Object
-
- net.webpdf.wsclient.openapi.SessionTableEntry
-
public class SessionTableEntry extends Object
Stores detailed information about a single session entry in the session table.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ADMINstatic StringJSON_PROPERTY_FILE_COUNTstatic StringJSON_PROPERTY_FILE_FOLDERstatic StringJSON_PROPERTY_FILE_SIZEstatic StringJSON_PROPERTY_FILE_SIZE_HISTORYstatic StringJSON_PROPERTY_IS_ADMINstatic StringJSON_PROPERTY_LAST_ACCESSstatic StringJSON_PROPERTY_PROVIDER_IDstatic StringJSON_PROPERTY_SESSION_EXPIRATIONstatic StringJSON_PROPERTY_SESSION_IDstatic StringJSON_PROPERTY_SESSION_STATEstatic StringJSON_PROPERTY_USER_NAME
-
Constructor Summary
Constructors Constructor Description SessionTableEntry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SessionTableEntryadmin(Boolean admin)booleanequals(Object o)SessionTableEntryfileCount(Long fileCount)SessionTableEntryfileFolder(String fileFolder)SessionTableEntryfileSize(Long fileSize)SessionTableEntryfileSizeHistory(Long fileSizeHistory)@Nullable BooleangetAdmin()Get admin@Nullable LonggetFileCount()Number of files saved in the session.@Nullable StringgetFileFolder()Unique name of the session storage folder.@Nullable LonggetFileSize()Total size in bytes of all files saved in the session, excluding history entries.@Nullable LonggetFileSizeHistory()Total size in bytes of all history files stored in the session, except the active file entry.@Nullable BooleangetIsAdmin()Set if the user has administrator rights.@Nullable LonggetLastAccess()UTC time of the last access to the session.@Nullable StringgetProviderId()The ID of the external credential provider used to create the session.@Nullable LonggetSessionExpiration()Time in seconds when the session will expire.@Nullable StringgetSessionId()Unique id of the session.@Nullable SessionStategetSessionState()Get sessionState@Nullable StringgetUserName()Username of the authenticated user or empty if unknown or it is an anonymous session.inthashCode()SessionTableEntryisAdmin(Boolean isAdmin)SessionTableEntrylastAccess(Long lastAccess)SessionTableEntryproviderId(String providerId)SessionTableEntrysessionExpiration(Long sessionExpiration)SessionTableEntrysessionId(String sessionId)SessionTableEntrysessionState(SessionState sessionState)voidsetAdmin(Boolean admin)voidsetFileCount(Long fileCount)voidsetFileFolder(String fileFolder)voidsetFileSize(Long fileSize)voidsetFileSizeHistory(Long fileSizeHistory)voidsetIsAdmin(Boolean isAdmin)voidsetLastAccess(Long lastAccess)voidsetProviderId(String providerId)voidsetSessionExpiration(Long sessionExpiration)voidsetSessionId(String sessionId)voidsetSessionState(SessionState sessionState)voidsetUserName(String userName)StringtoString()SessionTableEntryuserName(String userName)
-
-
-
Field Detail
-
JSON_PROPERTY_ADMIN
public static final String JSON_PROPERTY_ADMIN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FILE_COUNT
public static final String JSON_PROPERTY_FILE_COUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FILE_FOLDER
public static final String JSON_PROPERTY_FILE_FOLDER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FILE_SIZE
public static final String JSON_PROPERTY_FILE_SIZE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FILE_SIZE_HISTORY
public static final String JSON_PROPERTY_FILE_SIZE_HISTORY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_IS_ADMIN
public static final String JSON_PROPERTY_IS_ADMIN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LAST_ACCESS
public static final String JSON_PROPERTY_LAST_ACCESS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PROVIDER_ID
public static final String JSON_PROPERTY_PROVIDER_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SESSION_EXPIRATION
public static final String JSON_PROPERTY_SESSION_EXPIRATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SESSION_ID
public static final String JSON_PROPERTY_SESSION_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SESSION_STATE
public static final String JSON_PROPERTY_SESSION_STATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_USER_NAME
public static final String JSON_PROPERTY_USER_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
admin
public SessionTableEntry admin(Boolean admin)
-
getAdmin
@Nullable public @Nullable Boolean getAdmin()
Get admin- Returns:
- admin
-
setAdmin
public void setAdmin(Boolean admin)
-
fileCount
public SessionTableEntry fileCount(Long fileCount)
-
getFileCount
@Nullable public @Nullable Long getFileCount()
Number of files saved in the session.- Returns:
- fileCount
-
setFileCount
public void setFileCount(Long fileCount)
-
fileFolder
public SessionTableEntry fileFolder(String fileFolder)
-
getFileFolder
@Nullable public @Nullable String getFileFolder()
Unique name of the session storage folder.- Returns:
- fileFolder
-
setFileFolder
public void setFileFolder(String fileFolder)
-
fileSize
public SessionTableEntry fileSize(Long fileSize)
-
getFileSize
@Nullable public @Nullable Long getFileSize()
Total size in bytes of all files saved in the session, excluding history entries.- Returns:
- fileSize
-
setFileSize
public void setFileSize(Long fileSize)
-
fileSizeHistory
public SessionTableEntry fileSizeHistory(Long fileSizeHistory)
-
getFileSizeHistory
@Nullable public @Nullable Long getFileSizeHistory()
Total size in bytes of all history files stored in the session, except the active file entry.- Returns:
- fileSizeHistory
-
setFileSizeHistory
public void setFileSizeHistory(Long fileSizeHistory)
-
isAdmin
public SessionTableEntry isAdmin(Boolean isAdmin)
-
getIsAdmin
@Nullable public @Nullable Boolean getIsAdmin()
Set if the user has administrator rights.- Returns:
- isAdmin
-
setIsAdmin
public void setIsAdmin(Boolean isAdmin)
-
lastAccess
public SessionTableEntry lastAccess(Long lastAccess)
-
getLastAccess
@Nullable public @Nullable Long getLastAccess()
UTC time of the last access to the session.- Returns:
- lastAccess
-
setLastAccess
public void setLastAccess(Long lastAccess)
-
providerId
public SessionTableEntry providerId(String providerId)
-
getProviderId
@Nullable public @Nullable String getProviderId()
The ID of the external credential provider used to create the session. Empty if local provider was used.- Returns:
- providerId
-
setProviderId
public void setProviderId(String providerId)
-
sessionExpiration
public SessionTableEntry sessionExpiration(Long sessionExpiration)
-
getSessionExpiration
@Nullable public @Nullable Long getSessionExpiration()
Time in seconds when the session will expire.- Returns:
- sessionExpiration
-
setSessionExpiration
public void setSessionExpiration(Long sessionExpiration)
-
sessionId
public SessionTableEntry sessionId(String sessionId)
-
getSessionId
@Nullable public @Nullable String getSessionId()
Unique id of the session.- Returns:
- sessionId
-
setSessionId
public void setSessionId(String sessionId)
-
sessionState
public SessionTableEntry sessionState(SessionState sessionState)
-
getSessionState
@Nullable public @Nullable SessionState getSessionState()
Get sessionState- Returns:
- sessionState
-
setSessionState
public void setSessionState(SessionState sessionState)
-
userName
public SessionTableEntry userName(String userName)
-
getUserName
@Nullable public @Nullable String getUserName()
Username of the authenticated user or empty if unknown or it is an anonymous session.- Returns:
- userName
-
setUserName
public void setUserName(String userName)
-
-