@MappedSuperclass public class CommonFieldsEntity extends BaseEntity
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
GENIE_ID_TAG_NAMESPACE |
protected static java.lang.String |
GENIE_NAME_TAG_NAMESPACE |
protected static java.lang.String |
GENIE_TAG_NAMESPACE |
static java.lang.String |
TAG_DELIMITER
The delimiter used to separate tags in the database.
|
protected static java.lang.String |
TAG_DELIMITER_REGEX |
Constructor and Description |
---|
CommonFieldsEntity()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.lang.String> |
getDescription()
Gets the description of this entity.
|
protected java.util.Set<java.lang.String> |
getFinalTags()
Get the tags with the current genie.id and genie.name tags added into the set.
|
java.util.Set<java.lang.String> |
getTags()
Get the tags attached to this entity.
|
void |
setTags(java.util.Set<java.lang.String> tags)
Set the tags.
|
getCreated, getEntityVersion, getId, getUpdated, onCreateBaseEntity, onUpdateBaseEntity, setCreated, setEntityVersion, setId, setUpdated
public static final java.lang.String TAG_DELIMITER
protected static final java.lang.String GENIE_TAG_NAMESPACE
protected static final java.lang.String GENIE_ID_TAG_NAMESPACE
protected static final java.lang.String GENIE_NAME_TAG_NAMESPACE
protected static final java.lang.String TAG_DELIMITER_REGEX
public java.util.Optional<java.lang.String> getDescription()
public java.util.Set<java.lang.String> getTags()
public void setTags(java.util.Set<java.lang.String> tags)
tags
- The tags to setprotected java.util.Set<java.lang.String> getFinalTags() throws GenieException
GenieException
- On any exception