CustomLinksHelper
The CustomLinksHelper
class is useful to manage all the CustomRefyLink database operations
Author
N7ghtm4r3 - Tecknobit
See also
Properties
Link copied to clipboard
private val ATTACH_FIELDS_TO_CUSTOM_LINK_QUERY: String = "REPLACE INTO fields(id,field_value,field_key) VALUES "
ATTACH_FIELDS_TO_CUSTOM_LINK_QUERY
the query used to attach the fields to the linkLink copied to clipboard
private val ATTACH_RESOURCES_TO_CUSTOM_LINK_QUERY: String = "REPLACE INTO resources(id,resource_value,resource_key) VALUES "
ATTACH_RESOURCES_TO_CUSTOM_LINK_QUERY
the query used to attach the resources to the linkLink copied to clipboard
customLinksRepository
instance for the custom links repositoryLink copied to clipboard
private val DETACH_FIELDS_FROM_CUSTOM_LINK_QUERY: String = "DELETE FROM fields WHERE id='%s' AND field_key IN ("
DETACH_FIELDS_FROM_CUSTOM_LINK_QUERY
the query used to detach the fields from the linkLink copied to clipboard
private val DETACH_RESOURCES_FROM_CUSTOM_LINK_QUERY: String = "DELETE FROM resources WHERE id='%s' AND resource_key IN ("
DETACH_RESOURCES_FROM_CUSTOM_LINK_QUERY
the query used to detach the resources from the linkLink 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 link
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 find a custom link by its identifier
Link copied to clipboard
Method used to get an item if the user is authorized
Link copied to clipboard
Method to get all the user's custom links
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