Class ContentContext

java.lang.Object
org.alfresco.repo.content.ContentContext
All Implemented Interfaces:
Serializable

public class ContentContext extends Object implements Serializable
The location and lookup data for content. The very least data required to find content or assign a content writer is the content URL and any previous content that may have logically existed.

Although this class is doesn't enforce any conditions on the context, derived instances may have relationships that need to be maintained between various context values.

Author:
Derek Hulley
See Also:
  • Field Details

    • NULL_CONTEXT

      public static final ContentContext NULL_CONTEXT
      An empty context.
  • Constructor Details

    • ContentContext

      public ContentContext(ContentReader existingContentReader, String contentUrl)
      Construct the instance with the content URL.
      Parameters:
      existingContentReader - content with which to seed the new writer - may be null
      contentUrl - the content URL - may be null
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getExistingContentReader

      public ContentReader getExistingContentReader()
      Returns:
      Returns the content to seed the writer with - may be null
    • getContentUrl

      public String getContentUrl()
      Returns:
      Returns the content URL for the content's context - may be null