Class BeCPGTaskInstancesGet
java.lang.Object
org.springframework.extensions.webscripts.AbstractWebScript
org.springframework.extensions.webscripts.DeclarativeWebScript
org.alfresco.repo.web.scripts.workflow.AbstractWorkflowWebscript
org.alfresco.repo.web.scripts.workflow.TaskInstancesGet
fr.becpg.repo.web.scripts.workflow.BeCPGTaskInstancesGet
- All Implemented Interfaces:
org.springframework.extensions.webscripts.WebScript
public class BeCPGTaskInstancesGet
extends org.alfresco.repo.web.scripts.workflow.TaskInstancesGet
BeCPGTaskInstancesGet class.
- Version:
- $Id: $Id
- Author:
- matthieu
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate classprivate static classprivate static classNested classes/interfaces inherited from class org.alfresco.repo.web.scripts.workflow.AbstractWorkflowWebscript
org.alfresco.repo.web.scripts.workflow.AbstractWorkflowWebscript.ExcludeFilterNested classes/interfaces inherited from class org.springframework.extensions.webscripts.AbstractWebScript
org.springframework.extensions.webscripts.AbstractWebScript.ScriptDetails -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AttributeExtractorServiceprivate static final org.apache.commons.logging.LogConstantLOGGERstatic final StringConstantPARAM_DIR="dir"static final StringConstantPARAM_SEARCH="q"static final StringConstantPARAM_SORT="sort"private static final org.alfresco.service.namespace.QNameConstantQNAME_INITIATORFields inherited from class org.alfresco.repo.web.scripts.workflow.TaskInstancesGet
PARAM_AUTHORITY, PARAM_DUE_AFTER, PARAM_DUE_BEFORE, PARAM_POOLED_TASKS, PARAM_PRIORITY, PARAM_PROPERTIES, PARAM_PROPERTY, PARAM_STATE, VAR_WORKFLOW_INSTANCE_IDFields inherited from class org.alfresco.repo.web.scripts.workflow.AbstractWorkflowWebscript
authenticationService, authorityService, DEFAULT_MAX_ITEMS, DEFAULT_SKIP_COUNT, dictionaryService, EMPTY, namespaceService, nodeService, NULL, PARAM_EXCLUDE, PARAM_MAX_ITEMS, PARAM_SKIP_COUNT, personService, workflowService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildbeCPGModel(org.alfresco.repo.web.scripts.workflow.WorkflowModelBuilder modelBuilder, org.alfresco.service.cmr.workflow.WorkflowTask task, List<String> properties, List<AttributeExtractorField> extraProperties) buildbeCPGModel.buildModel(org.alfresco.repo.web.scripts.workflow.WorkflowModelBuilder modelBuilder, org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.Status status, org.springframework.extensions.webscripts.Cache cache) private org.alfresco.service.namespace.QNameextractSort(String parameter) extractSort.private StringgetAuthority(org.springframework.extensions.webscripts.WebScriptRequest req) Returns the specified authority.private BooleangetPooledTasks(org.springframework.extensions.webscripts.WebScriptRequest req) Retrieves the pooledTasks parameter.getProperties(org.springframework.extensions.webscripts.WebScriptRequest req) Retrieves the list of property names to include in the response.private org.alfresco.service.cmr.workflow.WorkflowTaskStategetState(org.springframework.extensions.webscripts.WebScriptRequest req) Gets the specifiedWorkflowTaskState, null if not requestedprivate booleanDetermine if the given task should be included in the response.voidsetAttributeExtractorService(AttributeExtractorService attributeExtractorService) Setter for the fieldattributeExtractorService.Methods inherited from class org.alfresco.repo.web.scripts.workflow.AbstractWorkflowWebscript
applyPagination, createResultModel, executeImpl, getDateParameter, getIntParameter, isDateMatchForFilter, processDateFilter, setAuthenticationService, setAuthorityService, setDictionaryService, setNamespaceService, setNodeService, setPersonService, setWorkflowServiceMethods 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
-
LOGGER
private static final org.apache.commons.logging.Log LOGGERConstantLOGGER -
PARAM_SEARCH
ConstantPARAM_SEARCH="q"- See Also:
-
PARAM_SORT
ConstantPARAM_SORT="sort"- See Also:
-
PARAM_DIR
ConstantPARAM_DIR="dir"- See Also:
-
QNAME_INITIATOR
private static final org.alfresco.service.namespace.QName QNAME_INITIATORConstantQNAME_INITIATOR -
attributeExtractorService
-
-
Constructor Details
-
BeCPGTaskInstancesGet
public BeCPGTaskInstancesGet()
-
-
Method Details
-
setAttributeExtractorService
Setter for the field
attributeExtractorService.- Parameters:
attributeExtractorService- aAttributeExtractorServiceobject.
-
buildModel
protected Map<String,Object> buildModel(org.alfresco.repo.web.scripts.workflow.WorkflowModelBuilder modelBuilder, org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.Status status, org.springframework.extensions.webscripts.Cache cache) - Overrides:
buildModelin classorg.alfresco.repo.web.scripts.workflow.TaskInstancesGet
-
buildbeCPGModel
private Map<String,Object> buildbeCPGModel(org.alfresco.repo.web.scripts.workflow.WorkflowModelBuilder modelBuilder, org.alfresco.service.cmr.workflow.WorkflowTask task, List<String> properties, List<AttributeExtractorField> extraProperties) buildbeCPGModel.
-
extractSort
extractSort.
- Parameters:
parameter- aStringobject- Returns:
- a
QNameobject
-
getProperties
Retrieves the list of property names to include in the response. -
getPooledTasks
Retrieves the pooledTasks parameter. -
getState
private org.alfresco.service.cmr.workflow.WorkflowTaskState getState(org.springframework.extensions.webscripts.WebScriptRequest req) Gets the specifiedWorkflowTaskState, null if not requested -
getAuthority
Returns the specified authority. If no authority is specified then returns the current Fully Authenticated user. -
matches
private boolean matches(org.alfresco.service.cmr.workflow.WorkflowTask task, Map<String, Object> filters) Determine if the given task should be included in the response.
-