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
Maintains state about the parent context of the node being imported.
- Author:
- David Caruana
-
Constructor Summary
ConstructorsConstructorDescriptionParentContext(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
Modifier and TypeMethodDescriptionvoidsetAssocType(QName assocType) Set Parent / Child Assoc TypevoidsetParentRef(NodeRef parentRef) Set Parent ReferencetoString()Methods inherited from class org.alfresco.repo.importer.view.ElementContext
getDictionaryService, getElementName, getImporter
-
Constructor Details
-
ParentContext
Construct- Parameters:
elementName- QNamedictionary- DictionaryServiceimporter- Importer
-
ParentContext
Construct (with unknown child association)- Parameters:
elementName- QNameparent- NodeContext
-
ParentContext
Construct- Parameters:
elementName- QNameparent- NodeContextassocDef- AssociationDefinition
-
-
Method Details
-
getParentRef
- Specified by:
getParentRefin interfaceImportParent- Returns:
- the parent ref
-
setParentRef
Set Parent Reference- Specified by:
setParentRefin interfaceImportParent- Parameters:
parentRef- parent reference
-
getAssocType
- Specified by:
getAssocTypein interfaceImportParent- Returns:
- the child association type
-
setAssocType
Set Parent / Child Assoc Type- Specified by:
setAssocTypein interfaceImportParent- Parameters:
assocType- association type
-
toString
-