Class JellyfinUserPolicy

java.lang.Object
com.lariflix.jemm.dtos.JellyfinUserPolicy

public class JellyfinUserPolicy extends Object
This class represents the user policy in Jellyfin.
Since:
1.0
Author:
Cesar Bianchi
See Also:
  • Field Details

    • isAdministrator

      public boolean isAdministrator
    • isHidden

      public boolean isHidden
    • isDisabled

      public boolean isDisabled
    • blockedTags

      public ArrayList<Object> blockedTags
    • enableUserPreferenceAccess

      public boolean enableUserPreferenceAccess
    • accessSchedules

      public ArrayList<Object> accessSchedules
    • blockUnratedItems

      public ArrayList<Object> blockUnratedItems
    • enableRemoteControlOfOtherUsers

      public boolean enableRemoteControlOfOtherUsers
    • enableSharedDeviceControl

      public boolean enableSharedDeviceControl
    • 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

      public ArrayList<Object> enableContentDeletionFromFolders
    • enableContentDownloading

      public boolean enableContentDownloading
    • enableSyncTranscoding

      public boolean enableSyncTranscoding
    • enableMediaConversion

      public boolean enableMediaConversion
    • enabledDevices

      public ArrayList<Object> enabledDevices
    • enableAllDevices

      public boolean enableAllDevices
    • enabledChannels

      public ArrayList<Object> enabledChannels
    • enableAllChannels

      public boolean enableAllChannels
    • enabledFolders

      public ArrayList<Object> enabledFolders
    • enableAllFolders

      public boolean enableAllFolders
    • invalidLoginAttemptCount

      public int invalidLoginAttemptCount
    • loginAttemptsBeforeLockout

      public int loginAttemptsBeforeLockout
    • maxActiveSessions

      public int maxActiveSessions
    • enablePublicSharing

      public boolean enablePublicSharing
    • blockedMediaFolders

      public ArrayList<Object> blockedMediaFolders
    • blockedChannels

      public ArrayList<Object> blockedChannels
    • remoteClientBitrateLimit

      public int remoteClientBitrateLimit
    • authenticationProviderId

      public String authenticationProviderId
    • passwordResetProviderId

      public String passwordResetProviderId
    • syncPlayAccess

      public String 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

      public ArrayList<Object> getBlockedTags()
      Returns the blocked tags of the user.
      Returns:
      The blocked tags of the user.
      Since:
      1.0
    • setBlockedTags

      public void setBlockedTags(ArrayList<Object> blockedTags)
      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

      public ArrayList<Object> getAccessSchedules()
      Returns the access schedules of the user.
      Returns:
      The access schedules of the user.
      Since:
      1.0
    • setAccessSchedules

      public void setAccessSchedules(ArrayList<Object> accessSchedules)
      Sets the access schedules of the user.
      Parameters:
      accessSchedules - The new access schedules of the user.
      Since:
      1.0
    • getBlockUnratedItems

      public ArrayList<Object> 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

      public void setBlockUnratedItems(ArrayList<Object> blockUnratedItems)
      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
    • isEnableSharedDeviceControl

      public boolean isEnableSharedDeviceControl()
      Returns whether shared device control is enabled.
      Returns:
      True if shared device control is enabled, false otherwise.
      Since:
      1.0
    • setEnableSharedDeviceControl

      public void setEnableSharedDeviceControl(boolean enableSharedDeviceControl)
      Sets whether shared device control is enabled.
      Parameters:
      enableSharedDeviceControl - True to enable shared device control, 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

      public ArrayList<Object> getEnableContentDeletionFromFolders()
      Returns the folders from which content deletion is enabled.
      Returns:
      The folders from which content deletion is enabled.
      Since:
      1.0
    • setEnableContentDeletionFromFolders

      public void setEnableContentDeletionFromFolders(ArrayList<Object> enableContentDeletionFromFolders)
      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

      public ArrayList<Object> getEnabledDevices()
      Returns the list of enabled devices.
      Returns:
      The list of enabled devices.
      Since:
      1.0
    • setEnabledDevices

      public void setEnabledDevices(ArrayList<Object> enabledDevices)
      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

      public ArrayList<Object> getEnabledChannels()
      Returns the list of enabled channels.
      Returns:
      The list of enabled channels.
      Since:
      1.0
    • setEnabledChannels

      public void setEnabledChannels(ArrayList<Object> enabledChannels)
      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

      public ArrayList<Object> getEnabledFolders()
      Returns the list of enabled folders.
      Returns:
      The list of enabled folders.
      Since:
      1.0
    • setEnabledFolders

      public void setEnabledFolders(ArrayList<Object> enabledFolders)
      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

      public ArrayList<Object> getBlockedMediaFolders()
      Returns the list of blocked media folders.
      Returns:
      The list of blocked media folders.
      Since:
      1.0
    • setBlockedMediaFolders

      public void setBlockedMediaFolders(ArrayList<Object> blockedMediaFolders)
      Sets the list of blocked media folders.
      Parameters:
      blockedMediaFolders - The new list of blocked media folders.
      Since:
      1.0
    • getBlockedChannels

      public ArrayList<Object> getBlockedChannels()
      Returns the list of blocked channels.
      Returns:
      The list of blocked channels.
      Since:
      1.0
    • setBlockedChannels

      public void setBlockedChannels(ArrayList<Object> blockedChannels)
      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

      public String getAuthenticationProviderId()
      Returns the authentication provider ID.
      Returns:
      The authentication provider ID.
      Since:
      1.0
    • setAuthenticationProviderId

      public void setAuthenticationProviderId(String authenticationProviderId)
      Sets the authentication provider ID.
      Parameters:
      authenticationProviderId - The new authentication provider ID.
      Since:
      1.0
    • getPasswordResetProviderId

      public String getPasswordResetProviderId()
      Returns the password reset provider ID.
      Returns:
      The password reset provider ID.
      Since:
      1.0
    • setPasswordResetProviderId

      public void setPasswordResetProviderId(String passwordResetProviderId)
      Sets the password reset provider ID.
      Parameters:
      passwordResetProviderId - The new password reset provider ID.
      Since:
      1.0
    • getSyncPlayAccess

      public String getSyncPlayAccess()
      Returns the sync play access.
      Returns:
      The sync play access.
      Since:
      1.0
    • setSyncPlayAccess

      public void setSyncPlayAccess(String syncPlayAccess)
      Sets the sync play access.
      Parameters:
      syncPlayAccess - The new sync play access.
      Since:
      1.0