public final class TaggableAmetysObjectHelper extends Object
JCRAmetysObject
s.Modifier and Type | Field and Description |
---|---|
static String |
METADATA_TAGS
Constant for tags metadata.
|
Modifier | Constructor and Description |
---|---|
private |
TaggableAmetysObjectHelper() |
Modifier and Type | Method and Description |
---|---|
protected static Node |
getNode(JCRAmetysObject object)
Get an object's base node.
|
static Set<String> |
getTags(JCRAmetysObject object)
Tag a
JCRAmetysObject . |
static void |
tag(JCRAmetysObject object,
String tag)
Tag a
JCRAmetysObject . |
static void |
untag(JCRAmetysObject object,
String tag)
Tag a
JCRAmetysObject . |
public static final String METADATA_TAGS
private TaggableAmetysObjectHelper()
public static Set<String> getTags(JCRAmetysObject object) throws AmetysRepositoryException
JCRAmetysObject
.object
- the JCRAmetysObject
to tag.AmetysRepositoryException
- if an error occurredpublic static void tag(JCRAmetysObject object, String tag) throws AmetysRepositoryException
JCRAmetysObject
.object
- the JCRAmetysObject
to tag.tag
- the tag to put on the object.AmetysRepositoryException
- if an error occurs.public static void untag(JCRAmetysObject object, String tag) throws AmetysRepositoryException
JCRAmetysObject
.object
- the JCRAmetysObject
to tag.tag
- the tag to remove on the object.AmetysRepositoryException
- if an error occurs.protected static Node getNode(JCRAmetysObject object)
object
- the object which node to get.