ProjectsHelper
The ProjectsHelper
class is useful to manage all the project database operations
Author
N7ghtm4r3 - Tecknobit
See also
Types
Link copied to clipboard
Record class used ad payload for the addProject request
Properties
Link copied to clipboard
ASSETS_DIRECTORY
the assets directory where are stored the assets of the releases uploadedLink copied to clipboard
entityManager
entity manager helperLink copied to clipboard
protected val INSERT_JOINING_QR_CODE_MEMBERS: String = "INSERT INTO joining_qrcode_members(id,role,email) VALUES "
INSERT_JOINING_QR_CODE_MEMBERS
the query used to insert the members invited in a project with a JoiningQRCodeLink copied to clipboard
JOIN_MEMBERS_QUERY
the query used to join members in a projectLink copied to clipboard
joiningQRCodeRepository
instance for the joining qrcodes repositoryLink copied to clipboard
LOGOS_DIRECTORY
the logos directory where are stored the logos of the projectsLink copied to clipboard
notificationsRepository
instance useful to manage the notificationsLink copied to clipboard
Link copied to clipboard
projectsRepository
instance for the projects repositoryLink copied to clipboard
RELATIONSHIP_VALUES_SLICE
query part to insert in the join table new rowLink copied to clipboard
releasesHelper
helper to manage the releases database operationsLink copied to clipboard
private val REMOVE_MEMBERS_QUERY: String = "DELETE FROM project_members WHERE id='%s' AND member_id IN ("
REMOVE_MEMBERS_QUERY
the query used to remove members from a projectLink copied to clipboard
REPORTS_DIRECTORY
the reports directory where are stored the reports of the releases createdLink copied to clipboard
Link copied to clipboard
Link copied to clipboard
RESOURCES_REPORTS_PATH
the complete reports path from resources directoryLink copied to clipboard
ROUND_BRACKET
round bracket characterLink copied to clipboard
SINGLE_QUOTE
single quote characterLink copied to clipboard
TUPLE_VALUES_SLICE
query part to insert in the join table new rowFunctions
Link copied to clipboard
Link copied to clipboard
Method to create the pathname for an asset
Link copied to clipboard
open fun createJoiningQrcode(QRCodeId: String, projectId: String, invitedMembers: List<JSONObject>): String
Method to create a new joining qrcode
Link copied to clipboard
Method to create the pathname for a project logo
Link copied to clipboard
Link copied to clipboard
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
Method to delete an asset
Link copied to clipboard
Method to delete a joining qrcode
Link copied to clipboard
Method to delete a project logo
Link copied to clipboard
Link copied to clipboard
Method to delete a project and all the data related to it
Link copied to clipboard
Method to delete a report
Link copied to clipboard
Link copied to clipboard
Method to edit an existing project
Link copied to clipboard
Link copied to clipboard
protected open fun <I> executeInsertBatch(insertQuery: String, valuesSlice: String, values: Collection<I>, batchQuery: EquinoxItemsHelper.BatchQuery)
Method to execute a batch query to insert items
Link copied to clipboard
Method used to get an item if the user is authorized
Link copied to clipboard
Method to get an existing joining qrcode by its identifier
Link copied to clipboard
Method to get an existing joining qrcode by its textual join code
Link copied to clipboard
Method to get a project
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Method to join a new member in a project
Link copied to clipboard
protected open fun manageItems(workflow: EquinoxItemsHelper.ItemsManagementWorkflow, itemId: String, ids: List<String>)
protected open fun manageItems(workflow: EquinoxItemsHelper.ItemsManagementWorkflow, valuesSlice: String, itemId: String, ids: List<String>, batchQuery: EquinoxItemsHelper.BatchQuery)
Method to manage the items of an item to a container
Link copied to clipboard
Link copied to clipboard
Method to mark a member as Tester of the project
Link copied to clipboard
Method to remove a member from a project
Link copied to clipboard
Method to remove a member from the mailing list of the joining qrcode.
Link copied to clipboard