Class CometEntity
java.lang.Object
com.priint.pubserver.tagging.TaggingObject
com.priint.pubserver.comet.entity.CometEntity
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CometBinary,CometColor,CometFindStatement.Sourcefile,CometFrameInfoDocument,CometGrid,CometGrid.Element,CometGrid.Spread,CometGridType,CometIndex,CometPageTemplate,CometPageTemplate.BBox,CometPageTemplate.Id,CometPageTemplateElementPredefinedMetadata,CometPageTemplateMetadata,CometPageTemplatePredefinedMetadata,CometPlaceholder,CometPlaceholderGroup,CometPlaceholderGroup.Placeholder,CometPlaceholderVariant,CometProductPanelConfig,CometProject,CometSetting,CometSnippetDocument,CometStatement,CometTemplate,CometTemplate.Record,CometTemplate.Spread,CometTemplateGroup,CometTocUpdate,ScriptExample
@CometTypeConstraints(dependencies=@CometReferences(references=@CometReference(restriction=PARENT,targetClass=CometIndex.class)))
public class CometEntity
extends TaggingObject
implements Serializable
Base type for all Comet configuration entities
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.priint.pubserver.tagging.TaggingObject
TaggingObject.LinkedSetWrapper<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intThe Id.static final StringThe constant TAG_DOMAIN_QUALIFIER.static final StringThe constant TAG_GROUP_QUALIFIER.static final StringThe constant TAG_TYPE_QUALIFIER.Fields inherited from class com.priint.pubserver.tagging.TaggingObject
tagsSet -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new Comet entity.CometEntity(int id) Instantiates a new Comet entity. -
Method Summary
Modifier and TypeMethodDescriptionvoidCheck minimal constraints.booleanentityEquals(CometEntity other) Entity equals boolean.final booleanfinal StringGets entity description.final StringGets entity label.intgetId()Gets id.Get reference (i.e.Gets the repository filename for this particular itemGet the relative repository path for this configuration type.inthashCode()Init default values comet entity.initDefaultValues(Map<String, Object> initialValues) Init default values comet entity.voidsetId(int id) Sets id.Methods inherited from class com.priint.pubserver.tagging.TaggingObject
addToTags, getTags, getTagValue, inTags, isA, removeFromTags, searchListByTags, setTags, setTags
-
Field Details
-
TAG_TYPE_QUALIFIER
The constant TAG_TYPE_QUALIFIER.- See Also:
-
TAG_GROUP_QUALIFIER
The constant TAG_GROUP_QUALIFIER.- See Also:
-
TAG_DOMAIN_QUALIFIER
The constant TAG_DOMAIN_QUALIFIER.- See Also:
-
id
The Id.
-
-
Constructor Details
-
CometEntity
public CometEntity()Instantiates a new Comet entity. -
CometEntity
public CometEntity(int id) Instantiates a new Comet entity.- Parameters:
id- the id
-
-
Method Details
-
checkMinimalConstraints
Check minimal constraints.- Throws:
CometException- the comet exception
-
entityEquals
Entity equals boolean.- Parameters:
other- the other- Returns:
- the boolean
-
equals
-
getEntityDescription
Gets entity description.- Returns:
- the entity description
-
getEntityLabel
Gets entity label.- Returns:
- the entity label
-
getId
public int getId()Gets id.- Returns:
- the id
-
getReferenceConstraints
Get reference (i.e. PluginDependency) constraints for this type, including constraints inherited from super classes
See the
CometTypeConstraintsannotation for more information- Returns:
- list of mandatory dependencies for this type
-
getRepositoryFilename
Gets the repository filename for this particular item
This method MUST be overridden by classes extending CometEntity
- Returns:
- the repository filename of this particular item
- Throws:
CometException- the comet exception
-
getRepositoryPath
Get the relative repository path for this configuration type.
This method MUST be overridden by classes extending CometEntity.
- Returns:
- relative repository path
- Throws:
CometException- the comet exception
-
hashCode
public int hashCode() -
initDefaultValues
Init default values comet entity.- Returns:
- the comet entity
-
initDefaultValues
Init default values comet entity.- Parameters:
initialValues- the initial values- Returns:
- the comet entity
- Throws:
CometException- the comet exception
-
setId
public void setId(int id) Sets id.- Parameters:
id- the id
-