Package org.alfresco.repo.importer
Interface Importer
public interface Importer
The Importer interface encapusulates the strategy for importing a node into the Repository.
- Author:
- David Caruana
-
Method Summary
Modifier and TypeMethodDescriptionvoidchildrenImported(NodeRef nodeRef) Signal completion of node importvoidend()Signal end of importvoidSignal import errorvoidimportMetaData(Map<QName, String> properties) Import meta-dataimportNode(ImportNode node) Import a nodebooleanisExcludedClass(QName className) Is excluded Content Model Class?resolvePath(String path) Resolve path within context of root referencevoidstart()Signal start of import
-
Method Details
-
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
Signal import error -
importMetaData
Import meta-data -
importNode
Import a node- Parameters:
node- the node description- Returns:
- the node ref of the imported node
-
resolvePath
Resolve path within context of root reference- Parameters:
path- the path to resolve- Returns:
- node reference
-
isExcludedClass
Is excluded Content Model Class?- Parameters:
className- the class name to test- Returns:
- true => the provided class is excluded from import
-
childrenImported
Signal completion of node import- Parameters:
nodeRef- the node ref of the imported node
-