Class LoadPeople

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

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

    • LoadPeople

      public LoadPeople()
      Default constructor for the LoadPeople class.
      Since:
      1.0
    • LoadPeople

      public LoadPeople(String jellyfinURL, String apiToken)
      Constructor for the LoadPeople class.
      Parameters:
      jellyfinURL - The URL of the Jellyfin server.
      apiToken - The API token for accessing the Jellyfin server.
      Since:
      1.0
  • Method Details

    • requestPeople

      public JellyfinCadPeopleItems requestPeople() throws MalformedURLException, IOException, org.json.simple.parser.ParseException
      Requests people from the Jellyfin server.
      Returns:
      A JellyfinCadPeopleItems object containing the people.
      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 ID of the admin user.
      Returns:
      The ID of the admin user.
      Since:
      1.0
    • setcUserAdminID

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

      public String getcParentID()
      Gets the ID of the parent item.
      Returns:
      The ID of the parent item.
      Since:
      1.0
    • setcParentID

      public void setcParentID(String cParentID)
      Sets the ID of the parent item.
      Parameters:
      cParentID - The ID of the parent item.
      Since:
      1.0
    • getFullURL

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