Class EntityCord
- java.lang.Object
-
- com.priint.pubserver.entity.Entity
-
- com.priint.pubserver.entity.EntityCord
-
- All Implemented Interfaces:
java.io.Serializable
public class EntityCord extends Entity
Entity for Cords.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:
Cord, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEntityCord.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 EntityCord()Default constructor.EntityCord(java.lang.String label)Creating a new entity cord with a label.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetContentBucket()Get the content bucket associated with this cord.java.lang.StringgetDestinationBucket()Get the bucket where the connection ends.java.lang.StringgetDummyDestinationLabel()Gets dummy destination label.java.lang.StringgetDummySourceLabel()Gets dummy source label.java.lang.StringgetSourceBucket()Get the bucket where the connection starts.booleanisDirected()Defaults tofalse.voidsetContentBucket(Entity contentBucket)Set the content bucket associated with this cord.voidsetContentBucket(java.lang.String contentBucket)Set the content bucket associated with this cord.voidsetDestinationBucket(Entity destinationBucket)Set the bucket where the connection ends.voidsetDestinationBucket(java.lang.String destinationBucketIdentifier)Set the bucket where the connection ends.voidsetDirected(boolean directed)Set if the cord has a direction from start to end.voidsetDummyDestinationLabel(java.lang.String dummyDestinationLabel)Sets dummy destination label.voidsetDummySourceLabel(java.lang.String dummySourceLabel)Sets dummy source label.voidsetSourceBucket(Entity sourceBucket)Set the bucket where the connection starts.voidsetSourceBucket(java.lang.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 Detail
-
allowedTags
public static final PluginConfigTag[] allowedTags
Type of Tags to be used for this entities. For all tags see:PluginConfigTag
-
-
Method Detail
-
getSourceBucket
public java.lang.String getSourceBucket()
Get the bucket where the connection starts.Defaults to an empty string.
- Returns:
- bucket identifier as String
-
setSourceBucket
public void setSourceBucket(java.lang.String sourceBucketIdentifier)
Set the bucket where the connection starts.Throws a NullArgumentException if argument is
null.- Parameters:
sourceBucketIdentifier-
-
setSourceBucket
public void setSourceBucket(Entity sourceBucket)
Set the bucket where the connection starts.Throws a NullArgumentException if argument is
null.- Parameters:
sourceBucket-
-
getDestinationBucket
public java.lang.String getDestinationBucket()
Get the bucket where the connection ends.Defaults to an empty string.
- Returns:
- bucket identifier as String
-
setDestinationBucket
public void setDestinationBucket(java.lang.String destinationBucketIdentifier)
Set the bucket where the connection ends.Throws a NullArgumentException if argument is
null.- Parameters:
destinationBucketIdentifier-
-
setDestinationBucket
public void setDestinationBucket(Entity destinationBucket)
Set the bucket where the connection ends.Throws a NullArgumentException if argument is
null.- Parameters:
destinationBucket-
-
getContentBucket
public java.lang.String getContentBucket()
Get the content bucket associated with this cord.Defaults to an empty string.
- Returns:
- bucket identifier as String
-
setContentBucket
public void setContentBucket(java.lang.String contentBucket)
Set the content bucket associated with this cord.Throws a NullArgumentException if argument is
null.- Parameters:
contentBucket-
-
setContentBucket
public void setContentBucket(Entity contentBucket)
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
public java.lang.String getDummySourceLabel()
Gets dummy source label.- Returns:
- dummySourceLabel as String
Defaults to an empty string.
-
setDummySourceLabel
public void setDummySourceLabel(java.lang.String dummySourceLabel)
Sets dummy source label.Throws a NullArgumentException if argument is
null.- Parameters:
dummySourceLabel-
-
getDummyDestinationLabel
public java.lang.String getDummyDestinationLabel()
Gets dummy destination label.- Returns:
- dummyDestinationLabel
Defaults to an empty string.
-
setDummyDestinationLabel
public void setDummyDestinationLabel(java.lang.String dummyDestinationLabel)
Sets dummy destination label.Throws a NullArgumentException if argument is
null.- Parameters:
dummyDestinationLabel-
-
-