Class 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)
      Construct
      ParentContext​(org.alfresco.service.namespace.QName elementName, org.alfresco.service.cmr.dictionary.DictionaryService dictionary, Importer importer)
      Construct
    • Constructor Detail

      • ParentContext

        public ParentContext​(org.alfresco.service.namespace.QName elementName,
                             org.alfresco.service.cmr.dictionary.DictionaryService dictionary,
                             Importer importer)
        Construct
        Parameters:
        elementName - QName
        dictionary - DictionaryService
        importer - Importer
      • ParentContext

        public ParentContext​(org.alfresco.service.namespace.QName elementName,
                             NodeContext parent)
        Construct (with unknown child association)
        Parameters:
        elementName - QName
        parent - NodeContext
      • ParentContext

        public ParentContext​(org.alfresco.service.namespace.QName elementName,
                             NodeContext parent,
                             org.alfresco.service.cmr.dictionary.AssociationDefinition assocDef)
        Construct
        Parameters:
        elementName - QName
        parent - NodeContext
        assocDef - AssociationDefinition
    • Method Detail

      • getParentRef

        public org.alfresco.service.cmr.repository.NodeRef getParentRef()
        Specified by:
        getParentRef in interface ImportParent
        Returns:
        the parent ref
      • setParentRef

        public void setParentRef​(org.alfresco.service.cmr.repository.NodeRef parentRef)
        Set Parent Reference
        Specified by:
        setParentRef in interface ImportParent
        Parameters:
        parentRef - parent reference
      • getAssocType

        public org.alfresco.service.namespace.QName getAssocType()
        Specified by:
        getAssocType in interface ImportParent
        Returns:
        the child association type
      • setAssocType

        public void setAssocType​(org.alfresco.service.namespace.QName assocType)
        Set Parent / Child Assoc Type
        Specified by:
        setAssocType in interface ImportParent
        Parameters:
        assocType - association type
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object