Class Document

java.lang.Object
org.hippoecm.repository.api.Document
All Implemented Interfaces:
Serializable

public class Document extends Object implements Serializable
A Plain Old Java Object (POJO) representing a document in a JCR repository. Instances of this object can be returned by workflow calls to indicate to the callee which document has been created or otherwise affected.
See Also:
  • Constructor Details

    • Document

      public Document()
      Constructor that should be considered to have a protected signature rather than public and may be used for extending classes to create a new Document.
    • Document

      public Document(String identity)
      Lightweight constructor of a Document only providing a identity.
      Parameters:
      identity - the identifier of a backing Node in the repository that this document instance represents.
    • Document

      public Document(Document document)
      Copy constructor which allows to pass on a lightweight Document using its internal backing Node
      Parameters:
      document - source document to copy the identity and possible the internal backing Node from
    • Document

      public Document(Node node) throws RepositoryException
      Extended classes must honor this constructor!
      Parameters:
      node - the backing Node in the repository that this document instance represents.
      Throws:
      RepositoryException
  • Method Details