Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,40 +11,50 @@

public interface ChannelManager extends NodeStore {

/**
* Creates a channel.
*
* @param channelJID the JID of the channel.
* @throws NodeStoreException
*/
void createPersonalChannel(JID ownerJID) throws NodeStoreException;

/**
* Deletes all data from remote nodes
*
* @throws NodeStoreException
*/
void deleteRemoteData() throws NodeStoreException;

/**
* Gets the default affiliation for a node
*
* @return
*
* @throws NodeStoreException
*/
Affiliations getDefaultNodeAffiliation(String nodeId) throws NodeStoreException;

/**
* Searches for the provided content or author, or both, across nodes the searcher has access to
*
* @param searcher
* @param content
* @param author
* @param page
* @param rpp
* @return
*/
CloseableIterator<NodeItem> performSearch(JID searcher, List content, JID author, int page, int rpp) throws NodeStoreException;
/**
* Creates a channel.
*
* @param channelJID the JID of the channel.
* @throws NodeStoreException
*/
void createPersonalChannel(JID ownerJID) throws NodeStoreException;

/**
* Deletes all data from remote nodes
*
* @throws NodeStoreException
*/
void deleteRemoteData() throws NodeStoreException;

/**
* Gets the default affiliation for a node
*
* @return
*
* @throws NodeStoreException
*/
Affiliations getDefaultNodeAffiliation(String nodeId) throws NodeStoreException;

/**
* Searches for the provided content or author, or both, across nodes the searcher has access to
*
* @param searcher
* @param content
* @param author
* @param page
* @param rpp
* @return
*/
CloseableIterator<NodeItem> performSearch(JID searcher, List content, JID author, int page,
int rpp) throws NodeStoreException;

/**
* Returns true if node is ephemeral
*
* @param node
* @return
* @throws NodeStoreException
*/
boolean isEphemeralNode(String node) throws NodeStoreException;

}
Loading