Interface ITags
- All Superinterfaces:
IRestoreCrudSupport<Tag>, IRestoreItemCrudSupport<Tag>, IRestoreSupport<Tag>
This API is used to manage per-user invalid input: '&' per-domain lists of
Tag
(keyword and color).
The containerUid is obtained from ITagUids.getDefaultUserTags(String)
or can be a domain uid (ie. domain name).-
Method Summary
Modifier and TypeMethodDescriptionall()Find allTags.allUids()List allTaguids in the container.ContainerChangesetof the container starting at given version.voidCreate a newTag.voidDelete aTag.getComplete(String uid) Fetch aTagfrom its uid.multipleGet(List<String> uids) Fetch multipleTags from their uids.voidUpdate aTag.updates(TagChanges changes) Update multiple tags at once.Methods inherited from interface IRestoreSupport
get, itemValueExists, restore
-
Method Details
-
create
Create a newTag. Tags can be associated with items and may be used to categorize items or for searching.- Parameters:
uid- The unique identifiertag-Tagthat will be created.- Throws:
ServerFault- If anything goes wrong
-
update
Update aTag.- Parameters:
uid- The unique identifiertag-Tagthat will be created.- Throws:
ServerFault- If anything goes wrong
-
delete
Delete aTag.- Specified by:
deletein interfaceIRestoreCrudSupport<Tag>- Parameters:
uid- The unique identifier of theTagtag-Tagthat will be created.- Throws:
ServerFault- If anything goes wrong
-
getComplete
Fetch aTagfrom its uid.- Specified by:
getCompletein interfaceIRestoreItemCrudSupport<Tag>- Parameters:
uid- The unique identifier- Returns:
ItemValue<Tag>- Throws:
ServerFault- If anything goes wrong
-
multipleGet
-
all
Find allTags. Domain tags are not returned when this method is invoked onITagUids.defaultTags(String).- Returns:
- list of
Tags - Throws:
ServerFault- If anything goes wrong
-
updates
Update multiple tags at once.- Parameters:
changes- the batch of changes to apply- Throws:
ServerFault- If anything goes wrong
-
changeset
ContainerChangesetof the container starting at given version.- Parameters:
since- version of first change to retrieve- Throws:
ServerFault- If anything goes wrong
-
allUids
List allTaguids in the container.- Returns:
- a list of
Taguid - Throws:
ServerFault- If anything goes wrong
-