@Deprecated public class ImportZipCommand extends info.magnolia.commands.impl.BaseRepositoryCommand
Modifier and Type | Field and Description |
---|---|
static String |
BACKSLASH_DUMMY
Deprecated.
|
protected info.magnolia.context.Context |
context
Deprecated.
|
static String |
DEFAULT_MIME_TYPE
Deprecated.
|
static String |
ENCODING_PROPERTY
Deprecated.
|
static String |
STREAM_PROPERTY
Deprecated.
|
static String |
ZIP_TMP_FILE_PREFIX
Deprecated.
|
static String |
ZIP_TMP_FILE_SUFFIX
Deprecated.
|
Constructor and Description |
---|
ImportZipCommand(info.magnolia.i18nsystem.SimpleTranslator i18n)
Deprecated.
since 5.7.2 use
ImportZipCommand(SimpleTranslator, FileSystemHelper) |
ImportZipCommand(info.magnolia.i18nsystem.SimpleTranslator i18n,
info.magnolia.cms.core.FileSystemHelper fileSystemHelper)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected UploadReceiver |
createReceiver()
Deprecated.
|
protected void |
doHandleEntryFromReceiver(javax.jcr.Node folder,
UploadReceiver receiver)
Deprecated.
Actually produce an asset or a node based on the entry data aggregated into an
UploadReceiver object. |
boolean |
execute(info.magnolia.context.Context context)
Deprecated.
|
String |
getEncoding()
Deprecated.
|
InputStream |
getInputStream()
Deprecated.
|
protected void |
handleFileEntry(org.apache.commons.compress.archivers.zip.ZipFile zip,
org.apache.commons.compress.archivers.zip.ZipArchiveEntry entry)
Deprecated.
|
void |
setEncoding(String encoding)
Deprecated.
|
void |
setInputStream(InputStream inputStream)
Deprecated.
|
getJCRNode, getPath, getRepository, getUuid, release, setPath, setRepository, setUuid
public static final String STREAM_PROPERTY
public static final String ENCODING_PROPERTY
public static final String ZIP_TMP_FILE_PREFIX
public static final String ZIP_TMP_FILE_SUFFIX
public static final String DEFAULT_MIME_TYPE
public static final String BACKSLASH_DUMMY
protected info.magnolia.context.Context context
@Inject public ImportZipCommand(info.magnolia.i18nsystem.SimpleTranslator i18n, info.magnolia.cms.core.FileSystemHelper fileSystemHelper)
@Deprecated public ImportZipCommand(info.magnolia.i18nsystem.SimpleTranslator i18n)
ImportZipCommand(SimpleTranslator, FileSystemHelper)
public boolean execute(info.magnolia.context.Context context) throws Exception
execute
in class info.magnolia.commands.MgnlCommand
Exception
protected void handleFileEntry(org.apache.commons.compress.archivers.zip.ZipFile zip, org.apache.commons.compress.archivers.zip.ZipArchiveEntry entry) throws IOException, javax.jcr.RepositoryException
IOException
javax.jcr.RepositoryException
protected UploadReceiver createReceiver()
protected void doHandleEntryFromReceiver(javax.jcr.Node folder, UploadReceiver receiver) throws javax.jcr.RepositoryException
UploadReceiver
object.folder
- parent folder node for a new entry.receiver
- wraps the entry file and its basic meta-information.javax.jcr.RepositoryException
public InputStream getInputStream()
public void setInputStream(InputStream inputStream)
public String getEncoding()
public void setEncoding(String encoding)
Copyright © 2021 Magnolia International Ltd.. All rights reserved.