# Functions
AddAdminGroup add a admin group to topic.
AddAdminUser add a read write user to topic.
AddFilter add a user filter to the topic.
AddParameter add a parameter to the topic.
AddRoGroup add a read only group to topic.
AddRoUser add a read only user to topic.
AddRwGroup add a read write group to topic.
AddRwUser add a read write user to topic.
AllTopicsComputeLabels computes Labels on all topics.
AllTopicsComputeTags computes Tags on all topics.
AllTopicsSetParam computes Tags on all topics.
ChangeGroupnameOnTopics updates group name on topics.
ChangeUsernameOnTopics changes a username on topics, ro, rw, admin users.
CheckAndFixName Add a / to topic name is it is not present return an error if length of name is < 4 or > 100.
ComputeLabels computes "cached" labels on a topic initialize labels, one entry per label (unicity with text & color).
ComputeTags computes "cached" tags in topic initialize tags, one entry per tag (unique).
CountTopics returns the total number of topics in db.
Delete deletes a topic from database.
FindAllTopicsWithCollections returns the total number of topics in db.
FindByTopic returns topic by topicName.
GetTopicSelectedFields return allowed selected field on mongo.
GetUserRights return isRW, isAdmin for user Check personal access to topic, and group access.
InitDB creates /Private topic if necessary.
InitPrivateTopic insert topic "/Private".
Insert creates a new topic.
IsTopicExists return true if topic exists, false otherwise.
IsUserAdmin return true if user is Tat admin or is admin on this topic Check personal access to topic, and group access.
ListLabels returns all labels on one topic.
ListTags returns all tags on one topic.
ListTopics returns list of topics, matching criterias /!\ user arg could be nil.
MigrateToDedicatedTopic sets collection attribute on topic.
RemoveAdminGroup removes a read write group from topic.
RemoveAdminUser removes a read only user from topic.
RemoveFilter add a user filter to the topic.
RemoveParameter removes a read only user from topic.
RemoveRoGroup removes a read only group from topic.
RemoveRoUser removes a read only user from topic.
RemoveRwGroup removes a read write group from topic.
RemoveRwUser removes a read write user from topic.
SetParam update param maxLength, maxReplies, canForceDate, canUpdateMsg, canDeleteMsg, canUpdateAllMsg, canDeleteAllMsg, adminCanUpdateAllMsg, adminCanDeleteAllMsg, parameters on topic.
Truncate removes all messages in a topic.
TruncateLabels clears "cached" labels on a topic.
TruncateTags clears "cached" tags in topic.
UpdateFilter add a user filter to the topic.
UpdateTopicLabels updates labels on topic.
UpdateTopicLastMessage updates tags on topic.
UpdateTopicTags updates tags on topic.