Package org.alfresco.repo.content
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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static ContentContext
NULL_CONTEXT
An empty context.
-
Constructor Summary
Constructors Constructor Description ContentContext(ContentReader existingContentReader, String contentUrl)
Construct the instance with the content URL.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getContentUrl()
ContentReader
getExistingContentReader()
String
toString()
-
-
-
Field Detail
-
NULL_CONTEXT
public static final ContentContext NULL_CONTEXT
An empty context.
-
-
Constructor Detail
-
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 nullcontentUrl
- the content URL - may be null
-
-
Method Detail
-
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
-
-