org.alfresco.repo.importer.view
Class ParentContext

java.lang.Object
  extended by org.alfresco.repo.importer.view.ElementContext
      extended by 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.


Constructor Summary
ParentContext(org.alfresco.service.namespace.QName elementName, org.alfresco.service.cmr.dictionary.DictionaryService dictionary, Importer importer)
          Construct
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
 
Method Summary
 org.alfresco.service.namespace.QName getAssocType()
           
 org.alfresco.service.cmr.repository.NodeRef getParentRef()
           
 void setAssocType(org.alfresco.service.namespace.QName assocType)
          Set Parent / Child Assoc Type
 void setParentRef(org.alfresco.service.cmr.repository.NodeRef parentRef)
          Set Parent Reference
 java.lang.String toString()
           
 
Methods inherited from class org.alfresco.repo.importer.view.ElementContext
getDictionaryService, getElementName, getImporter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParentContext

public ParentContext(org.alfresco.service.namespace.QName elementName,
                     org.alfresco.service.cmr.dictionary.DictionaryService dictionary,
                     Importer importer)
Construct

Parameters:
dictionary -
configuration -
progress -
elementName -
parentRef -
assocType -

ParentContext

public ParentContext(org.alfresco.service.namespace.QName elementName,
                     NodeContext parent)
Construct (with unknown child association)

Parameters:
elementName -
parent -

ParentContext

public ParentContext(org.alfresco.service.namespace.QName elementName,
                     NodeContext parent,
                     org.alfresco.service.cmr.dictionary.AssociationDefinition assocDef)
Construct

Parameters:
elementName -
parent -
childDef -
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


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.