org.alfresco.repo.content
Class ContentContext

java.lang.Object
  extended by org.alfresco.repo.content.ContentContext
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
NodeContentContext

public class ContentContext
extends java.lang.Object
implements java.io.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.

See Also:
Serialized Form

Field Summary
static ContentContext NULL_CONTEXT
          An empty context.
 
Constructor Summary
ContentContext(org.alfresco.service.cmr.repository.ContentReader existingContentReader, java.lang.String contentUrl)
          Construct the instance with the content URL.
 
Method Summary
 java.lang.String getContentUrl()
           
 org.alfresco.service.cmr.repository.ContentReader getExistingContentReader()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NULL_CONTEXT

public static final ContentContext NULL_CONTEXT
An empty context.

Constructor Detail

ContentContext

public ContentContext(org.alfresco.service.cmr.repository.ContentReader existingContentReader,
                      java.lang.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 Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getExistingContentReader

public org.alfresco.service.cmr.repository.ContentReader getExistingContentReader()
Returns:
Returns the content to seed the writer with - may be null

getContentUrl

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


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.