Package fr.becpg.repo.web.scripts.users
Class ExportUsersWebScript
java.lang.Object
org.springframework.extensions.webscripts.AbstractWebScript
fr.becpg.repo.web.scripts.users.ExportUsersWebScript
- All Implemented Interfaces:
org.springframework.extensions.webscripts.WebScript
public class ExportUsersWebScript
extends org.springframework.extensions.webscripts.AbstractWebScript
ExportUsersWebScript class.
- Author:
- matthieu
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.extensions.webscripts.AbstractWebScript
org.springframework.extensions.webscripts.AbstractWebScript.ScriptDetails -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.alfresco.service.cmr.security.AuthorityServiceprivate static final StringConstantDELETE="delete"private static final StringConstantDISABLE="disable"private static final StringConstantEMAIL="cm:email"private static final StringConstantFIRST_NAME="cm:firstName"private static final StringConstantGROUPS="groups"private static final StringConstantIS_IDS_USER="is_ids_user"private static final StringConstantLAST_NAME="cm:lastName"private static final StringConstantMEMBERSHIPS="memberships"private static final StringConstantNEW_USERNAME="new_username"private org.alfresco.service.cmr.repository.NodeServiceprivate static final StringConstantNOTIFY="notify"private static final StringConstantORGANIZATION="cm:organization"private static final StringConstantPASSWORD="password"private org.alfresco.service.cmr.security.PersonServiceprivate static final StringConstantSHOULD_GENERATE_PASSWORD="should_generate_password"private static final StringConstantTELEPHONE="cm:telephone"private static final StringConstantUSERNAME="username"ConstantXLSX_COLUMNS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.WebScriptResponse res) private StringgetOrEmpty(Object prop) getOrEmpty.voidsetAuthorityService(org.alfresco.service.cmr.security.AuthorityService authorityService) Setter for the fieldauthorityService.voidsetNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) Setter for the fieldnodeService.voidsetPersonService(org.alfresco.service.cmr.security.PersonService personService) Setter for the fieldpersonService.Methods 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
-
nodeService
private org.alfresco.service.cmr.repository.NodeService nodeService -
personService
private org.alfresco.service.cmr.security.PersonService personService -
authorityService
private org.alfresco.service.cmr.security.AuthorityService authorityService -
LAST_NAME
ConstantLAST_NAME="cm:lastName"- See Also:
-
FIRST_NAME
ConstantFIRST_NAME="cm:firstName"- See Also:
-
EMAIL
ConstantEMAIL="cm:email"- See Also:
-
TELEPHONE
ConstantTELEPHONE="cm:telephone"- See Also:
-
ORGANIZATION
ConstantORGANIZATION="cm:organization"- See Also:
-
USERNAME
ConstantUSERNAME="username"- See Also:
-
NEW_USERNAME
ConstantNEW_USERNAME="new_username"- See Also:
-
PASSWORD
ConstantPASSWORD="password"- See Also:
-
SHOULD_GENERATE_PASSWORD
ConstantSHOULD_GENERATE_PASSWORD="should_generate_password"- See Also:
-
MEMBERSHIPS
ConstantMEMBERSHIPS="memberships"- See Also:
-
GROUPS
ConstantGROUPS="groups"- See Also:
-
NOTIFY
ConstantNOTIFY="notify"- See Also:
-
IS_IDS_USER
ConstantIS_IDS_USER="is_ids_user"- See Also:
-
DISABLE
ConstantDISABLE="disable"- See Also:
-
DELETE
ConstantDELETE="delete"- See Also:
-
XLSX_COLUMNS
ConstantXLSX_COLUMNS
-
-
Constructor Details
-
ExportUsersWebScript
public ExportUsersWebScript()
-
-
Method Details
-
setAuthorityService
public void setAuthorityService(org.alfresco.service.cmr.security.AuthorityService authorityService) Setter for the field
authorityService.- Parameters:
authorityService- aAuthorityServiceobject
-
setNodeService
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) Setter for the field
nodeService.- Parameters:
nodeService- aNodeServiceobject
-
setPersonService
public void setPersonService(org.alfresco.service.cmr.security.PersonService personService) Setter for the field
personService.- Parameters:
personService- aPersonServiceobject
-
execute
public void execute(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.WebScriptResponse res) throws IOException - Throws:
IOException
-
getOrEmpty
getOrEmpty.
-