Class GetStatisticsWebScript

java.lang.Object
org.springframework.extensions.webscripts.AbstractWebScript
fr.becpg.repo.web.scripts.statistics.GetStatisticsWebScript
All Implemented Interfaces:
org.springframework.extensions.webscripts.WebScript

public class GetStatisticsWebScript extends org.springframework.extensions.webscripts.AbstractWebScript

GetStatisticsWebScript class.

Version:
$Id: $Id
Author:
matthieu
  • Nested Class Summary

    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 String
    Constant PARAM_ASCENDING_ORDER="asc"
    private static final String
    Constant PARAM_DB_ASCENDING_ORDER="dbAsc"
    private static final String
    Constant PARAM_FILTER="filter"
    private static final String
    Constant PARAM_MAX_RESULTS="maxResults"
    private static final String
    Constant PARAM_SORT_BY="sortBy"
    private static final String
    Constant PARAM_START_AFTER_ID="startAfterId"
    private static final String
    Constant PARAM_TYPE="type"
    private static final String
    Constant RESP_NEXT_START_AFTER_ID="nextStartAfterId"
    private static final String
    Constant RESP_SCAN_INTERRUPTED="scanInterrupted"
    private static final String
    Constant RESP_STATISTICS="statistics"
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private AuditQuery
    buildAuditQuery(org.springframework.extensions.webscripts.WebScriptRequest req)
    buildAuditQuery.
    void
    execute(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.WebScriptResponse res)
    private AuditType
    getAuditType.
    void
    Setter for the field beCPGAuditService.
    private void
    writePage(org.springframework.extensions.webscripts.WebScriptResponse res, AuditPage page)
    writePage.

    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

    • PARAM_TYPE

      private static final String PARAM_TYPE
      Constant PARAM_TYPE="type"
      See Also:
    • PARAM_SORT_BY

      private static final String PARAM_SORT_BY
      Constant PARAM_SORT_BY="sortBy"
      See Also:
    • PARAM_FILTER

      private static final String PARAM_FILTER
      Constant PARAM_FILTER="filter"
      See Also:
    • PARAM_MAX_RESULTS

      private static final String PARAM_MAX_RESULTS
      Constant PARAM_MAX_RESULTS="maxResults"
      See Also:
    • PARAM_ASCENDING_ORDER

      private static final String PARAM_ASCENDING_ORDER
      Constant PARAM_ASCENDING_ORDER="asc"
      See Also:
    • PARAM_DB_ASCENDING_ORDER

      private static final String PARAM_DB_ASCENDING_ORDER
      Constant PARAM_DB_ASCENDING_ORDER="dbAsc"
      See Also:
    • PARAM_START_AFTER_ID

      private static final String PARAM_START_AFTER_ID
      Constant PARAM_START_AFTER_ID="startAfterId"
      See Also:
    • RESP_STATISTICS

      private static final String RESP_STATISTICS
      Constant RESP_STATISTICS="statistics"
      See Also:
    • RESP_NEXT_START_AFTER_ID

      private static final String RESP_NEXT_START_AFTER_ID
      Constant RESP_NEXT_START_AFTER_ID="nextStartAfterId"
      See Also:
    • RESP_SCAN_INTERRUPTED

      private static final String RESP_SCAN_INTERRUPTED
      Constant RESP_SCAN_INTERRUPTED="scanInterrupted"
      See Also:
    • beCPGAuditService

      private BeCPGAuditService beCPGAuditService
  • Constructor Details

    • GetStatisticsWebScript

      public GetStatisticsWebScript()
  • Method Details

    • setBeCPGAuditService

      public void setBeCPGAuditService(BeCPGAuditService beCPGAuditService)

      Setter for the field beCPGAuditService.

      Parameters:
      beCPGAuditService - a BeCPGAuditService object
    • execute

      public void execute(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.WebScriptResponse res) throws IOException
      Throws:
      IOException
    • buildAuditQuery

      private AuditQuery buildAuditQuery(org.springframework.extensions.webscripts.WebScriptRequest req)

      buildAuditQuery.

      Parameters:
      req - a WebScriptRequest object
      Returns:
      a AuditQuery object
    • writePage

      private void writePage(org.springframework.extensions.webscripts.WebScriptResponse res, AuditPage page) throws IOException

      writePage.

      Parameters:
      res - a WebScriptResponse object
      page - a AuditPage object
      Throws:
      IOException - if the response cannot be written
    • getAuditType

      private AuditType getAuditType(String reqType)

      getAuditType.

      Parameters:
      reqType - a String object
      Returns:
      a AuditType object