aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-05-11 12:25:09 +0200
committerVincent Petry <pvince81@owncloud.com>2016-05-20 17:56:02 +0200
commit3cd65fe25dc6f213dd7e4a1687616dc5e0960d4d (patch)
tree01a4e4a6bb7ff4f3a9243bd6c523fc5a738e1c65 /lib/public
parent09b3883d9ceae77793e524209090f2e36ab61260 (diff)
downloadnextcloud-server-3cd65fe25dc6f213dd7e4a1687616dc5e0960d4d.tar.gz
nextcloud-server-3cd65fe25dc6f213dd7e4a1687616dc5e0960d4d.zip
Add systemtag_group table and get/set methods
Added systemtag to group mapping table. Added methods in ISystemTagManager to get/set the group mappings.
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/SystemTag/ISystemTagManager.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/public/SystemTag/ISystemTagManager.php b/lib/public/SystemTag/ISystemTagManager.php
index 283ca63e4f6..a2c61a8dcc2 100644
--- a/lib/public/SystemTag/ISystemTagManager.php
+++ b/lib/public/SystemTag/ISystemTagManager.php
@@ -141,4 +141,24 @@ interface ISystemTagManager {
*/
public function canUserSeeTag(ISystemTag $tag, IUser $userId);
+ /**
+ * Set groups that can assign a given tag.
+ *
+ * @param ISystemTag $tag tag for group assignment
+ * @param string[] $groupIds group ids of groups that can assign/unassign the tag
+ *
+ * @since 9.1.0
+ */
+ public function setTagGroups(ISystemTag $tag, $groupIds);
+
+ /**
+ * Get groups that can assign a given tag.
+ *
+ * @param ISystemTag $tag tag for group assignment
+ *
+ * @return string[] group ids of groups that can assign/unassign the tag
+ *
+ * @since 9.1.0
+ */
+ public function getTagGroups(ISystemTag $tag);
}