Package com.lariflix.jemm.dtos
Class JellyfinUserPolicy
java.lang.Object
com.lariflix.jemm.dtos.JellyfinUserPolicy
This class represents the user policy in Jellyfin.
- Since:
- 1.0
- Author:
- Cesar Bianchi
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
int
boolean
boolean
boolean
int
int
int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the access schedules of the user.Returns the authentication provider ID.Returns the list of blocked channels.Returns the list of blocked media folders.Returns the blocked tags of the user.Returns the unrated items that are blocked for the user.Returns the folders from which content deletion is enabled.Returns the list of enabled channels.Returns the list of enabled devices.Returns the list of enabled folders.int
Returns the number of invalid login attempts.int
Returns the number of login attempts before lockout.int
Returns the maximum number of active sessions.Returns the password reset provider ID.int
Returns the remote client bitrate limit.Returns the sync play access.boolean
Returns whether all channels are enabled.boolean
Returns whether all devices are enabled.boolean
Returns whether all folders are enabled.boolean
Returns whether audio playback transcoding is enabled.boolean
Returns whether content deletion is enabled.boolean
Returns whether content downloading is enabled.boolean
Returns whether Live TV access is enabled.boolean
Returns whether Live TV management is enabled.boolean
Returns whether media conversion is enabled.boolean
Returns whether media playback is enabled.boolean
Returns whether playback remuxing is enabled.boolean
Returns whether public sharing is enabled.boolean
Returns whether remote access is enabled.boolean
Returns whether remote control of other users is enabled.boolean
Returns whether shared device control is enabled.boolean
Returns whether sync transcoding is enabled.boolean
Returns whether user preference access is enabled.boolean
Returns whether video playback transcoding is enabled.boolean
Returns whether force remote source transcoding is enabled.boolean
Returns whether the user is an administrator.boolean
Returns whether the user is disabled.boolean
Returns whether the user is hidden.void
setAccessSchedules
(ArrayList<Object> accessSchedules) Sets the access schedules of the user.void
setAuthenticationProviderId
(String authenticationProviderId) Sets the authentication provider ID.void
setBlockedChannels
(ArrayList<Object> blockedChannels) Sets the list of blocked channels.void
setBlockedMediaFolders
(ArrayList<Object> blockedMediaFolders) Sets the list of blocked media folders.void
setBlockedTags
(ArrayList<Object> blockedTags) Sets the blocked tags of the user.void
setBlockUnratedItems
(ArrayList<Object> blockUnratedItems) Sets the unrated items that are blocked for the user.void
setEnableAllChannels
(boolean enableAllChannels) Sets whether all channels are enabled.void
setEnableAllDevices
(boolean enableAllDevices) Sets whether all devices are enabled.void
setEnableAllFolders
(boolean enableAllFolders) Sets whether all folders are enabled.void
setEnableAudioPlaybackTranscoding
(boolean enableAudioPlaybackTranscoding) Sets whether audio playback transcoding is enabled.void
setEnableContentDeletion
(boolean enableContentDeletion) Sets whether content deletion is enabled.void
setEnableContentDeletionFromFolders
(ArrayList<Object> enableContentDeletionFromFolders) Sets the folders from which content deletion is enabled.void
setEnableContentDownloading
(boolean enableContentDownloading) Sets whether content downloading is enabled.void
setEnabledChannels
(ArrayList<Object> enabledChannels) Sets the list of enabled channels.void
setEnabledDevices
(ArrayList<Object> enabledDevices) Sets the list of enabled devices.void
setEnabledFolders
(ArrayList<Object> enabledFolders) Sets the list of enabled folders.void
setEnableLiveTvAccess
(boolean enableLiveTvAccess) Sets whether Live TV access is enabled.void
setEnableLiveTvManagement
(boolean enableLiveTvManagement) Sets whether Live TV management is enabled.void
setEnableMediaConversion
(boolean enableMediaConversion) Sets whether media conversion is enabled.void
setEnableMediaPlayback
(boolean enableMediaPlayback) Sets whether media playback is enabled.void
setEnablePlaybackRemuxing
(boolean enablePlaybackRemuxing) Sets whether playback remuxing is enabled.void
setEnablePublicSharing
(boolean enablePublicSharing) Sets whether public sharing is enabled.void
setEnableRemoteAccess
(boolean enableRemoteAccess) Sets whether remote access is enabled.void
setEnableRemoteControlOfOtherUsers
(boolean enableRemoteControlOfOtherUsers) Sets whether remote control of other users is enabled.void
setEnableSharedDeviceControl
(boolean enableSharedDeviceControl) Sets whether shared device control is enabled.void
setEnableSyncTranscoding
(boolean enableSyncTranscoding) Sets whether sync transcoding is enabled.void
setEnableUserPreferenceAccess
(boolean enableUserPreferenceAccess) Sets whether user preference access is enabled.void
setEnableVideoPlaybackTranscoding
(boolean enableVideoPlaybackTranscoding) Sets whether video playback transcoding is enabled.void
setForceRemoteSourceTranscoding
(boolean forceRemoteSourceTranscoding) Sets whether force remote source transcoding is enabled.void
setInvalidLoginAttemptCount
(int invalidLoginAttemptCount) Sets the number of invalid login attempts.void
setIsAdministrator
(boolean isAdministrator) Sets whether the user is an administrator.void
setIsDisabled
(boolean isDisabled) Sets whether the user is disabled.void
setIsHidden
(boolean isHidden) Sets whether the user is hidden.void
setLoginAttemptsBeforeLockout
(int loginAttemptsBeforeLockout) Sets the number of login attempts before lockout.void
setMaxActiveSessions
(int maxActiveSessions) Sets the maximum number of active sessions.void
setPasswordResetProviderId
(String passwordResetProviderId) Sets the password reset provider ID.void
setRemoteClientBitrateLimit
(int remoteClientBitrateLimit) Sets the remote client bitrate limit.void
setSyncPlayAccess
(String syncPlayAccess) Sets the sync play access.
-
Field Details
-
isAdministrator
public boolean isAdministrator -
isHidden
public boolean isHidden -
isDisabled
public boolean isDisabled -
blockedTags
-
enableUserPreferenceAccess
public boolean enableUserPreferenceAccess -
accessSchedules
-
blockUnratedItems
-
enableRemoteControlOfOtherUsers
public boolean enableRemoteControlOfOtherUsers -
enableRemoteAccess
public boolean enableRemoteAccess -
enableLiveTvManagement
public boolean enableLiveTvManagement -
enableLiveTvAccess
public boolean enableLiveTvAccess -
enableMediaPlayback
public boolean enableMediaPlayback -
enableAudioPlaybackTranscoding
public boolean enableAudioPlaybackTranscoding -
enableVideoPlaybackTranscoding
public boolean enableVideoPlaybackTranscoding -
enablePlaybackRemuxing
public boolean enablePlaybackRemuxing -
forceRemoteSourceTranscoding
public boolean forceRemoteSourceTranscoding -
enableContentDeletion
public boolean enableContentDeletion -
enableContentDeletionFromFolders
-
enableContentDownloading
public boolean enableContentDownloading -
enableSyncTranscoding
public boolean enableSyncTranscoding -
enableMediaConversion
public boolean enableMediaConversion -
enabledDevices
-
enableAllDevices
public boolean enableAllDevices -
enabledChannels
-
enableAllChannels
public boolean enableAllChannels -
enabledFolders
-
enableAllFolders
public boolean enableAllFolders -
invalidLoginAttemptCount
public int invalidLoginAttemptCount -
loginAttemptsBeforeLockout
public int loginAttemptsBeforeLockout -
maxActiveSessions
public int maxActiveSessions -
enablePublicSharing
public boolean enablePublicSharing -
blockedMediaFolders
-
blockedChannels
-
remoteClientBitrateLimit
public int remoteClientBitrateLimit -
authenticationProviderId
-
passwordResetProviderId
-
syncPlayAccess
-
-
Constructor Details
-
JellyfinUserPolicy
public JellyfinUserPolicy()Default constructor for JellyfinUserPolicy.- Since:
- 1.0
-
-
Method Details
-
isIsAdministrator
public boolean isIsAdministrator()Returns whether the user is an administrator.- Returns:
- True if the user is an administrator, false otherwise.
- Since:
- 1.0
-
setIsAdministrator
public void setIsAdministrator(boolean isAdministrator) Sets whether the user is an administrator.- Parameters:
isAdministrator
- True to set the user as an administrator, false otherwise.- Since:
- 1.0
-
isIsHidden
public boolean isIsHidden()Returns whether the user is hidden.- Returns:
- True if the user is hidden, false otherwise.
- Since:
- 1.0
-
setIsHidden
public void setIsHidden(boolean isHidden) Sets whether the user is hidden.- Parameters:
isHidden
- True to set the user as hidden, false otherwise.- Since:
- 1.0
-
isIsDisabled
public boolean isIsDisabled()Returns whether the user is disabled.- Returns:
- True if the user is disabled, false otherwise.
- Since:
- 1.0
-
setIsDisabled
public void setIsDisabled(boolean isDisabled) Sets whether the user is disabled.- Parameters:
isDisabled
- True to set the user as disabled, false otherwise.- Since:
- 1.0
-
getBlockedTags
Returns the blocked tags of the user.- Returns:
- The blocked tags of the user.
- Since:
- 1.0
-
setBlockedTags
Sets the blocked tags of the user.- Parameters:
blockedTags
- The new blocked tags of the user.- Since:
- 1.0
-
isEnableUserPreferenceAccess
public boolean isEnableUserPreferenceAccess()Returns whether user preference access is enabled.- Returns:
- True if user preference access is enabled, false otherwise.
- Since:
- 1.0
-
setEnableUserPreferenceAccess
public void setEnableUserPreferenceAccess(boolean enableUserPreferenceAccess) Sets whether user preference access is enabled.- Parameters:
enableUserPreferenceAccess
- True to enable user preference access, false otherwise.- Since:
- 1.0
-
getAccessSchedules
Returns the access schedules of the user.- Returns:
- The access schedules of the user.
- Since:
- 1.0
-
setAccessSchedules
Sets the access schedules of the user.- Parameters:
accessSchedules
- The new access schedules of the user.- Since:
- 1.0
-
getBlockUnratedItems
Returns the unrated items that are blocked for the user.- Returns:
- The unrated items that are blocked for the user.
- Since:
- 1.0
-
setBlockUnratedItems
Sets the unrated items that are blocked for the user.- Parameters:
blockUnratedItems
- The new unrated items that are blocked for the user.- Since:
- 1.0
-
isEnableRemoteControlOfOtherUsers
public boolean isEnableRemoteControlOfOtherUsers()Returns whether remote control of other users is enabled.- Returns:
- True if remote control of other users is enabled, false otherwise.
- Since:
- 1.0
-
setEnableRemoteControlOfOtherUsers
public void setEnableRemoteControlOfOtherUsers(boolean enableRemoteControlOfOtherUsers) Sets whether remote control of other users is enabled.- Parameters:
enableRemoteControlOfOtherUsers
- True to enable remote control of other users, false otherwise.- Since:
- 1.0
-
isEnableRemoteAccess
public boolean isEnableRemoteAccess()Returns whether remote access is enabled.- Returns:
- True if remote access is enabled, false otherwise.
- Since:
- 1.0
-
setEnableRemoteAccess
public void setEnableRemoteAccess(boolean enableRemoteAccess) Sets whether remote access is enabled.- Parameters:
enableRemoteAccess
- True to enable remote access, false otherwise.- Since:
- 1.0
-
isEnableLiveTvManagement
public boolean isEnableLiveTvManagement()Returns whether Live TV management is enabled.- Returns:
- True if Live TV management is enabled, false otherwise.
- Since:
- 1.0
-
setEnableLiveTvManagement
public void setEnableLiveTvManagement(boolean enableLiveTvManagement) Sets whether Live TV management is enabled.- Parameters:
enableLiveTvManagement
- True to enable Live TV management, false otherwise.- Since:
- 1.0
-
isEnableLiveTvAccess
public boolean isEnableLiveTvAccess()Returns whether Live TV access is enabled.- Returns:
- True if Live TV access is enabled, false otherwise.
- Since:
- 1.0
-
setEnableLiveTvAccess
public void setEnableLiveTvAccess(boolean enableLiveTvAccess) Sets whether Live TV access is enabled.- Parameters:
enableLiveTvAccess
- True to enable Live TV access, false otherwise.- Since:
- 1.0
-
isEnableMediaPlayback
public boolean isEnableMediaPlayback()Returns whether media playback is enabled.- Returns:
- True if media playback is enabled, false otherwise.
- Since:
- 1.0
-
setEnableMediaPlayback
public void setEnableMediaPlayback(boolean enableMediaPlayback) Sets whether media playback is enabled.- Parameters:
enableMediaPlayback
- True to enable media playback, false otherwise.- Since:
- 1.0
-
isEnableAudioPlaybackTranscoding
public boolean isEnableAudioPlaybackTranscoding()Returns whether audio playback transcoding is enabled.- Returns:
- True if audio playback transcoding is enabled, false otherwise.
- Since:
- 1.0
-
setEnableAudioPlaybackTranscoding
public void setEnableAudioPlaybackTranscoding(boolean enableAudioPlaybackTranscoding) Sets whether audio playback transcoding is enabled.- Parameters:
enableAudioPlaybackTranscoding
- True to enable audio playback transcoding, false otherwise.- Since:
- 1.0
-
isEnableVideoPlaybackTranscoding
public boolean isEnableVideoPlaybackTranscoding()Returns whether video playback transcoding is enabled.- Returns:
- True if video playback transcoding is enabled, false otherwise.
- Since:
- 1.0
-
setEnableVideoPlaybackTranscoding
public void setEnableVideoPlaybackTranscoding(boolean enableVideoPlaybackTranscoding) Sets whether video playback transcoding is enabled.- Parameters:
enableVideoPlaybackTranscoding
- True to enable video playback transcoding, false otherwise.- Since:
- 1.0
-
isEnablePlaybackRemuxing
public boolean isEnablePlaybackRemuxing()Returns whether playback remuxing is enabled.- Returns:
- True if playback remuxing is enabled, false otherwise.
- Since:
- 1.0
-
setEnablePlaybackRemuxing
public void setEnablePlaybackRemuxing(boolean enablePlaybackRemuxing) Sets whether playback remuxing is enabled.- Parameters:
enablePlaybackRemuxing
- True to enable playback remuxing, false otherwise.- Since:
- 1.0
-
isForceRemoteSourceTranscoding
public boolean isForceRemoteSourceTranscoding()Returns whether force remote source transcoding is enabled.- Returns:
- True if force remote source transcoding is enabled, false otherwise.
- Since:
- 1.0
-
setForceRemoteSourceTranscoding
public void setForceRemoteSourceTranscoding(boolean forceRemoteSourceTranscoding) Sets whether force remote source transcoding is enabled.- Parameters:
forceRemoteSourceTranscoding
- True to enable force remote source transcoding, false otherwise.- Since:
- 1.0
-
isEnableContentDeletion
public boolean isEnableContentDeletion()Returns whether content deletion is enabled.- Returns:
- True if content deletion is enabled, false otherwise.
- Since:
- 1.0
-
setEnableContentDeletion
public void setEnableContentDeletion(boolean enableContentDeletion) Sets whether content deletion is enabled.- Parameters:
enableContentDeletion
- True to enable content deletion, false otherwise.- Since:
- 1.0
-
getEnableContentDeletionFromFolders
Returns the folders from which content deletion is enabled.- Returns:
- The folders from which content deletion is enabled.
- Since:
- 1.0
-
setEnableContentDeletionFromFolders
Sets the folders from which content deletion is enabled.- Parameters:
enableContentDeletionFromFolders
- The new folders from which content deletion is enabled.- Since:
- 1.0
-
isEnableContentDownloading
public boolean isEnableContentDownloading()Returns whether content downloading is enabled.- Returns:
- True if content downloading is enabled, false otherwise.
- Since:
- 1.0
-
setEnableContentDownloading
public void setEnableContentDownloading(boolean enableContentDownloading) Sets whether content downloading is enabled.- Parameters:
enableContentDownloading
- True to enable content downloading, false otherwise.- Since:
- 1.0
-
isEnableSyncTranscoding
public boolean isEnableSyncTranscoding()Returns whether sync transcoding is enabled.- Returns:
- True if sync transcoding is enabled, false otherwise.
- Since:
- 1.0
-
setEnableSyncTranscoding
public void setEnableSyncTranscoding(boolean enableSyncTranscoding) Sets whether sync transcoding is enabled.- Parameters:
enableSyncTranscoding
- True to enable sync transcoding, false otherwise.- Since:
- 1.0
-
isEnableMediaConversion
public boolean isEnableMediaConversion()Returns whether media conversion is enabled.- Returns:
- True if media conversion is enabled, false otherwise.
- Since:
- 1.0
-
setEnableMediaConversion
public void setEnableMediaConversion(boolean enableMediaConversion) Sets whether media conversion is enabled.- Parameters:
enableMediaConversion
- True to enable media conversion, false otherwise.- Since:
- 1.0
-
getEnabledDevices
Returns the list of enabled devices.- Returns:
- The list of enabled devices.
- Since:
- 1.0
-
setEnabledDevices
Sets the list of enabled devices.- Parameters:
enabledDevices
- The new list of enabled devices.- Since:
- 1.0
-
isEnableAllDevices
public boolean isEnableAllDevices()Returns whether all devices are enabled.- Returns:
- True if all devices are enabled, false otherwise.
- Since:
- 1.0
-
setEnableAllDevices
public void setEnableAllDevices(boolean enableAllDevices) Sets whether all devices are enabled.- Parameters:
enableAllDevices
- True to enable all devices, false otherwise.- Since:
- 1.0
-
getEnabledChannels
Returns the list of enabled channels.- Returns:
- The list of enabled channels.
- Since:
- 1.0
-
setEnabledChannels
Sets the list of enabled channels.- Parameters:
enabledChannels
- The new list of enabled channels.- Since:
- 1.0
-
isEnableAllChannels
public boolean isEnableAllChannels()Returns whether all channels are enabled.- Returns:
- True if all channels are enabled, false otherwise.
- Since:
- 1.0
-
setEnableAllChannels
public void setEnableAllChannels(boolean enableAllChannels) Sets whether all channels are enabled.- Parameters:
enableAllChannels
- True to enable all channels, false otherwise.- Since:
- 1.0
-
getEnabledFolders
Returns the list of enabled folders.- Returns:
- The list of enabled folders.
- Since:
- 1.0
-
setEnabledFolders
Sets the list of enabled folders.- Parameters:
enabledFolders
- The new list of enabled folders.- Since:
- 1.0
-
isEnableAllFolders
public boolean isEnableAllFolders()Returns whether all folders are enabled.- Returns:
- True if all folders are enabled, false otherwise.
- Since:
- 1.0
-
setEnableAllFolders
public void setEnableAllFolders(boolean enableAllFolders) Sets whether all folders are enabled.- Parameters:
enableAllFolders
- True to enable all folders, false otherwise.- Since:
- 1.0
-
getInvalidLoginAttemptCount
public int getInvalidLoginAttemptCount()Returns the number of invalid login attempts.- Returns:
- The number of invalid login attempts.
- Since:
- 1.0
-
setInvalidLoginAttemptCount
public void setInvalidLoginAttemptCount(int invalidLoginAttemptCount) Sets the number of invalid login attempts.- Parameters:
invalidLoginAttemptCount
- The new number of invalid login attempts.- Since:
- 1.0
-
getLoginAttemptsBeforeLockout
public int getLoginAttemptsBeforeLockout()Returns the number of login attempts before lockout.- Returns:
- The number of login attempts before lockout.
- Since:
- 1.0
-
setLoginAttemptsBeforeLockout
public void setLoginAttemptsBeforeLockout(int loginAttemptsBeforeLockout) Sets the number of login attempts before lockout.- Parameters:
loginAttemptsBeforeLockout
- The new number of login attempts before lockout.- Since:
- 1.0
-
getMaxActiveSessions
public int getMaxActiveSessions()Returns the maximum number of active sessions.- Returns:
- The maximum number of active sessions.
- Since:
- 1.0
-
setMaxActiveSessions
public void setMaxActiveSessions(int maxActiveSessions) Sets the maximum number of active sessions.- Parameters:
maxActiveSessions
- The new maximum number of active sessions.- Since:
- 1.0
-
isEnablePublicSharing
public boolean isEnablePublicSharing()Returns whether public sharing is enabled.- Returns:
- True if public sharing is enabled, false otherwise.
- Since:
- 1.0
-
setEnablePublicSharing
public void setEnablePublicSharing(boolean enablePublicSharing) Sets whether public sharing is enabled.- Parameters:
enablePublicSharing
- True to enable public sharing, false otherwise.- Since:
- 1.0
-
getBlockedMediaFolders
Returns the list of blocked media folders.- Returns:
- The list of blocked media folders.
- Since:
- 1.0
-
setBlockedMediaFolders
Sets the list of blocked media folders.- Parameters:
blockedMediaFolders
- The new list of blocked media folders.- Since:
- 1.0
-
getBlockedChannels
Returns the list of blocked channels.- Returns:
- The list of blocked channels.
- Since:
- 1.0
-
setBlockedChannels
Sets the list of blocked channels.- Parameters:
blockedChannels
- The new list of blocked channels.- Since:
- 1.0
-
getRemoteClientBitrateLimit
public int getRemoteClientBitrateLimit()Returns the remote client bitrate limit.- Returns:
- The remote client bitrate limit.
- Since:
- 1.0
-
setRemoteClientBitrateLimit
public void setRemoteClientBitrateLimit(int remoteClientBitrateLimit) Sets the remote client bitrate limit.- Parameters:
remoteClientBitrateLimit
- The new remote client bitrate limit.- Since:
- 1.0
-
getAuthenticationProviderId
Returns the authentication provider ID.- Returns:
- The authentication provider ID.
- Since:
- 1.0
-
setAuthenticationProviderId
Sets the authentication provider ID.- Parameters:
authenticationProviderId
- The new authentication provider ID.- Since:
- 1.0
-
getPasswordResetProviderId
Returns the password reset provider ID.- Returns:
- The password reset provider ID.
- Since:
- 1.0
-
setPasswordResetProviderId
Sets the password reset provider ID.- Parameters:
passwordResetProviderId
- The new password reset provider ID.- Since:
- 1.0
-
getSyncPlayAccess
Returns the sync play access.- Returns:
- The sync play access.
- Since:
- 1.0
-
setSyncPlayAccess
Sets the sync play access.- Parameters:
syncPlayAccess
- The new sync play access.- Since:
- 1.0
-