public class RepositoryImportResource extends Object
Constructor and Description |
---|
RepositoryImportResource() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
doPostImport(String uploadDir,
InputStream fileIS,
String overwriteFile,
String overwriteAclPermissions,
String applyAclPermission,
String retainOwnership,
String pCharSet,
String logLevel,
com.sun.jersey.core.header.FormDataContentDisposition fileInfo,
String fileNameOverride)
Attempts to import all files from the zip file.
|
public javax.ws.rs.core.Response doPostImport(String uploadDir, InputStream fileIS, String overwriteFile, String overwriteAclPermissions, String applyAclPermission, String retainOwnership, String pCharSet, String logLevel, com.sun.jersey.core.header.FormDataContentDisposition fileInfo, String fileNameOverride)
uploadDir
- : JCR Directory to which the zip structure or single file will be uploaded to.fileIS
- : Input stream for the file.fileInfo
- : Info about he filefileNameOverride:
- If present and the content represents a single file, this parameter
contains the filename to use when storing the file in the repository. If not present, the
fileInfo.getFileName will be used. Note that the later cannot reliably handle foreign character
sets.