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 Classes
    Modifier and Type
    Class
    Description
    private static class 
     
    private class 
     
    private static class 
     
    private static class 
     

    Nested classes/interfaces inherited from class org.alfresco.repo.web.scripts.workflow.AbstractWorkflowWebscript

    org.alfresco.repo.web.scripts.workflow.AbstractWorkflowWebscript.ExcludeFilter

    Nested classes/interfaces inherited from class org.springframework.extensions.webscripts.AbstractWebScript

    org.springframework.extensions.webscripts.AbstractWebScript.ScriptDetails
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
    private static final org.apache.commons.logging.Log
     
    static final String
    Constant PARAM_DIR="dir"
    static final String
    Constant PARAM_SEARCH="q"
    static final String
    Constant PARAM_SORT="sort"
    private static final org.alfresco.service.namespace.QName
     

    Fields 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_ID

    Fields 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
    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)
    private org.alfresco.service.namespace.QName
    extractSort(String parameter)
     
    private String
    getAuthority(org.springframework.extensions.webscripts.WebScriptRequest req)
    Returns the specified authority.
    private Boolean
    getPooledTasks(org.springframework.extensions.webscripts.WebScriptRequest req)
    Retrieves the pooledTasks parameter.
    private List<String>
    getProperties(org.springframework.extensions.webscripts.WebScriptRequest req)
    Retrieves the list of property names to include in the response.
    private org.alfresco.service.cmr.workflow.WorkflowTaskState
    getState(org.springframework.extensions.webscripts.WebScriptRequest req)
    Gets the specified WorkflowTaskState, null if not requested
    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.
    void
    Setter for the field attributeExtractorService.

    Methods inherited from class org.alfresco.repo.web.scripts.workflow.AbstractWorkflowWebscript

    applyPagination, createResultModel, executeImpl, getDateParameter, getIntParameter, isDateMatchForFilter, processDateFilter, setAuthenticationService, setAuthorityService, setDictionaryService, setNamespaceService, setNodeService, setPersonService, setWorkflowService

    Methods inherited from class org.springframework.extensions.webscripts.DeclarativeWebScript

    execute, executeFinallyImpl, executeImpl, executeImpl, getTemplateModel, renderFormatTemplate

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • LOGGER

      private static final org.apache.commons.logging.Log LOGGER
    • PARAM_SORT

      public static final String PARAM_SORT
      Constant PARAM_SORT="sort"
      See Also:
    • PARAM_DIR

      public static final String PARAM_DIR
      Constant PARAM_DIR="dir"
      See Also:
    • QNAME_INITIATOR

      private static final org.alfresco.service.namespace.QName QNAME_INITIATOR
    • attributeExtractorService

      private AttributeExtractorService attributeExtractorService
  • Constructor Details

    • BeCPGTaskInstancesGet

      public BeCPGTaskInstancesGet()
  • Method Details

    • setAttributeExtractorService

      public void setAttributeExtractorService(AttributeExtractorService attributeExtractorService)

      Setter for the field attributeExtractorService.

      Parameters:
      attributeExtractorService - a AttributeExtractorService object.
    • 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:
      buildModel in class org.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)
    • extractSort

      private org.alfresco.service.namespace.QName extractSort(String parameter)
    • getProperties

      private List<String> getProperties(org.springframework.extensions.webscripts.WebScriptRequest req)
      Retrieves the list of property names to include in the response.
      Parameters:
      req - The WebScript request
      Returns:
      List of property names
    • getPooledTasks

      private Boolean getPooledTasks(org.springframework.extensions.webscripts.WebScriptRequest req)
      Retrieves the pooledTasks parameter.
      Parameters:
      req - The WebScript request
      Returns:
      null if not present, Boolean object otherwise
    • getState

      private org.alfresco.service.cmr.workflow.WorkflowTaskState getState(org.springframework.extensions.webscripts.WebScriptRequest req)
      Gets the specified WorkflowTaskState, null if not requested
      Parameters:
      req - WebScriptRequest
      Returns:
      WorkflowTaskState
    • getAuthority

      private String getAuthority(org.springframework.extensions.webscripts.WebScriptRequest req)
      Returns the specified authority. If no authority is specified then returns the current Fully Authenticated user.
      Parameters:
      req - WebScriptRequest
      Returns:
      String
    • 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.
      Parameters:
      task - The task to check
      filters - The list of filters the task must match to be included
      Returns:
      true if the task matches and should therefore be returned