LinksCollectionsHelper
The LinksCollectionsHelper
class is useful to manage all the LinksCollection database operations
Author
N7ghtm4r3 - Tecknobit
See also
Properties
Link copied to clipboard
protected val ATTACH_COLLECTION_TO_LINKS_QUERY: String = "REPLACE INTO collections_links(link_id,collection_id) VALUES "
ATTACH_COLLECTION_TO_LINKS_QUERY
the query used to attach links to a collectionLink copied to clipboard
private val ATTACH_COLLECTION_TO_TEAM_QUERY: String = "REPLACE INTO collections_teams(team_id,collection_id) VALUES "
ATTACH_COLLECTION_TO_TEAM_QUERY
the query used to share a collection with teamsLink copied to clipboard
collectionsRepository
instance for the collections repositoryLink copied to clipboard
private val DETACH_COLLECTION_FROM_LINKS_QUERY: String = "DELETE FROM collections_links WHERE collection_id='%s' AND link_id IN ("
DETACH_COLLECTION_FROM_LINKS_QUERY
the query used to detach links from a collectionLink copied to clipboard
private val DETACH_COLLECTION_FROM_TEAMS_QUERY: String = "DELETE FROM collections_teams WHERE collection_id='%s' AND team_id IN ("
DETACH_COLLECTION_FROM_TEAMS_QUERY
the query used to remove a collection from teamsLink copied to clipboard
entityManager
entity manager helperLink copied to clipboard
RELATIONSHIP_VALUES_SLICE
query part to insert in the join table new rowLink 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 delete a collection
Link copied to clipboard
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 collections, included the collections shared in the teams
Link copied to clipboard
Method used to get an item if the user is authorized
Link copied to clipboard
Method to get the user's owned collections identifiers
Link copied to clipboard
Method to get the user's owned collections
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 links attached to the collection
Link copied to clipboard
Method to manage the teams where the collection is shared