Class EntityBucket
- All Implemented Interfaces:
Serializable
A bucket is a container to collect content. A bucket entity can contain any number of content entities. It can have sub bucket entities (children) and can be linked to other bucket entities via cords. It can have a single parent bucket. It can be the root for a entity hierarchy.
Dummy attributes are related to data fields the related entitydata bucket type.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.priint.pubserver.entity.Entity
Entity.CacheType, Entity.DataClass, Entity.RetrievalType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PluginConfigTag[]Type of Tags to be used for this entities.Fields inherited from class com.priint.pubserver.entity.Entity
ENTITYCLASS_BUCKET, ENTITYCLASS_CONTENTMETADATA, ENTITYCLASS_CORD, ENTITYCLASS_KEYVALUE, ENTITYCLASS_MEDIAASSET, ENTITYCLASS_PLANNING, ENTITYCLASS_PRICE, ENTITYCLASS_TABLEDATA, ENTITYCLASS_TEXT, ENTITYTYPE_ASSEMBLING, ENTITYTYPE_CONNECTOR, ENTITYTYPE_STATIC -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new bucket entity.EntityBucket(String label) Create a new bucket entity with label. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddContentEntitiesDependency(EntityDependency dependency) Add a dependency to the list of content entities.booleanaddCordEntitiesDependency(EntityDependency dependency) Add an entity dependency to the list of cord entity dependencies.booleanaddSubEntitiesDependency(EntityDependency dependency) Add a entity dependency to the list of sub-entities dependencies of the bucket entity.intGets the bulk load level for the bucket entity.Gets the dependent content entities for the bucket entity.Gets the dependent cord entities for the bucket entity.Gets the dummy label text for the bucket entity.Gets the dependent sub-entities for the bucket entity.booleanisRoot()Gets whether the bucket is a root entity, i.e.voidsetBulkLoadLevel(int bulkLoadLevel) Sets the bulk load level for the entity bucket.voidsetContentEntities(List<EntityDependency> contentEntities) Sets the dependent content entities for the bucket entity.voidsetCordEntities(List<EntityDependency> cordEntities) Sets the dependent cord entities for the bucket entity.voidsetDummyLabel(String dummyLabel) Sets the dummy label text for the bucket entity.voidsetRoot(boolean root) Sets whether this is a root entity, i.e.voidsetSubEntities(List<EntityDependency> subEntities) Sets the dependent sub-entities for the bucket entity.toString()Methods inherited from class com.priint.pubserver.entity.Entity
getConCachingStrategy, getConConnector, getConConnectorEntity, getConConnectorEntityDescription, getConCronjobdate, getConInstance, getConLifetime, getConMatchingMethod, getContentMetaDataEntities, getContextDefinitions, getDescription, getEntityClass, getEntityDataClass, getEntityDependencyNames, getEntityModel, getEntityType, getHelpTexts, getIcon, getIconName, getIdentifier, getLabel, getPluginConfigName, getPluginConfigPath, getPluginConfigPath, getRevisionNumber, getTag, getTags, getTemplateRule, isConCachingAllowed, isConUseMatchingMethod, isPublicEntity, setConCachingAllowed, setConCachingStrategy, setConConnector, setConConnectorEntity, setConConnectorEntityDescription, setConCronjobdate, setConInstance, setConLifetime, setConMatchingMethod, setContentMetaDataEntities, setContextDefinitions, setConUseMatchingMethod, setDescription, setEntityClass, setEntityDataClass, setEntityModel, setEntityType, setHelpTexts, setIcon, setIconName, setIdentifier, setLabel, setPublicEntity, setRevisionNumber, setTag, setTemplateRule, toPluginConfig
-
Field Details
-
allowedTags
Type of Tags to be used for this entities. For all tags see:PluginConfigTag
-
-
Constructor Details
-
EntityBucket
Create a new bucket entity with label.- Parameters:
label- the label
-
EntityBucket
public EntityBucket()Create a new bucket entity.
-
-
Method Details
-
isRoot
public boolean isRoot()Gets whether the bucket is a root entity, i.e. the root of a bucket hierarchy.Defaults to
false.- Returns:
- true if it is a root bucket
-
setRoot
public void setRoot(boolean root) Sets whether this is a root entity, i.e. the root of a bucket hierarchy.- Parameters:
root-
-
getBulkLoadLevel
public int getBulkLoadLevel()Gets the bulk load level for the bucket entity. The bulk load level defines the number of levels of sub entities that will be loaded in a bulk.Defaults to 0 if there is no bulk load.
- Returns:
- positive integer for load level or 0 if there is no bulk load
-
setBulkLoadLevel
public void setBulkLoadLevel(int bulkLoadLevel) Sets the bulk load level for the entity bucket. The bulk load level defines the number of levels of sub entities that will be loaded in a bulk.Throws IllegalArgumentException if input is negative.
- Parameters:
bulkLoadLevel-
-
getContentEntities
Gets the dependent content entities for the bucket entity.Defaults to an empty list.
- Returns:
- contentEntities as List of
EntityDependency
-
setContentEntities
Sets the dependent content entities for the bucket entity.Throws a NullArgumentException if argument is
null.- Parameters:
contentEntities-
-
addContentEntitiesDependency
Add a dependency to the list of content entities.Throws a NullArgumentException if argument is
null.- Parameters:
dependency- the dependency- Returns:
- true (as specified by java.util.Collection#add)
- See Also:
-
getSubEntities
Gets the dependent sub-entities for the bucket entity.Defaults to an empty list.
- Returns:
- sub-entities as List of
EntityDependency
-
setSubEntities
Sets the dependent sub-entities for the bucket entity.Throws a NullArgumentException if argument is
null.- Parameters:
subEntities-
-
addSubEntitiesDependency
Add a entity dependency to the list of sub-entities dependencies of the bucket entity.Throws a NullArgumentException if argument is
null.- Parameters:
dependency- the dependency- Returns:
- true (as specified by java.util.Collection#add)
- See Also:
-
getCordEntities
Gets the dependent cord entities for the bucket entity.Defaults to an empty list.
- Returns:
- list of cords (empty if no cord found)
-
setCordEntities
Sets the dependent cord entities for the bucket entity.Throws a NullArgumentException if argument is
null.- Parameters:
cordEntities- the cord entities
-
addCordEntitiesDependency
Add an entity dependency to the list of cord entity dependencies.Throws a NullArgumentException if argument is
null.- Parameters:
dependency- the dependency- Returns:
- true (as specified by java.util.Collection#add)
- See Also:
-
getDummyLabel
Gets the dummy label text for the bucket entity.Defaults to an empty string.
- Returns:
- dummyLabel as String
-
setDummyLabel
Sets the dummy label text for the bucket entity.Throws a NullArgumentException if argument is
null.- Parameters:
dummyLabel-
-
toString
-
allowedTagsinstead.