Class EntityCord
- All Implemented Interfaces:
Serializable
A cord connects any two bucket entities. Cords are used for references or any n:m link. If special content is needed for the cord, a bucket entity serving as content container can be linked to the cord.
Dummy attributes are related to data fields the related entitydata cord 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
ConstructorsConstructorDescriptionDefault constructor.EntityCord(String label) Creating a new entity cord with a label. -
Method Summary
Modifier and TypeMethodDescriptionGet the content bucket associated with this cord.Get the bucket where the connection ends.Gets dummy destination label.Gets dummy source label.Get the bucket where the connection starts.booleanDefaults tofalse.voidsetContentBucket(Entity contentBucket) Set the content bucket associated with this cord.voidsetContentBucket(String contentBucket) Set the content bucket associated with this cord.voidsetDestinationBucket(Entity destinationBucket) Set the bucket where the connection ends.voidsetDestinationBucket(String destinationBucketIdentifier) Set the bucket where the connection ends.voidsetDirected(boolean directed) Set if the cord has a direction from start to end.voidsetDummyDestinationLabel(String dummyDestinationLabel) Sets dummy destination label.voidsetDummySourceLabel(String dummySourceLabel) Sets dummy source label.voidsetSourceBucket(Entity sourceBucket) Set the bucket where the connection starts.voidsetSourceBucket(String sourceBucketIdentifier) Set the bucket where the connection starts.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, toString
-
Field Details
-
allowedTags
Type of Tags to be used for this entities. For all tags see:PluginConfigTag
-
-
Constructor Details
-
EntityCord
public EntityCord()Default constructor. -
EntityCord
Creating a new entity cord with a label.- Parameters:
label-
-
-
Method Details
-
getSourceBucket
Get the bucket where the connection starts.Defaults to an empty string.
- Returns:
- bucket identifier as String
-
setSourceBucket
Set the bucket where the connection starts.Throws a NullArgumentException if argument is
null.- Parameters:
sourceBucketIdentifier-
-
setSourceBucket
Set the bucket where the connection starts.Throws a NullArgumentException if argument is
null.- Parameters:
sourceBucket-
-
getDestinationBucket
Get the bucket where the connection ends.Defaults to an empty string.
- Returns:
- bucket identifier as String
-
setDestinationBucket
Set the bucket where the connection ends.Throws a NullArgumentException if argument is
null.- Parameters:
destinationBucketIdentifier-
-
setDestinationBucket
Set the bucket where the connection ends.Throws a NullArgumentException if argument is
null.- Parameters:
destinationBucket-
-
getContentBucket
Get the content bucket associated with this cord.Defaults to an empty string.
- Returns:
- bucket identifier as String
-
setContentBucket
Set the content bucket associated with this cord.Throws a NullArgumentException if argument is
null.- Parameters:
contentBucket-
-
setContentBucket
Set the content bucket associated with this cord.Throws a NullArgumentException if argument is
null.- Parameters:
contentBucket-
-
isDirected
public boolean isDirected()Defaults to
false.- Returns:
- true if the cord has a direction
-
setDirected
public void setDirected(boolean directed) Set if the cord has a direction from start to end.- Parameters:
directed- the directed
-
getDummySourceLabel
Gets dummy source label.- Returns:
- dummySourceLabel as String
Defaults to an empty string.
-
setDummySourceLabel
Sets dummy source label.Throws a NullArgumentException if argument is
null.- Parameters:
dummySourceLabel-
-
getDummyDestinationLabel
Gets dummy destination label.- Returns:
- dummyDestinationLabel
Defaults to an empty string.
-
setDummyDestinationLabel
Sets dummy destination label.Throws a NullArgumentException if argument is
null.- Parameters:
dummyDestinationLabel-
-
allowedTagsinstead.