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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.extensions.webscripts.AbstractWebScript
org.springframework.extensions.webscripts.AbstractWebScript.ScriptDetails
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AuditService
static final boolean
static final boolean
static final Long
static final Long
static final int
static final Long
static final Long
static final String
static final boolean
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
protected final org.apache.commons.logging.Log
Logger that can be used by subclasses.static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
getI18NMessage
(String key, Object... args) Return an I18N'd message for the given key or the key itself if not presentprotected Long
getId
(org.springframework.extensions.webscripts.WebScriptRequest req) Get the entry id from the request.protected final String
getParamAppName
(org.springframework.extensions.webscripts.WebScriptRequest req) Get the application name from the request.protected boolean
getParamEnableDisable
(org.springframework.extensions.webscripts.WebScriptRequest req) protected boolean
getParamForward
(org.springframework.extensions.webscripts.WebScriptRequest req) protected Long
getParamFromId
(org.springframework.extensions.webscripts.WebScriptRequest req) protected Long
getParamFromTime
(org.springframework.extensions.webscripts.WebScriptRequest req) protected int
getParamLimit
(org.springframework.extensions.webscripts.WebScriptRequest req) protected String
getParamPath
(org.springframework.extensions.webscripts.WebScriptRequest req) Get the path from the request.protected Long
getParamToId
(org.springframework.extensions.webscripts.WebScriptRequest req) protected Long
getParamToTime
(org.springframework.extensions.webscripts.WebScriptRequest req) protected String
getParamUser
(org.springframework.extensions.webscripts.WebScriptRequest req) protected String
getParamValue
(org.springframework.extensions.webscripts.WebScriptRequest req) protected String
getParamValueType
(org.springframework.extensions.webscripts.WebScriptRequest req) protected boolean
getParamVerbose
(org.springframework.extensions.webscripts.WebScriptRequest req) void
setAuditService
(AuditService auditService) Methods inherited from class org.springframework.extensions.webscripts.DeclarativeWebScript
execute, executeFinallyImpl, executeImpl, 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
-
Field Details
-
PARAM_APPLICATION
- See Also:
-
PARAM_PATH
- See Also:
-
PARAM_ENABLE
- See Also:
-
PARAM_VALUE
- See Also:
-
PARAM_VALUE_TYPE
- See Also:
-
PARAM_FROM_TIME
- See Also:
-
PARAM_TO_TIME
- See Also:
-
PARAM_FROM_ID
- See Also:
-
PARAM_TO_ID
- See Also:
-
PARAM_USER
- See Also:
-
PARAM_FORWARD
- See Also:
-
PARAM_LIMIT
- See Also:
-
PARAM_VERBOSE
- See Also:
-
DEFAULT_FROM_TIME
-
DEFAULT_TO_TIME
-
DEFAULT_FROM_ID
-
DEFAULT_TO_ID
-
DEFAULT_USER
-
DEFAULT_FORWARD
public static final boolean DEFAULT_FORWARD- See Also:
-
DEFAULT_LIMIT
public static final int DEFAULT_LIMIT- See Also:
-
DEFAULT_VERBOSE
public static final boolean DEFAULT_VERBOSE- See Also:
-
DEFAULT_ENABLE
public static final boolean DEFAULT_ENABLE- See Also:
-
JSON_KEY_ENABLED
- See Also:
-
JSON_KEY_APPLICATIONS
- See Also:
-
JSON_KEY_NAME
- See Also:
-
JSON_KEY_PATH
- See Also:
-
JSON_KEY_CLEARED
- See Also:
-
JSON_KEY_DELETED
- See Also:
-
JSON_KEY_ENTRY_COUNT
- See Also:
-
JSON_KEY_ENTRIES
- See Also:
-
JSON_KEY_ENTRY_ID
- See Also:
-
JSON_KEY_ENTRY_APPLICATION
- See Also:
-
JSON_KEY_ENTRY_USER
- See Also:
-
JSON_KEY_ENTRY_TIME
- See Also:
-
JSON_KEY_ENTRY_VALUES
- See Also:
-
logger
protected final org.apache.commons.logging.Log loggerLogger that can be used by subclasses. -
auditService
-
-
Constructor Details
-
AbstractAuditWebScript
public AbstractAuditWebScript()
-
-
Method Details
-
setAuditService
- Parameters:
auditService
- the service that provides the actual data
-
getI18NMessage
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
Get the entry id from the request.- Returns:
- Returns the id or null if not present
-
getParamPath
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
-
getParamValueType
-
getParamFromTime
- See Also:
-
getParamToTime
- See Also:
-
getParamFromId
- See Also:
-
getParamToId
- See Also:
-
getParamUser
- 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:
-