Package org.alfresco.repo.importer.view
Class ParentContext
- java.lang.Object
-
- org.alfresco.repo.importer.view.ElementContext
-
- org.alfresco.repo.importer.view.ParentContext
-
- All Implemented Interfaces:
ImportParent
public class ParentContext extends ElementContext implements ImportParent
Maintains state about the parent context of the node being imported.- Author:
- David Caruana
-
-
Constructor Summary
Constructors Constructor Description ParentContext(QName elementName, NodeContext parent)Construct (with unknown child association)ParentContext(QName elementName, NodeContext parent, AssociationDefinition assocDef)ConstructParentContext(QName elementName, DictionaryService dictionary, Importer importer)Construct
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QNamegetAssocType()NodeRefgetParentRef()voidsetAssocType(QName assocType)Set Parent / Child Assoc TypevoidsetParentRef(NodeRef parentRef)Set Parent ReferenceStringtoString()-
Methods inherited from class org.alfresco.repo.importer.view.ElementContext
getDictionaryService, getElementName, getImporter
-
-
-
-
Constructor Detail
-
ParentContext
public ParentContext(QName elementName, DictionaryService dictionary, Importer importer)
Construct- Parameters:
elementName- QNamedictionary- DictionaryServiceimporter- Importer
-
ParentContext
public ParentContext(QName elementName, NodeContext parent)
Construct (with unknown child association)- Parameters:
elementName- QNameparent- NodeContext
-
ParentContext
public ParentContext(QName elementName, NodeContext parent, AssociationDefinition assocDef)
Construct- Parameters:
elementName- QNameparent- NodeContextassocDef- AssociationDefinition
-
-
Method Detail
-
getParentRef
public NodeRef getParentRef()
- Specified by:
getParentRefin interfaceImportParent- Returns:
- the parent ref
-
setParentRef
public void setParentRef(NodeRef parentRef)
Set Parent Reference- Specified by:
setParentRefin interfaceImportParent- Parameters:
parentRef- parent reference
-
getAssocType
public QName getAssocType()
- Specified by:
getAssocTypein interfaceImportParent- Returns:
- the child association type
-
setAssocType
public void setAssocType(QName assocType)
Set Parent / Child Assoc Type- Specified by:
setAssocTypein interfaceImportParent- Parameters:
assocType- association type
-
-