Class EntityBucket
- java.lang.Object
-
- com.priint.pubserver.entity.Entity
-
- com.priint.pubserver.entity.EntityBucket
-
- All Implemented Interfaces:
java.io.Serializable
public class EntityBucket extends Entity
Entity for Buckets.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:
Bucket, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEntityBucket.AllowedTagsDeprecated.Use arrayallowedTagsinstead.-
Nested classes/interfaces inherited from class com.priint.pubserver.entity.Entity
Entity.CacheType, Entity.DataClass, Entity.RetrievalType
-
-
Field Summary
Fields Modifier and Type Field Description static PluginConfigTag[]allowedTagsType 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
Constructors Constructor Description EntityBucket()Create a new bucket entity.EntityBucket(java.lang.String label)Create a new bucket entity with label.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddContentEntitiesDependency(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.intgetBulkLoadLevel()Gets the bulk load level for the bucket entity.java.util.List<EntityDependency>getContentEntities()Gets the dependent content entities for the bucket entity.java.util.List<EntityDependency>getCordEntities()Gets the dependent cord entities for the bucket entity.java.lang.StringgetDummyLabel()Gets the dummy label text for the bucket entity.java.util.List<EntityDependency>getSubEntities()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(java.util.List<EntityDependency> contentEntities)Sets the dependent content entities for the bucket entity.voidsetCordEntities(java.util.List<EntityDependency> cordEntities)Sets the dependent cord entities for the bucket entity.voidsetDummyLabel(java.lang.String dummyLabel)Sets the dummy label text for the bucket entity.voidsetRoot(boolean root)Sets whether this is a root entity, i.e.voidsetSubEntities(java.util.List<EntityDependency> subEntities)Sets the dependent sub-entities for the bucket entity.java.lang.StringtoString()-
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 Detail
-
allowedTags
public static final PluginConfigTag[] allowedTags
Type of Tags to be used for this entities. For all tags see:PluginConfigTag
-
-
Method Detail
-
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
public java.util.List<EntityDependency> getContentEntities()
Gets the dependent content entities for the bucket entity.Defaults to an empty list.
- Returns:
- contentEntities as List of
EntityDependency
-
setContentEntities
public void setContentEntities(java.util.List<EntityDependency> contentEntities)
Sets the dependent content entities for the bucket entity.Throws a NullArgumentException if argument is
null.- Parameters:
contentEntities-
-
addContentEntitiesDependency
public boolean addContentEntitiesDependency(EntityDependency dependency)
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:
List#add(Object)
-
getSubEntities
public java.util.List<EntityDependency> getSubEntities()
Gets the dependent sub-entities for the bucket entity.Defaults to an empty list.
- Returns:
- sub-entities as List of
EntityDependency
-
setSubEntities
public void setSubEntities(java.util.List<EntityDependency> subEntities)
Sets the dependent sub-entities for the bucket entity.Throws a NullArgumentException if argument is
null.- Parameters:
subEntities-
-
addSubEntitiesDependency
public boolean addSubEntitiesDependency(EntityDependency dependency)
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:
List#add(Object)
-
getCordEntities
public java.util.List<EntityDependency> 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
public void setCordEntities(java.util.List<EntityDependency> cordEntities)
Sets the dependent cord entities for the bucket entity.Throws a NullArgumentException if argument is
null.- Parameters:
cordEntities- the cord entities
-
addCordEntitiesDependency
public boolean addCordEntitiesDependency(EntityDependency dependency)
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:
List#add(Object)
-
getDummyLabel
public java.lang.String getDummyLabel()
Gets the dummy label text for the bucket entity.Defaults to an empty string.
- Returns:
- dummyLabel as String
-
setDummyLabel
public void setDummyLabel(java.lang.String dummyLabel)
Sets the dummy label text for the bucket entity.Throws a NullArgumentException if argument is
null.- Parameters:
dummyLabel-
-
-