Package org.alfresco.repo.content
Class NodeContentContext
- java.lang.Object
-
- org.alfresco.repo.content.ContentContext
-
- org.alfresco.repo.content.NodeContentContext
-
- All Implemented Interfaces:
Serializable
public class NodeContentContext extends ContentContext
Context information for node-related content.- Author:
- Derek Hulley
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.alfresco.repo.content.ContentContext
NULL_CONTEXT
-
-
Constructor Summary
Constructors Constructor Description NodeContentContext(ContentReader existingContentReader, String contentUrl, NodeRef nodeRef, QName propertyQName)Construct the instance with the content URL.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeRefgetNodeRef()QNamegetPropertyQName()StringtoString()-
Methods inherited from class org.alfresco.repo.content.ContentContext
getContentUrl, getExistingContentReader
-
-
-
-
Constructor Detail
-
NodeContentContext
public NodeContentContext(ContentReader existingContentReader, String contentUrl, NodeRef nodeRef, QName propertyQName)
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 nullnodeRef- the node holding the content metadata - may not be nullpropertyQName- the property holding the content metadata - may not be null
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toStringin classContentContext
-
getNodeRef
public NodeRef getNodeRef()
- Returns:
- Returns the node holding the content metadata
-
getPropertyQName
public QName getPropertyQName()
- Returns:
- Returns the property holding the content metadata
-
-