TeamsHelper
The TeamsHelper
class is useful to manage all the Team database operations
Author
N7ghtm4r3 - Tecknobit
See also
Types
Link copied to clipboard
Record class representing a team payload useful to create or edit a Team
Properties
Link copied to clipboard
ADD_MEMBERS_QUERY
the query used to add new members to a teamLink copied to clipboard
protected val ATTACH_TEAM_TO_COLLECTIONS_QUERY: String = "REPLACE INTO collections_teams(collection_id,team_id) VALUES "
ATTACH_TEAM_TO_COLLECTIONS_QUERY
the query used to attach collections to the teamLink copied to clipboard
protected val ATTACH_TEAM_TO_LINKS_QUERY: String = "REPLACE INTO teams_links(link_id,team_id) VALUES "
ATTACH_TEAM_TO_LINKS_QUERY
the query used to attach links to the teamLink copied to clipboard
private val DETACH_TEAM_FROM_COLLECTIONS_QUERY: String = "DELETE FROM collections_teams WHERE team_id='%s' AND collection_id IN ("
DETACH_TEAM_FROM_COLLECTIONS_QUERY
the query used to detach collections from a teamLink copied to clipboard
private val DETACH_TEAM_FROM_LINKS_QUERY: String = "DELETE FROM teams_links WHERE team_id='%s' AND link_id IN ("
DETACH_TEAM_FROM_LINKS_QUERY
the query used to detach links from a teamLink copied to clipboard
entityManager
entity manager helperLink copied to clipboard
LOGOS_DIRECTORY
the key of the logos folder where the logos of the team will be savedLink copied to clipboard
Link copied to clipboard
RELATIONSHIP_VALUES_SLICE
query part to insert in the join table new rowLink copied to clipboard
private val REMOVE_MEMBERS_FROM_TEAM_QUERY: String = "DELETE FROM members WHERE team_id='%s' AND owner IN ("
REMOVE_MEMBERS_FROM_TEAM_QUERY
the query used to remove members from a teamLink copied to clipboard
REPLACE_MEMBERS_QUERY
the query used to replace member in a teamLink copied to clipboard
Link copied to clipboard
Link copied to clipboard
ROUND_BRACKET
round bracket characterLink copied to clipboard
SINGLE_QUOTE
single quote characterLink copied to clipboard
teamsRepository
instance for the teams repositoryLink copied to clipboard
TUPLE_VALUES_SLICE
query part to insert in the join table new rowFunctions
Link copied to clipboard
Method change the role of a team member
Link copied to clipboard
Method to create the pathname for a logo picture of a team
Link copied to clipboard
Link copied to clipboard
open fun createResource(resource: MultipartFile, resourcesDirectory: String, resourceId: String): String
Link copied to clipboard
Method to create a new team
Link copied to clipboard
Method to delete a logo picture of a team
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Method to delete a team
Link copied to clipboard
Method to edit a team
Link copied to clipboard
Link copied to clipboard
protected open fun <I> executeInsertBatch(insertQuery: String, valuesSlice: String, values: Collection<I>, batchQuery: RefyItemsHelper.BatchQuery)
Method to execute a batch query to insert attachments
Link copied to clipboard
Method to get all the user's teams
Link copied to clipboard
Method to get the batch query to manage the team members
Link copied to clipboard
Method to get the workflow to manage the team's attachments
Link copied to clipboard
Method used to get an item if the user is authorized
Link copied to clipboard
Link copied to clipboard
Method to get the user's owned teams
Link copied to clipboard
Method to get the user's owned teams identifiers
Link copied to clipboard
protected open fun manageAttachments(workflow: RefyItemsHelper.AttachmentsManagementWorkflow, itemId: String, ids: List<String>)
protected open fun manageAttachments(workflow: RefyItemsHelper.AttachmentsManagementWorkflow, valuesSlice: String, itemId: String, ids: List<String>, batchQuery: RefyItemsHelper.BatchQuery)
Method to manage the attachments of an item to a container
Link copied to clipboard
Method to manage the collections shared with a team
Link copied to clipboard
Method to manage the links attached to a team
Link copied to clipboard
Method to remove a member from a team
Link copied to clipboard