Class UserCSVUploadPost
java.lang.Object
org.springframework.extensions.webscripts.AbstractWebScript
org.springframework.extensions.webscripts.DeclarativeWebScript
org.alfresco.repo.web.scripts.person.UserCSVUploadPost
- All Implemented Interfaces:
org.springframework.extensions.webscripts.WebScript
public class UserCSVUploadPost
extends org.springframework.extensions.webscripts.DeclarativeWebScript
Webscript implementation for the POST method for uploading a
CSV of users to have them created.
- Since:
- 3.5
- Author:
- Nick Burch
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classNested classes/interfaces inherited from class org.springframework.extensions.webscripts.AbstractWebScript
org.springframework.extensions.webscripts.AbstractWebScript.ScriptDetails -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final org.alfresco.service.namespace.QName[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecuteImpl(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.Status status) protected voidprocessCSVUpload(InputStream input, List<Map<org.alfresco.service.namespace.QName, String>> users) protected voidprocessUpload(InputStream input, String filename, List<Map<org.alfresco.service.namespace.QName, String>> users) protected voidprocessXLSUpload(InputStream input, List<Map<org.alfresco.service.namespace.QName, String>> users) protected voidprocessXLSXUpload(InputStream input, List<Map<org.alfresco.service.namespace.QName, String>> users) voidsetAuthenticationService(MutableAuthenticationService authenticationService) voidsetAuthorityService(AuthorityService authorityService) voidsetDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService) voidsetPersonService(PersonService personService) voidsetTenantService(TenantService tenantService) voidsetTransactionHelper(RetryingTransactionHelper retryingTransactionHelper) Methods inherited from class org.springframework.extensions.webscripts.DeclarativeWebScript
execute, executeFinallyImpl, executeImpl, executeImpl, getTemplateModel, renderFormatTemplateMethods inherited from class org.springframework.extensions.webscripts.AbstractWebScript
addModuleBundleToCache, checkModuleBundleCache, createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toString
-
Field Details
-
COLUMNS
protected static final org.alfresco.service.namespace.QName[] COLUMNS
-
-
Constructor Details
-
UserCSVUploadPost
public UserCSVUploadPost()
-
-
Method Details
-
setAuthenticationService
- Parameters:
authenticationService- the AuthenticationService to set
-
setAuthorityService
- Parameters:
authorityService- the AuthorityService to set
-
setPersonService
- Parameters:
personService- the PersonService to set
-
setTenantService
- Parameters:
tenantService- the TenantService to set
-
setDictionaryService
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService) - Parameters:
dictionaryService- the DictionaryService to set
-
setTransactionHelper
- Parameters:
retryingTransactionHelper- the helper for running transactions to set
-
executeImpl
protected Map<String,Object> executeImpl(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.Status status) - Overrides:
executeImplin classorg.springframework.extensions.webscripts.DeclarativeWebScript- See Also:
-
DeclarativeWebScript.executeImpl(org.springframework.extensions.webscripts.WebScriptRequest, org.springframework.extensions.webscripts.Status)
-
processUpload
protected void processUpload(InputStream input, String filename, List<Map<org.alfresco.service.namespace.QName, String>> users) -
processCSVUpload
protected void processCSVUpload(InputStream input, List<Map<org.alfresco.service.namespace.QName, String>> users) throws IOException- Throws:
IOException
-
processXLSUpload
protected void processXLSUpload(InputStream input, List<Map<org.alfresco.service.namespace.QName, String>> users) throws IOException- Throws:
IOException
-
processXLSXUpload
protected void processXLSXUpload(InputStream input, List<Map<org.alfresco.service.namespace.QName, String>> users) throws IOException- Throws:
IOException
-