SavedSitesRepository
The Repository that represents all CRUD operations related to SavedSites There are two types os SavedSites can be Favorite or Bookmark
Functions
Returns total number of Bookmark
Deletes an existing BookmarkFolder Used when deleting a BookmarkFolder from the Bookmarks screen
Deletes a SavedSite
Deletes all SavedSites
Deletes all Bookmark and BookmarkFolder inside a folder. Used when Deleting a folder and its content
Returns total number of Favorite
Returns Bookmark given a URL
Returns Bookmark given an ID
Returns all Bookmark in the Database
Returns all Bookmark in the Database
Returns complete list of all Bookmark This method traverses all folders.
Returns a Favorite given a domain
Returns a Favorite given a domain
Returns all Favorite in the Database
Returns amount of Favorite given a domain
Returns all Favorite in the Database
Returns all Favorite in the Database
Returns a BookmarkFolder based on its id
Returns the FolderBranch of a BookmarkFolder
Returns a BookmarkFolder based on its name
Returns complete list of BookmarkFolderItem inside a folder. This method traverses all folders.
Returns all Bookmark and BookmarkFolder inside a folder
Returns SavedSite given an ID
Returns all SavedSites inside a folder
Returns if the user has any Bookmark
Returns if the user has any Favorite
Inserts a new BookmarkFolder Used when adding a BookmarkFolder from the Bookmarks screen
Inserts all Bookmark and BookmarkFolder in a folder. Used when Undoing deleteFolderBranch
Returns the id the last modified SavedSite
Deletes all entities with deleted = 1 This makes the deletion permanent
Replaces an existing BookmarkFolder Used when syncing data from the backend There are scenarios when a duplicate remote folder has to be replace the local one
Updates an existing BookmarkFolder Used when updating a BookmarkFolder from the Bookmarks screen
Updates the content of a Bookmark
Updates the content of a Favorite
Deletes and re-inserts a folder relation