NovaResourcesManager

interface NovaResourcesManager : ResourcesManager

The NovaResourcesManager interface is useful to create and manage the resources files as profile pic, project logo, asset and report

Author

N7ghtm4r3 - Tecknobit

See also

ResourcesManager

Inheritors

Properties

Link copied to clipboard
val ASSETS_DIRECTORY: String = "assets"
ASSETS_DIRECTORY the assets directory where are stored the assets of the releases uploaded
Link copied to clipboard
val LOGOS_DIRECTORY: String = "logos"
LOGOS_DIRECTORY the logos directory where are stored the logos of the projects
Link copied to clipboard
val PROFILES_DIRECTORY: String = "profiles"
Link copied to clipboard
val REPORTS_DIRECTORY: String = "reports"
REPORTS_DIRECTORY the reports directory where are stored the reports of the releases created
Link copied to clipboard
val RESOURCES_KEY: String = "resources"
Link copied to clipboard
val RESOURCES_PATH: String = "resources/"
Link copied to clipboard
val RESOURCES_REPORTS_PATH: String = "resources/reports/"
RESOURCES_REPORTS_PATH the complete reports path from resources directory

Functions

Link copied to clipboard
open fun createAssetResource(resource: MultipartFile, resourceId: String): String
Method to create the pathname for an asset
Link copied to clipboard
open fun createLogoResource(resource: MultipartFile, resourceId: String): String
Method to create the pathname for a project logo
Link copied to clipboard
open fun createProfileResource(resource: MultipartFile, resourceId: String): String
Link copied to clipboard
open fun createReportResource(resource: MultipartFile, resourceId: String): String
Method to create the pathname for a report
Link copied to clipboard
open fun createResource(resource: MultipartFile, resourcesDirectory: String, resourceId: String): String
Link copied to clipboard
open fun deleteAssetResource(assetId: String): Boolean
Method to delete an asset
Link copied to clipboard
open fun deleteLogoResource(logoId: String): Boolean
Method to delete a project logo
Link copied to clipboard
Link copied to clipboard
open fun deleteReportResource(reportId: String): Boolean
Method to delete a report
Link copied to clipboard
open fun deleteResource(resourcesDirectory: String, resourceId: String): Boolean
Link copied to clipboard
open fun getSuffixResource(resource: MultipartFile): String
Link copied to clipboard
open fun saveResource(resource: MultipartFile, path: String)