Package lumis.content.core
Class ContentTag
- java.lang.Object
-
- lumis.content.core.ContentTag
-
- All Implemented Interfaces:
Serializable
@StableMinor(version="14.0", sinceVersion="9.0") public class ContentTag extends Object implements Serializable
A tag object entity. Represents a tag entry and an association between tag and its content version. This element must be aContent
.- Since:
- 6.0.0
- Version:
- $Revision: 24476 $ $Date: 2021-04-28 11:28:23 -0300 (Wed, 28 Apr 2021) $
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
TAG_STRING_SEPARATOR
String used to split a string of list of tags.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteContent()
Deletes a tag entry.ContentVersion
getContentVersion()
TheContentVersion
of this tag.String
getId()
Returns the tag identifier.String
getName()
Returns the tag name, as it was persisted at first time.String
getNormalizedName()
Returns the normalized tag name.
The normalized tag name is the original tag name inlower case
(usingEnglish locale
) with white spaces replaced by '-'.
-
-
-
Field Detail
-
TAG_STRING_SEPARATOR
public static final String TAG_STRING_SEPARATOR
String used to split a string of list of tags. Its a reserved word.- Since:
- 6.0.0
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public String getId()
Returns the tag identifier.- Returns:
- id, the tag identifier.
- Since:
- 6.0.0
-
getName
public String getName()
Returns the tag name, as it was persisted at first time.- Returns:
- name, the tag name.
- Since:
- 6.0.0
-
getNormalizedName
public String getNormalizedName()
Returns the normalized tag name.
The normalized tag name is the original tag name inlower case
(usingEnglish locale
) with white spaces replaced by '-'.For a given tag service instance, only one tag with a given normalized name is allowed.
- Returns:
- The normalized tag name.
- Since:
- 9.0.0
-
getContentVersion
public ContentVersion getContentVersion()
TheContentVersion
of this tag.- Returns:
- the content version.
- Since:
- 6.0.0
-
deleteContent
public void deleteContent()
Deletes a tag entry.It implies in deleting the
ContentTag
,Content
element (related to the tag itself) and all associations with these elements.- Since:
- 9.0.0
- See Also:
IContentManager.deleteContent(Content)
-
-