org.apache.sling.jcr.contentloader
Class ImportOptions

java.lang.Object
  extended by org.apache.sling.jcr.contentloader.ImportOptions

public abstract class ImportOptions
extends Object

Encapsulates the options for the content import.


Constructor Summary
ImportOptions()
           
 
Method Summary
abstract  boolean isCheckin()
          Specifies whether versionable nodes is automatically checked in at the end of the import operation.
abstract  boolean isIgnoredImportProvider(String extension)
          Check if the import provider for the given file extension should be ignored.
abstract  boolean isOverwrite()
          Specifies whether imported nodes should overwrite existing nodes.
abstract  boolean isPropertyOverwrite()
          Specifies whether imported properties should overwrite existing properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImportOptions

public ImportOptions()
Method Detail

isOverwrite

public abstract boolean isOverwrite()
Specifies whether imported nodes should overwrite existing nodes. NOTE: this means the existing node will be deleted and a new node will be created in the same location.

Returns:
true to overwrite nodes, false otherwise

isPropertyOverwrite

public abstract boolean isPropertyOverwrite()
Specifies whether imported properties should overwrite existing properties.

Returns:
true to overwrite node properties, false otherwise

isCheckin

public abstract boolean isCheckin()
Specifies whether versionable nodes is automatically checked in at the end of the import operation.

Returns:
true to checkin the versionable nodes, false otherwise

isIgnoredImportProvider

public abstract boolean isIgnoredImportProvider(String extension)
Check if the import provider for the given file extension should be ignored.

Parameters:
extension - the extension to check
Returns:
true to ignore the provider, false otherwise


Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.