public class CustomModelUploadPost
extends org.springframework.extensions.webscripts.DeclarativeWebScript
Modifier and Type | Class and Description |
---|---|
static class |
CustomModelUploadPost.ImportResult
Simple POJO for model import result.
|
Constructor and Description |
---|
CustomModelUploadPost() |
Modifier and Type | Method and Description |
---|---|
protected File |
createTempFile(InputStream inputStream) |
protected Map<String,Object> |
executeImpl(org.springframework.extensions.webscripts.WebScriptRequest req,
org.springframework.extensions.webscripts.Status status,
org.springframework.extensions.webscripts.Cache cache) |
protected String |
getExtensionModule(InputStream inputStream,
String fileName) |
protected CustomModel |
importModel(org.alfresco.repo.dictionary.M2Model m2Model) |
protected CustomModelUploadPost.ImportResult |
processUpload(ZipFile zipFile,
String filename) |
void |
setCustomModels(CustomModels customModels) |
void |
setCustomModelService(org.alfresco.service.cmr.dictionary.CustomModelService customModelService) |
execute, executeFinallyImpl, executeImpl, executeImpl, getTemplateModel, renderFormatTemplate
addModuleBundleToCache, checkModuleBundleCache, createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toString
public void setCustomModels(CustomModels customModels)
public void setCustomModelService(org.alfresco.service.cmr.dictionary.CustomModelService customModelService)
protected Map<String,Object> executeImpl(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.Status status, org.springframework.extensions.webscripts.Cache cache)
executeImpl
in class org.springframework.extensions.webscripts.DeclarativeWebScript
protected File createTempFile(InputStream inputStream)
protected CustomModelUploadPost.ImportResult processUpload(ZipFile zipFile, String filename) throws IOException
IOException
protected CustomModel importModel(org.alfresco.repo.dictionary.M2Model m2Model)
protected String getExtensionModule(InputStream inputStream, String fileName)
Copyright © 2005–2017 Alfresco Software. All rights reserved.