Overview | Package | Class | Tree | Deprecated | Index | Help
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES

## Package org.apache.slide.content

Provides classes for accessing and manipulating the content, metadata and revision history of nodes.

See:
Description

Interface Summary
Content | Content.
ContentInterceptor | An interface that allows custom components to observe and intercept storage, retrieval and removal of content.

Class Summary
AbstractContentInterceptor | Provides a basic implementation of the `ContentInterceptor` interface.
ContentImpl | Implementation of the content interface.
NodeProperty | Node property class
NodeProperty.Kind | The kind of a property: dead, live, protected, computed
NodeProperty.NamespaceCache | The usage of this class avoids the creation of mutliple Namespace objects with the same URI but different prefix.
NodeRevisionContent | Encapsultes the contents of a revision.
NodeRevisionDescriptor | Node Revision Descriptor class.
NodeRevisionDescriptors | Node Revision Descriptors class.
NodeRevisionNumber | Node Revision Number class.

Exception Summary
BranchNotFoundException | Branch not found.
ContentException | Content exception.
InsufficientStorageException | Exception thrown to indicate that a limitation of available storage space has been reached or exceeded.
NodeNotVersionedException | The node is not versioned.
RevisionAlreadyExistException | Revision already exist.
RevisionContentNotFoundException | Revision content not found.
RevisionDescriptorNotFoundException | Revision descriptor not found.
RevisionNotFoundException | Revision not found.

## Package org.apache.slide.content Description

Provides classes for accessing and manipulating the content, metadata and revision history of nodes. By default linear versioning is automatically provided, but the client can use helper functions to create and merge branches. The versioning component also manages the metadata associated on the objects, like for example its size and creation date.

Each `ObjectNode` which has content has associated `NodeRevisionDescriptors` and `NodeRevisionDescriptor` objects. These objects manage:

- the metadata associated with the object
- the revision tree

The basic metadata include :

- Client friendly name
- Creation date
- Content type
- Content language (if applicable)

The client application can modify metadata fields, add additional fields, ...

### Object Model

#### `NodeRevisionDescriptors`

The NodeRevisionDescriptors class represents the revision tree of an object. This object is immutable.

- Object: Uri of the asssociated node.
- Use Versioning: Flag which indicates whether or not a node has multiple revisions.
- Latest Revision Numbers: Indicates what is the latest revision number in each branch.
- Branches: Revision numbers of all the revisions of the node.

#### `NodeRevisionDescriptor`

The NodeRevisionDescriptor class represents all the metadata information associated with the binary content of a revision. This includes information on the revision itself, labels and properties.

- Branch Name: Name of the branch in which this revision is.
- Number: Revision number.
- Labels: Labels (tags) associated with the revision.
- Properties: Properties associated with the revision. The default properties are: creation date, name, type, source, content length, last modification date.

#### `NodeProperty`

The NodeProperty class represents an individual property associated to a revision. This object is immutable.

- Name: Property name.
- Namespace: Property namespace.
- Value: Property value.
- Type: Property type.

#### `NodeRevisionContent`

The NodeRevisionContent class gives access to the revision's binary content.

#### `NodeRevisionNumber`

The NodeRevisionNumber class represents the revision number of a revision. This object is immutable.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES