Package com.lariflix.jemm.core
Class LoadFolderMetadata
java.lang.Object
com.lariflix.jemm.core.LoadFolderMetadata
This class is responsible for loading folder metadata from the Jellyfin server.
- Since:
- 1.0
- Author:
- Cesar Bianchi
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for the LoadFolderMetadata class.LoadFolderMetadata
(String jellyfinURL, String apiToken, String cAdminID, String cFoldID) Constructor for the LoadFolderMetadata class. -
Method Summary
Modifier and TypeMethodDescriptionGets the API token.Gets the ID of the folder.Gets the admin user ID.Constructs the full URL for accessing a specific folder on the Jellyfin server.Gets the Jellyfin instance URL.Requests metadata for a specific folder from the Jellyfin server.void
setApiToken
(String apiToken) Sets the API token.void
setcFolderID
(String cFolderID) Sets the ID of the folder.void
setcUserAdminID
(String cUserAdminID) Sets the admin user ID.void
setFullURL
(String fullURL) Sets the full URL for accessing a specific folder on the Jellyfin server.void
setJellyfinInstanceUrl
(String jellyfinInstanceUrl) Sets the Jellyfin instance URL.
-
Constructor Details
-
LoadFolderMetadata
public LoadFolderMetadata()Constructor for the LoadFolderMetadata class.- Since:
- 1.0
-
LoadFolderMetadata
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.ParseExceptionRequests 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
Gets the Jellyfin instance URL.- Returns:
- The Jellyfin instance URL.
- Since:
- 1.0
-
setJellyfinInstanceUrl
Sets the Jellyfin instance URL.- Parameters:
jellyfinInstanceUrl
- The Jellyfin instance URL.- Since:
- 1.0
-
getApiToken
Gets the API token.- Returns:
- The API token.
- Since:
- 1.0
-
setApiToken
Sets the API token.- Parameters:
apiToken
- The API token.- Since:
- 1.0
-
getcUserAdminID
Gets the admin user ID.- Returns:
- The admin user ID.
- Since:
- 1.0
-
setcUserAdminID
Sets the admin user ID.- Parameters:
cUserAdminID
- The admin user ID.- Since:
- 1.0
-
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
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
Gets the ID of the folder.- Returns:
- The ID of the folder.
- Since:
- 1.0
-
setcFolderID
Sets the ID of the folder.- Parameters:
cFolderID
- The ID of the folder.- Since:
- 1.0
-