Class ImportOptions
- java.lang.Object
-
- org.apache.sling.jcr.contentloader.ImportOptions
-
@ConsumerType public abstract class ImportOptions extends java.lang.Object
Encapsulates the options for the content import.
-
-
Constructor Summary
Constructors Constructor Description ImportOptions()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
isAutoCheckout()
Specifies whether versionable nodes is automatically checked out when necessary.abstract boolean
isCheckin()
Specifies whether versionable nodes is automatically checked in at the end of the import operation.abstract boolean
isIgnoredImportProvider(java.lang.String extension)
Check if the content reader 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.
-
-
-
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
-
isAutoCheckout
public boolean isAutoCheckout()
Specifies whether versionable nodes is automatically checked out when necessary.- Returns:
- true to checkout the versionable nodes, false otherwise
- Since:
- 2.1.4
-
isIgnoredImportProvider
public abstract boolean isIgnoredImportProvider(java.lang.String extension)
Check if the content reader for the given file extension should be ignored.- Parameters:
extension
- the extension to check- Returns:
- true to ignore the reader, false otherwise
-
-