TeamsService
The TeamsHelper class is useful to manage all the Team database operations
Author
N7ghtm4r3 - Tecknobit
See also
Constructors
Link copied to clipboard
@Autowired
Constructor used to init the service
Types
Link copied to clipboard
Record class representing a team payload useful to create or edit a Team
Properties
Link copied to clipboard
collectionsRepository instance for the collections repositoryLink copied to clipboard
Link copied to clipboard
linksRepository instance for the links repositoryLink 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
Link copied to clipboard
Link copied to clipboard
teamsRepository instance for the teams repositoryFunctions
Link copied to clipboard
protected open fun batchDelete(table: String, values: Collection<out Any>, columns: Array<@NotNull String>)
Link copied to clipboard
protected open fun <V> batchInsert(command: EquinoxItemsHelper.InsertCommand, table: String, batchQuery: EquinoxItemsHelper.BatchQuery<V>)
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
Method used to get an item if the user is authorized
Link copied to clipboard
Link copied to clipboard
open fun getTeamCollections(teamId: String, page: Int, pageSize: Int): PaginatedResponse<LinksCollection>
Method to get the collections shared with the team
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
Method to remove a collection from a team
Link copied to clipboard
Method to remove a link from a team
Link copied to clipboard
Method to remove a member from a team
Link copied to clipboard
Link copied to clipboard
Method to share the collections with the team
Link copied to clipboard
Method to share the links with the team
Link copied to clipboard
private open fun synchronizeMembers(userId: String, teamId: String, payload: TeamsService.TeamPayload)
Method to synchronize the members of a team