Package com.lariflix.jemm.dtos
Class JellyfinUser
java.lang.Object
com.lariflix.jemm.dtos.JellyfinUser
This class represents a user in Jellyfin.
- Since:
- 1.0
- Author:
- Cesar Bianchi
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
boolean
boolean
boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the configuration of the user.getId()
Returns the ID of the user.Returns the last activity date of the user.Returns the last login date of the user.getName()
Returns the name of the user.Returns the policy of the user.Returns the primary image tag of the user.Returns the server ID of the user.boolean
Returns whether auto login is enabled for the user.boolean
Returns whether the user has a configured easy password.boolean
Returns whether the user has a configured password.boolean
Returns whether the user has a password.void
setConfiguration
(JellyfinUserConfiguration configuration) Sets the configuration of the user.void
setEnableAutoLogin
(boolean enableAutoLogin) Sets whether auto login is enabled for the user.void
setHasConfiguredEasyPassword
(boolean hasConfiguredEasyPassword) Sets whether the user has a configured easy password.void
setHasConfiguredPassword
(boolean hasConfiguredPassword) Sets whether the user has a configured password.void
setHasPassword
(boolean hasPassword) Sets whether the user has a password.void
Sets the ID of the user.void
setLastActivityDate
(Date lastActivityDate) Sets the last activity date of the user.void
setLastLoginDate
(Date lastLoginDate) Sets the last login date of the user.void
Sets the name of the user.void
setPolicy
(JellyfinUserPolicy policy) Sets the policy of the user.void
setPrimaryImageTag
(String PrimaryImageTag) Sets the primary image tag of the user.void
setServerId
(String serverId) Sets the server ID of the user.
-
Field Details
-
PrimaryImageTag
-
name
-
serverId
-
id
-
hasPassword
public boolean hasPassword -
hasConfiguredPassword
public boolean hasConfiguredPassword -
hasConfiguredEasyPassword
public boolean hasConfiguredEasyPassword -
enableAutoLogin
public boolean enableAutoLogin -
lastLoginDate
-
lastActivityDate
-
configuration
-
policy
-
-
Constructor Details
-
JellyfinUser
public JellyfinUser()Default constructor for JellyfinUser.- Since:
- 1.0
-
-
Method Details
-
getName
Returns the name of the user.- Returns:
- The name of the user.
- Since:
- 1.0
-
setName
Sets the name of the user.- Parameters:
name
- The new name of the user.- Since:
- 1.0
-
getServerId
Returns the server ID of the user.- Returns:
- The server ID of the user.
- Since:
- 1.0
-
setServerId
Sets the server ID of the user.- Parameters:
serverId
- The new server ID of the user.- Since:
- 1.0
-
getId
Returns the ID of the user.- Returns:
- The ID of the user.
- Since:
- 1.0
-
setId
Sets the ID of the user.- Parameters:
id
- The new ID of the user.- Since:
- 1.0
-
isHasPassword
public boolean isHasPassword()Returns whether the user has a password.- Returns:
- True if the user has a password, false otherwise.
- Since:
- 1.0
-
setHasPassword
public void setHasPassword(boolean hasPassword) Sets whether the user has a password.- Parameters:
hasPassword
- True if the user has a password, false otherwise.- Since:
- 1.0
-
isHasConfiguredPassword
public boolean isHasConfiguredPassword()Returns whether the user has a configured password.- Returns:
- True if the user has a configured password, false otherwise.
- Since:
- 1.0
-
setHasConfiguredPassword
public void setHasConfiguredPassword(boolean hasConfiguredPassword) Sets whether the user has a configured password.- Parameters:
hasConfiguredPassword
- True if the user has a configured password, false otherwise.- Since:
- 1.0
-
isHasConfiguredEasyPassword
public boolean isHasConfiguredEasyPassword()Returns whether the user has a configured easy password.- Returns:
- True if the user has a configured easy password, false otherwise.
- Since:
- 1.0
-
setHasConfiguredEasyPassword
public void setHasConfiguredEasyPassword(boolean hasConfiguredEasyPassword) Sets whether the user has a configured easy password.- Parameters:
hasConfiguredEasyPassword
- True if the user has a configured easy password, false otherwise.- Since:
- 1.0
-
isEnableAutoLogin
public boolean isEnableAutoLogin()Returns whether auto login is enabled for the user.- Returns:
- True if auto login is enabled, false otherwise.
- Since:
- 1.0
-
setEnableAutoLogin
public void setEnableAutoLogin(boolean enableAutoLogin) Sets whether auto login is enabled for the user.- Parameters:
enableAutoLogin
- True to enable auto login, false to disable it.- Since:
- 1.0
-
getLastLoginDate
Returns the last login date of the user.- Returns:
- The last login date of the user.
- Since:
- 1.0
-
setLastLoginDate
Sets the last login date of the user.- Parameters:
lastLoginDate
- The new last login date of the user.- Since:
- 1.0
-
getLastActivityDate
Returns the last activity date of the user.- Returns:
- The last activity date of the user.
- Since:
- 1.0
-
setLastActivityDate
Sets the last activity date of the user.- Parameters:
lastActivityDate
- The new last activity date of the user.- Since:
- 1.0
-
getConfiguration
Returns the configuration of the user.- Returns:
- The configuration of the user.
- Since:
- 1.0
-
setConfiguration
Sets the configuration of the user.- Parameters:
configuration
- The new configuration of the user.- Since:
- 1.0
-
getPolicy
Returns the policy of the user.- Returns:
- The policy of the user.
- Since:
- 1.0
-
setPolicy
Sets the policy of the user.- Parameters:
policy
- The new policy of the user.- Since:
- 1.0
-
getPrimaryImageTag
Returns the primary image tag of the user.- Returns:
- The primary image tag of the user.
- Since:
- 1.0
-
setPrimaryImageTag
Sets the primary image tag of the user.- Parameters:
PrimaryImageTag
- The new primary image tag of the user.- Since:
- 1.0
-