Resources Manager

The ResourcesManager interface is useful to create and manage the resources files

Author

N7ghtm4r3 - Tecknobit

Since

1.0.1

Inheritors

Properties

Link copied to clipboard
val PROFILES_DIRECTORY: String = "profiles"
PROFILES_DIRECTORY the folder where the profile pics will be saved
Link copied to clipboard
val RESOURCES_KEY: String = "resources"
RESOURCES_KEY the key of the resources folder where the resources will be saved
Link copied to clipboard
val RESOURCES_PATH: String = "resources/"
RESOURCES_PATH the folder where the resources will be saved

Functions

Link copied to clipboard
open fun createProfileResource(resource: MultipartFile, resourceId: String): String
Method to create the pathname for a profile pic
Link copied to clipboard
open fun createResource(resource: MultipartFile, resourcesDirectory: String, resourceId: String): String
Method to create the pathname of a resource file
Link copied to clipboard
Method to delete a profile pic
Link copied to clipboard
open fun deleteResource(resourcesDirectory: String, resourceId: String): Boolean
Method to delete a resource file
Link copied to clipboard
open fun getSuffixResource(resource: MultipartFile): String
Method to get the suffix of a resource file
Link copied to clipboard
open fun saveResource(resource: MultipartFile, path: String)
Method to save a resource file