Class AbstractAuditWebScript

java.lang.Object
org.springframework.extensions.webscripts.AbstractWebScript
org.springframework.extensions.webscripts.DeclarativeWebScript
org.alfresco.repo.web.scripts.audit.AbstractAuditWebScript
All Implemented Interfaces:
org.springframework.extensions.webscripts.WebScript
Direct Known Subclasses:
AuditClearPost, AuditControlGet, AuditControlPost, AuditEntryDelete, AuditQueryGet

public abstract class AbstractAuditWebScript extends org.springframework.extensions.webscripts.DeclarativeWebScript
Abstract implementation for scripts that access the AuditService.
Since:
3.4
Author:
Derek Hulley
  • Field Details

  • Constructor Details

    • AbstractAuditWebScript

      public AbstractAuditWebScript()
  • Method Details

    • setAuditService

      public void setAuditService(AuditService auditService)
      Parameters:
      auditService - the service that provides the actual data
    • getI18NMessage

      protected String getI18NMessage(String key, Object... args)
      Return an I18N'd message for the given key or the key itself if not present
      Parameters:
      args - arguments to replace the variables in the message
    • getParamAppName

      protected final String getParamAppName(org.springframework.extensions.webscripts.WebScriptRequest req)
      Get the application name from the request.
      Returns:
      Returns the application name or null if not present
    • getId

      protected Long getId(org.springframework.extensions.webscripts.WebScriptRequest req)
      Get the entry id from the request.
      Returns:
      Returns the id or null if not present
    • getParamPath

      protected String getParamPath(org.springframework.extensions.webscripts.WebScriptRequest req)
      Get the path from the request.
      Returns:
      Returns the path or null if not present
    • getParamEnableDisable

      protected boolean getParamEnableDisable(org.springframework.extensions.webscripts.WebScriptRequest req)
    • getParamValue

      protected String getParamValue(org.springframework.extensions.webscripts.WebScriptRequest req)
    • getParamValueType

      protected String getParamValueType(org.springframework.extensions.webscripts.WebScriptRequest req)
    • getParamFromTime

      protected Long getParamFromTime(org.springframework.extensions.webscripts.WebScriptRequest req)
      See Also:
    • getParamToTime

      protected Long getParamToTime(org.springframework.extensions.webscripts.WebScriptRequest req)
      See Also:
    • getParamFromId

      protected Long getParamFromId(org.springframework.extensions.webscripts.WebScriptRequest req)
      See Also:
    • getParamToId

      protected Long getParamToId(org.springframework.extensions.webscripts.WebScriptRequest req)
      See Also:
    • getParamUser

      protected String getParamUser(org.springframework.extensions.webscripts.WebScriptRequest req)
      See Also:
    • getParamForward

      protected boolean getParamForward(org.springframework.extensions.webscripts.WebScriptRequest req)
      See Also:
    • getParamLimit

      protected int getParamLimit(org.springframework.extensions.webscripts.WebScriptRequest req)
      See Also:
    • getParamVerbose

      protected boolean getParamVerbose(org.springframework.extensions.webscripts.WebScriptRequest req)
      See Also: