public class Tags extends java.lang.Object implements ITags
Modifier and Type | Field and Description |
---|---|
protected Container |
container |
protected BmContext |
context |
protected RBACManager |
rbacManager |
Constructor and Description |
---|
Tags(BmContext context,
javax.sql.DataSource ds,
Container container) |
Modifier and Type | Method and Description |
---|---|
java.util.List<ItemValue<Tag>> |
all()
Find all
Tag s. |
java.util.List<java.lang.String> |
allUids()
List all
Tag uids in the container. |
ContainerChangelog |
changelog(java.lang.Long since)
Get all the changes that occurred on the container starting at the given
version.
|
ContainerChangeset<java.lang.String> |
changeset(java.lang.Long since)
ContainerChangeset of the container starting at given version. |
protected void |
checkRead() |
protected void |
checkWrite() |
void |
create(java.lang.String uid,
Tag tag)
Create a new
Tag . |
void |
delete(java.lang.String uid)
Delete a
Tag . |
ItemValue<Tag> |
getComplete(java.lang.String uid)
Fetch a
Tag from its uid. |
java.util.List<ItemValue<Tag>> |
multipleGet(java.util.List<java.lang.String> uids)
Fetch multiple
Tag s from their uids. |
void |
update(java.lang.String uid,
Tag tag)
Update a
Tag . |
ContainerUpdatesResult |
updates(TagChanges changes)
Update multiple tags at once.
|
void |
xfer(java.lang.String serverUid) |
protected final Container container
protected final RBACManager rbacManager
protected final BmContext context
public void create(java.lang.String uid, Tag tag) throws ServerFault
ITags
Tag
. Tags can be associated with items and may be used
to categorize items or for searching.create
in interface ITags
uid
- The unique identifiertag
- Tag
that will be created.ServerFault
- If anything goes wrongpublic void update(java.lang.String uid, Tag tag) throws ServerFault
ITags
Tag
.update
in interface ITags
uid
- The unique identifiertag
- Tag
that will be created.ServerFault
- If anything goes wrongpublic void delete(java.lang.String uid) throws ServerFault
ITags
Tag
.delete
in interface ITags
uid
- The unique identifier of the Tag
ServerFault
- If anything goes wrongpublic ItemValue<Tag> getComplete(java.lang.String uid) throws ServerFault
ITags
Tag
from its uid.getComplete
in interface ITags
uid
- The unique identifierItemValue
ServerFault
- If anything goes wrongpublic java.util.List<ItemValue<Tag>> all() throws ServerFault
ITags
Tag
s. Domain tags are not returned when this method is
invoked on ITagUids.defaultUserTags(String)
.all
in interface ITags
Tag
sServerFault
- If anything goes wrongpublic java.util.List<ItemValue<Tag>> multipleGet(java.util.List<java.lang.String> uids) throws ServerFault
ITags
Tag
s from their uids.multipleGet
in interface ITags
uids
- the unique identifiers to fetchItemValue
ServerFault
- If anything goes wrongpublic ContainerUpdatesResult updates(TagChanges changes) throws ServerFault
ITags
updates
in interface ITags
changes
- the batch of changes to applyServerFault
- If anything goes wrongpublic ContainerChangelog changelog(java.lang.Long since) throws ServerFault
ITags
changelog
in interface ITags
since
- version of first changes to retrieveContainerChangelog
ServerFault
- If anything goes wrongpublic ContainerChangeset<java.lang.String> changeset(java.lang.Long since) throws ServerFault
ITags
ContainerChangeset
of the container starting at given version.changeset
in interface ITags
since
- version of first change to retrieveServerFault
- If anything goes wrongprotected void checkRead()
protected void checkWrite()
public java.util.List<java.lang.String> allUids() throws ServerFault
ITags
Tag
uids in the container.allUids
in interface ITags
Tag
uidServerFault
- If anything goes wrongpublic void xfer(java.lang.String serverUid) throws ServerFault
xfer
in interface IDataShardSupport
ServerFault
Copyright © 2021. All Rights Reserved.