public class StreamACP extends StreamContent
The default implementation generates an ACP file containing the provided NodeRefs and all their respective children.
| Modifier and Type | Field and Description |
|---|---|
protected org.alfresco.service.cmr.view.ExporterService |
exporterService |
protected static java.lang.String |
MULTIPART_FORMDATA |
protected static java.lang.String |
PARAM_NODE_REFS |
protected static java.lang.String |
TEMP_FILE_PREFIX |
protected static java.lang.String |
ZIP_EXTENSION |
contentService, mimetypeService, nodeService, permissionService, resourceLoader| Constructor and Description |
|---|
StreamACP() |
| Modifier and Type | Method and Description |
|---|---|
protected java.io.File |
createACP(org.alfresco.service.cmr.view.ExporterCrawlerParameters params,
java.lang.String extension,
boolean keepFolderStructure)
Returns an ACP file containing the nodes represented by the given list of NodeRefs.
|
void |
execute(org.springframework.extensions.webscripts.WebScriptRequest req,
org.springframework.extensions.webscripts.WebScriptResponse res) |
protected org.alfresco.service.cmr.repository.NodeRef[] |
getNodeRefs(org.json.JSONObject json)
Attempts to retrieve and convert a JSON array of
NodeRefs from the given JSON object.
|
protected org.alfresco.service.cmr.repository.NodeRef[] |
getNodeRefs(java.lang.String nodeRefsParam)
Converts the given comma delimited string of NodeRefs to an array
of NodeRefs.
|
void |
setExporterService(org.alfresco.service.cmr.view.ExporterService exporterService)
Sets the ExporterService to use
|
executeImpl, executeImpl, executeImpl, renderFormatTemplate, setAttachment, setContentService, setMimetypeService, setNodeService, setPermissionService, setResourceLoader, setResponseCache, streamContent, streamContent, streamContent, streamContent, streamContent, streamContent, streamContent, streamContent, streamContent, streamContent, streamContent, streamContent, streamContent, streamContent, streamContentImpl, streamContentImpladdModuleBundleToCache, checkModuleBundleCache, createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toStringprotected static final java.lang.String TEMP_FILE_PREFIX
protected static final java.lang.String MULTIPART_FORMDATA
protected static final java.lang.String ZIP_EXTENSION
protected static final java.lang.String PARAM_NODE_REFS
protected org.alfresco.service.cmr.view.ExporterService exporterService
public void setExporterService(org.alfresco.service.cmr.view.ExporterService exporterService)
exporterService - The ExporterServicepublic void execute(org.springframework.extensions.webscripts.WebScriptRequest req,
org.springframework.extensions.webscripts.WebScriptResponse res)
throws java.io.IOException
execute in interface org.springframework.extensions.webscripts.WebScriptexecute in class StreamContentjava.io.IOExceptionorg.alfresco.web.scripts.WebScript#execute(org.alfresco.web.scripts.WebScriptRequest, org.alfresco.web.scripts.WebScriptResponse)protected org.alfresco.service.cmr.repository.NodeRef[] getNodeRefs(java.lang.String nodeRefsParam)
nodeRefsParam - Comma delimited string of NodeRefsprotected org.alfresco.service.cmr.repository.NodeRef[] getNodeRefs(org.json.JSONObject json)
throws org.json.JSONException
nodeRefs - Comma delimited string of NodeRefsorg.json.JSONExceptionprotected java.io.File createACP(org.alfresco.service.cmr.view.ExporterCrawlerParameters params,
java.lang.String extension,
boolean keepFolderStructure)
params - The parameters for the ACP exporterextension - The file extenstion to use for the ACP filekeepFolderStructure - Determines whether the folder structure is maintained for
the content inside the ACP fileCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.