Interface ThreadsRepository
-
- All Implemented Interfaces:
public interface ThreadsRepositoryRepository for read/write operations related to threads.
-
-
Method Summary
Modifier and Type Method Description abstract UnitinsertThreadOrder(String id, List<String> order)Inserts the order in which local threads should be displayed. abstract List<String>selectThreadOrder(String id)Retrieves the order in which local threads should be displayed. abstract UnitinsertThreads(List<Thread> threads)Inserts the given list of Thread. abstract UnitupsertMessageInThread(Message message)Upsert a Message in the corresponding thread (if such exists). abstract UnitupsertMessagesInThread(List<Message> messages)Upsert a list of Messages in the corresponding thread (if such exists). abstract ThreadselectThread(String id)Retrieves the Thread identified by id. abstract List<Thread>selectThreads(List<String> ids)Retrieves all Threads identified by the supplied ids. abstract UnitdeleteChannelThreads(String cid)Deletes all threads from a channel. abstract Unitclear()Deletes all data related to threads. -
-
Method Detail
-
insertThreadOrder
abstract Unit insertThreadOrder(String id, List<String> order)
Inserts the order in which local threads should be displayed.
-
selectThreadOrder
abstract List<String> selectThreadOrder(String id)
Retrieves the order in which local threads should be displayed.
-
insertThreads
abstract Unit insertThreads(List<Thread> threads)
Inserts the given list of Thread.
-
upsertMessageInThread
abstract Unit upsertMessageInThread(Message message)
Upsert a Message in the corresponding thread (if such exists).
-
upsertMessagesInThread
abstract Unit upsertMessagesInThread(List<Message> messages)
Upsert a list of Messages in the corresponding thread (if such exists).
-
selectThread
abstract Thread selectThread(String id)
Retrieves the Thread identified by id.
- Parameters:
id- The ID of the Thread to retrieve.
-
selectThreads
abstract List<Thread> selectThreads(List<String> ids)
Retrieves all Threads identified by the supplied ids.
- Parameters:
ids- The identifiers of the Threads to select.
-
deleteChannelThreads
abstract Unit deleteChannelThreads(String cid)
Deletes all threads from a channel.
- Parameters:
cid- The ID of the channel to delete the threads from.
-
-
-
-