public abstract class AbstractArchivedNodeWebScript
extends org.springframework.extensions.webscripts.DeclarativeWebScript
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ARCHIVED_BY |
static java.lang.String |
ARCHIVED_DATE |
static int |
DEFAULT_MAX_ITEMS_PER_PAGE |
static java.lang.String |
DELETED_NODES |
static java.lang.String |
DESCRIPTION |
static java.lang.String |
DISPLAY_PATH |
static java.lang.String |
FIRST_NAME |
static java.lang.String |
LAST_NAME |
protected int |
maxSizeView |
static java.lang.String |
NAME |
static java.lang.String |
NODE_TYPE |
protected org.alfresco.repo.node.archive.NodeArchiveService |
nodeArchiveService |
static java.lang.String |
NODEREF |
protected org.alfresco.service.ServiceRegistry |
serviceRegistry |
static java.lang.String |
TITLE |
static java.lang.String |
USER_NAME |
Constructor and Description |
---|
AbstractArchivedNodeWebScript() |
Modifier and Type | Method and Description |
---|---|
protected org.alfresco.query.PagingResults |
getArchivedNodesFrom(org.alfresco.service.cmr.repository.StoreRef storeRef,
org.alfresco.util.ScriptPagingDetails paging,
java.lang.String filter)
* This method gets all nodes from the archive which were originally
contained within the specified StoreRef.
|
protected int |
getIntParameter(org.springframework.extensions.webscripts.WebScriptRequest req,
java.lang.String paramName,
int defaultValue)
Retrieves the named parameter as an integer, if the parameter is not present the default value is returned
|
protected org.alfresco.service.cmr.repository.NodeRef |
parseRequestForNodeRef(org.springframework.extensions.webscripts.WebScriptRequest req) |
protected org.alfresco.service.cmr.repository.StoreRef |
parseRequestForStoreRef(org.springframework.extensions.webscripts.WebScriptRequest req) |
void |
setMaxSizeView(int maxSizeView)
Sets the maxSizeView
|
void |
setNodeArchiveService(org.alfresco.repo.node.archive.NodeArchiveService nodeArchiveService)
Sets the nodeArchiveService instance
|
void |
setServiceRegistry(org.alfresco.service.ServiceRegistry serviceRegistry)
Sets the serviceRegistry instance
|
protected void |
validatePermission(org.alfresco.service.cmr.repository.NodeRef nodeRef,
java.lang.String currentUser) |
execute, executeFinallyImpl, executeImpl, executeImpl, executeImpl, getTemplateModel, renderFormatTemplate
addModuleBundleToCache, checkModuleBundleCache, createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toString
public static final java.lang.String NAME
public static final java.lang.String TITLE
public static final java.lang.String DESCRIPTION
public static final java.lang.String NODEREF
public static final java.lang.String ARCHIVED_BY
public static final java.lang.String ARCHIVED_DATE
public static final java.lang.String DISPLAY_PATH
public static final java.lang.String USER_NAME
public static final java.lang.String FIRST_NAME
public static final java.lang.String LAST_NAME
public static final java.lang.String NODE_TYPE
public static final java.lang.String DELETED_NODES
public static final int DEFAULT_MAX_ITEMS_PER_PAGE
protected org.alfresco.service.ServiceRegistry serviceRegistry
protected org.alfresco.repo.node.archive.NodeArchiveService nodeArchiveService
protected int maxSizeView
public void setServiceRegistry(org.alfresco.service.ServiceRegistry serviceRegistry)
serviceRegistry
- the serviceRegistry to setpublic void setNodeArchiveService(org.alfresco.repo.node.archive.NodeArchiveService nodeArchiveService)
nodeArchiveService
- the nodeArchiveService to setpublic void setMaxSizeView(int maxSizeView)
maxSizeView
- the maxSizeViewprotected org.alfresco.service.cmr.repository.StoreRef parseRequestForStoreRef(org.springframework.extensions.webscripts.WebScriptRequest req)
protected org.alfresco.service.cmr.repository.NodeRef parseRequestForNodeRef(org.springframework.extensions.webscripts.WebScriptRequest req)
protected int getIntParameter(org.springframework.extensions.webscripts.WebScriptRequest req, java.lang.String paramName, int defaultValue)
req
- The WebScript requestparamName
- The name of parameter to look fordefaultValue
- The default value that should be returned if parameter is not present in request or if it is not positiveprotected org.alfresco.query.PagingResults getArchivedNodesFrom(org.alfresco.service.cmr.repository.StoreRef storeRef, org.alfresco.util.ScriptPagingDetails paging, java.lang.String filter)
storeRef
- mandatory store refpaging
- mandatory pagingfilter
- optional filterprotected void validatePermission(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.lang.String currentUser)
Copyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.