org.alfresco.repo.web.scripts.person
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
Nested classes/interfaces inherited from class org.springframework.extensions.webscripts.AbstractWebScript |
org.springframework.extensions.webscripts.AbstractWebScript.ScriptDetails |
Field Summary |
protected static org.alfresco.service.namespace.QName[] |
COLUMNS
|
Method Summary |
protected java.util.Map |
executeImpl(org.springframework.extensions.webscripts.WebScriptRequest req,
org.springframework.extensions.webscripts.Status status)
|
protected void |
processCSVUpload(java.io.InputStream input,
java.util.List users)
|
protected void |
processUpload(java.io.InputStream input,
java.lang.String filename,
java.util.List users)
|
protected void |
processXLSUpload(java.io.InputStream input,
java.util.List users)
|
protected void |
processXLSXUpload(java.io.InputStream input,
java.util.List users)
|
void |
setAuthenticationService(org.alfresco.service.cmr.security.MutableAuthenticationService authenticationService)
|
void |
setAuthorityService(org.alfresco.service.cmr.security.AuthorityService authorityService)
|
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
|
void |
setPersonService(org.alfresco.service.cmr.security.PersonService personService)
|
void |
setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
|
void |
setTransactionHelper(org.alfresco.repo.transaction.RetryingTransactionHelper retryingTransactionHelper)
|
Methods inherited from class org.springframework.extensions.webscripts.DeclarativeWebScript |
execute, executeFinallyImpl, executeImpl, executeImpl, getTemplateModel, renderFormatTemplate |
Methods inherited from class org.springframework.extensions.webscripts.AbstractWebScript |
createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
COLUMNS
protected static final org.alfresco.service.namespace.QName[] COLUMNS
UserCSVUploadPost
public UserCSVUploadPost()
setAuthenticationService
public void setAuthenticationService(org.alfresco.service.cmr.security.MutableAuthenticationService authenticationService)
- Parameters:
authenticationService
- the AuthenticationService to set
setAuthorityService
public void setAuthorityService(org.alfresco.service.cmr.security.AuthorityService authorityService)
- Parameters:
authorityService
- the AuthorityService to set
setPersonService
public void setPersonService(org.alfresco.service.cmr.security.PersonService personService)
- Parameters:
personService
- the PersonService to set
setTenantService
public void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
- Parameters:
tenantService
- the TenantService to set
setDictionaryService
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
- Parameters:
dictionaryService
- the DictionaryService to set
setTransactionHelper
public void setTransactionHelper(org.alfresco.repo.transaction.RetryingTransactionHelper retryingTransactionHelper)
- Parameters:
retryingTransactionHelper
- the helper for running transactions to set
executeImpl
protected java.util.Map executeImpl(org.springframework.extensions.webscripts.WebScriptRequest req,
org.springframework.extensions.webscripts.Status status)
- Overrides:
executeImpl
in class org.springframework.extensions.webscripts.DeclarativeWebScript
- See Also:
org.alfresco.web.scripts.DeclarativeWebScript#executeImpl(org.alfresco.web.scripts.WebScriptRequest, org.alfresco.web.scripts.Status)
processUpload
protected void processUpload(java.io.InputStream input,
java.lang.String filename,
java.util.List users)
processCSVUpload
protected void processCSVUpload(java.io.InputStream input,
java.util.List users)
throws java.io.IOException
- Throws:
java.io.IOException
processXLSUpload
protected void processXLSUpload(java.io.InputStream input,
java.util.List users)
throws java.io.IOException
- Throws:
java.io.IOException
processXLSXUpload
protected void processXLSXUpload(java.io.InputStream input,
java.util.List users)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.