Class LoadFolderMetadata

java.lang.Object
com.lariflix.jemm.core.LoadFolderMetadata

public class LoadFolderMetadata extends Object
This class is responsible for loading folder metadata from the Jellyfin server.
Since:
1.0
Author:
Cesar Bianchi
See Also:
  • Constructor Details

    • LoadFolderMetadata

      public LoadFolderMetadata()
      Constructor for the LoadFolderMetadata class.
      Since:
      1.0
    • LoadFolderMetadata

      public LoadFolderMetadata(String jellyfinURL, String apiToken, String cAdminID, String cFoldID)
      Constructor for the LoadFolderMetadata class.
      Parameters:
      jellyfinURL - The URL of the Jellyfin server.
      apiToken - The API token for accessing the Jellyfin server.
      cAdminID - The ID of the admin user.
      cFoldID - The ID of the folder for which to load metadata.
      Since:
      1.0
  • Method Details

    • requestFolderMetadata

      public JellyfinFolderMetadata requestFolderMetadata() throws MalformedURLException, IOException, org.json.simple.parser.ParseException
      Requests metadata for a specific folder from the Jellyfin server.
      Returns:
      A JellyfinFolderMetadata object containing the folder's metadata.
      Throws:
      MalformedURLException - If the provided URL is not valid.
      IOException - If an I/O error occurs.
      org.json.simple.parser.ParseException - If there is an error parsing the server's response.
      Since:
      1.0
    • getJellyfinInstanceUrl

      public String getJellyfinInstanceUrl()
      Gets the Jellyfin instance URL.
      Returns:
      The Jellyfin instance URL.
      Since:
      1.0
    • setJellyfinInstanceUrl

      public void setJellyfinInstanceUrl(String jellyfinInstanceUrl)
      Sets the Jellyfin instance URL.
      Parameters:
      jellyfinInstanceUrl - The Jellyfin instance URL.
      Since:
      1.0
    • getApiToken

      public String getApiToken()
      Gets the API token.
      Returns:
      The API token.
      Since:
      1.0
    • setApiToken

      public void setApiToken(String apiToken)
      Sets the API token.
      Parameters:
      apiToken - The API token.
      Since:
      1.0
    • getcUserAdminID

      public String getcUserAdminID()
      Gets the admin user ID.
      Returns:
      The admin user ID.
      Since:
      1.0
    • setcUserAdminID

      public void setcUserAdminID(String cUserAdminID)
      Sets the admin user ID.
      Parameters:
      cUserAdminID - The admin user ID.
      Since:
      1.0
    • getFullURL

      public String getFullURL()
      Constructs the full URL for accessing a specific folder on the Jellyfin server.
      Returns:
      The full URL as a string.
      Since:
      1.0
    • setFullURL

      public void setFullURL(String fullURL)
      Sets the full URL for accessing a specific folder on the Jellyfin server.
      Parameters:
      fullURL - The full URL as a string.
      Since:
      1.0
    • getcFolderID

      public String getcFolderID()
      Gets the ID of the folder.
      Returns:
      The ID of the folder.
      Since:
      1.0
    • setcFolderID

      public void setcFolderID(String cFolderID)
      Sets the ID of the folder.
      Parameters:
      cFolderID - The ID of the folder.
      Since:
      1.0