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(org.alfresco.service.namespace.QName elementName, NodeContext parent)Construct (with unknown child association)ParentContext(org.alfresco.service.namespace.QName elementName, NodeContext parent, org.alfresco.service.cmr.dictionary.AssociationDefinition assocDef)ConstructParentContext(org.alfresco.service.namespace.QName elementName, org.alfresco.service.cmr.dictionary.DictionaryService dictionary, Importer importer)Construct
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.alfresco.service.namespace.QNamegetAssocType()org.alfresco.service.cmr.repository.NodeRefgetParentRef()voidsetAssocType(org.alfresco.service.namespace.QName assocType)Set Parent / Child Assoc TypevoidsetParentRef(org.alfresco.service.cmr.repository.NodeRef parentRef)Set Parent Referencejava.lang.StringtoString()-
Methods inherited from class org.alfresco.repo.importer.view.ElementContext
getDictionaryService, getElementName, getImporter
-
-
-
-
Constructor Detail
-
ParentContext
public ParentContext(org.alfresco.service.namespace.QName elementName, org.alfresco.service.cmr.dictionary.DictionaryService dictionary, Importer importer)Construct- Parameters:
elementName- QNamedictionary- DictionaryServiceimporter- Importer
-
ParentContext
public ParentContext(org.alfresco.service.namespace.QName elementName, NodeContext parent)Construct (with unknown child association)- Parameters:
elementName- QNameparent- NodeContext
-
ParentContext
public ParentContext(org.alfresco.service.namespace.QName elementName, NodeContext parent, org.alfresco.service.cmr.dictionary.AssociationDefinition assocDef)Construct- Parameters:
elementName- QNameparent- NodeContextassocDef- AssociationDefinition
-
-
Method Detail
-
getParentRef
public org.alfresco.service.cmr.repository.NodeRef getParentRef()
- Specified by:
getParentRefin interfaceImportParent- Returns:
- the parent ref
-
setParentRef
public void setParentRef(org.alfresco.service.cmr.repository.NodeRef parentRef)
Set Parent Reference- Specified by:
setParentRefin interfaceImportParent- Parameters:
parentRef- parent reference
-
getAssocType
public org.alfresco.service.namespace.QName getAssocType()
- Specified by:
getAssocTypein interfaceImportParent- Returns:
- the child association type
-
setAssocType
public void setAssocType(org.alfresco.service.namespace.QName assocType)
Set Parent / Child Assoc Type- Specified by:
setAssocTypein interfaceImportParent- Parameters:
assocType- association type
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-