Class BaseAuditRetrievalWebScript

  • All Implemented Interfaces:
    org.springframework.extensions.webscripts.WebScript
    Direct Known Subclasses:
    AuditLogGet, AuditLogPost

    public class BaseAuditRetrievalWebScript
    extends StreamContent
    Base class for all audit retrieval webscripts.
    Author:
    Gavin Cornwell
    • Constructor Detail

      • BaseAuditRetrievalWebScript

        public BaseAuditRetrievalWebScript()
    • Method Detail

      • setRecordsManagementAuditService

        public void setRecordsManagementAuditService​(RecordsManagementAuditService rmAuditService)
        Sets the RecordsManagementAuditService instance
        Parameters:
        rmAuditService - The RecordsManagementAuditService instance
      • setNamespaceService

        public void setNamespaceService​(NamespaceService namespaceService)
        Sets the NamespaceService instance
        Parameters:
        namespaceService - The NamespaceService instance
      • parseQueryParameters

        protected RecordsManagementAuditQueryParameters parseQueryParameters​(org.springframework.extensions.webscripts.WebScriptRequest req)
        Parses the given request and builds an instance of RecordsManagementAuditQueryParameters to retrieve the relevant audit entries
        Parameters:
        req - The request
        Returns:
        RecordsManagementAuditQueryParameters instance
      • parseReportFormat

        protected RecordsManagementAuditService.ReportFormat parseReportFormat​(org.springframework.extensions.webscripts.WebScriptRequest req)
        Parses the given request for the format the audit report should be returned in
        Parameters:
        req - The request
        Returns:
        The format for the report