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,
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 from container |
ContainerChangelog |
changelog(java.lang.Long since)
ChangeLog of the container since
|
ContainerChangeset<java.lang.String> |
changeset(java.lang.Long since)
ChangeSet of the container since
|
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 unique uid |
java.util.List<ItemValue<Tag>> |
multipleGet(java.util.List<java.lang.String> uids)
Fetch multiple
Tag s from theirs uniques uids |
void |
update(java.lang.String uid,
Tag tag)
Update a
Tag . |
ContainerUpdatesResult |
updates(TagChanges changes)
Updates multiples entries at once (should be transactional: if one
operation fail, nothing is written)
|
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
. Tag can be associated with items and may be
used to categorize or to help searching those items.create
in interface ITags
uid
- The unique identifiertag
- Tag
that will be created. If the current user don't
have permission to execute the action.ServerFault
- If any things go wrongs, this is the default Exception to
throw.public 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. If the current user don't
have permission to execute the action.ServerFault
- If any things go wrongs, this is the default Exception to
throw.public void delete(java.lang.String uid) throws ServerFault
ITags
Tag
.delete
in interface ITags
uid
- The unique identifier of the Tag
ServerFault
- If any things go wrongs, this is the default Exception to
throw.public ItemValue<Tag> getComplete(java.lang.String uid) throws ServerFault
ITags
Tag
from its unique uidgetComplete
in interface ITags
ItemValue
ServerFault
public java.util.List<ItemValue<Tag>> all() throws ServerFault
ITags
Tag
s. (only user)all
in interface ITags
Tag
s If the current user don't have permission to
execute the action.ServerFault
- If any things go wrongs, this is the default Exception to
throw.public java.util.List<ItemValue<Tag>> multipleGet(java.util.List<java.lang.String> uids) throws ServerFault
ITags
Tag
s from theirs uniques uidsmultipleGet
in interface ITags
List>
ServerFault
public ContainerUpdatesResult updates(TagChanges changes) throws ServerFault
ITags
updates
in interface ITags
ServerFault
public ContainerChangelog changelog(java.lang.Long since) throws ServerFault
ITags
changelog
in interface ITags
since
- timestamp of first changes we want to retrieveContainerChangelog
ServerFault
public ContainerChangeset<java.lang.String> changeset(java.lang.Long since) throws ServerFault
ITags
changeset
in interface ITags
since
- timestamp of first changes we want to retrieveServerFault
protected void checkRead()
protected void checkWrite()
public java.util.List<java.lang.String> allUids() throws ServerFault
ITags
Tag
uids from containerallUids
in interface ITags
ServerFault
Copyright © 2021. All Rights Reserved.