Skip navigation links
Escenic Content Engine 7.0.2-2 API documentation

Package com.escenic.domain

The model for persistent content in Escenic Content Engine.

See: Description

Package com.escenic.domain Description

The model for persistent content in Escenic Content Engine.

The Content class is the container of the content. A Content item is generally an item containing properties, and related to other Content items. The possibilities for any given Content item is constrained by a Content Descriptor. The descriptor indicates which fields are valid, which types the different fields are, any validation constraints, and if anything can be related to it.

The Content items emit events whenever any property changes. Client code can create standard PropertyChangeListeners and add themselves to any property. Whenever a property is changed any property change listeners will be notified, using the property names from the Content Descriptors.

A Content Descriptor is basically a definition of a content type, for example a news article or an image. It can be thought of as a list of Property Descriptors which describe the actual property. A Property Descriptor contains a name, a type and a default value. Some core escenic types are defined in the ContentDescriptorArchetypes class. It provides static methods to create content descriptors based on an external (article) type definition, along with content descriptors for images, and other objects.

Each Content object has an immutable Content ID which uniquely identifies the content in the persistent storage.

Content objects can also have named relations (ContentSummarys) to other items. Content relationships relate to a Content item. A Content summary can have a number of properties defined in the parent content descriptor.

A Content object can have any number of relations. The lists are named to reflect a relation type in the Escenic Content Engine. The relations are usually defined as links or content summaries.

Binary content are referenced as a property of type link with a special relation type. The relation type is "edit-media".

Skip navigation links
Escenic Content Engine 7.0.2-2 API documentation

© 1998- 2021 Escenic AS