Package org.alfresco.repo.importer
Interface Importer
-
public interface ImporterThe Importer interface encapusulates the strategy for importing a node into the Repository.- Author:
- David Caruana
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidchildrenImported(NodeRef nodeRef)Signal completion of node importvoidend()Signal end of importvoiderror(Throwable e)Signal import errorLocationgetLocation()QNamegetRootAssocType()NodeRefgetRootRef()voidimportMetaData(Map<QName,String> properties)Import meta-dataNodeRefimportNode(ImportNode node)Import a nodebooleanisExcludedClass(QName className)Is excluded Content Model Class?NodeRefresolvePath(String path)Resolve path within context of root referencevoidstart()Signal start of import
-
-
-
Method Detail
-
getRootRef
NodeRef getRootRef()
- Returns:
- the root node to import into
-
getRootAssocType
QName getRootAssocType()
- Returns:
- the root child association type to import under
-
getLocation
Location getLocation()
- Returns:
- the location to import under
-
start
void start()
Signal start of import
-
end
void end()
Signal end of import
-
error
void error(Throwable e)
Signal import error
-
importNode
NodeRef importNode(ImportNode node)
Import a node- Parameters:
node- the node description- Returns:
- the node ref of the imported node
-
resolvePath
NodeRef resolvePath(String path)
Resolve path within context of root reference- Parameters:
path- the path to resolve- Returns:
- node reference
-
isExcludedClass
boolean isExcludedClass(QName className)
Is excluded Content Model Class?- Parameters:
className- the class name to test- Returns:
- true => the provided class is excluded from import
-
childrenImported
void childrenImported(NodeRef nodeRef)
Signal completion of node import- Parameters:
nodeRef- the node ref of the imported node
-
-