public abstract class AbstractArchivedNodeWebScript
extends org.springframework.extensions.webscripts.DeclarativeWebScript
| Modifier and Type | Field and Description |
|---|---|
static String |
ARCHIVED_BY |
static String |
ARCHIVED_DATE |
static int |
DEFAULT_MAX_ITEMS_PER_PAGE |
static String |
DELETED_NODES |
static String |
DESCRIPTION |
static String |
DISPLAY_PATH |
static String |
FIRST_NAME |
static String |
LAST_NAME |
protected int |
maxSizeView |
static String |
NAME |
static String |
NODE_TYPE |
protected org.alfresco.repo.node.archive.NodeArchiveService |
nodeArchiveService |
static String |
NODEREF |
protected org.alfresco.service.ServiceRegistry |
serviceRegistry |
static String |
TITLE |
static String |
USER_NAME |
| Constructor and Description |
|---|
AbstractArchivedNodeWebScript() |
| Modifier and Type | Method and Description |
|---|---|
protected org.alfresco.query.PagingResults<org.alfresco.service.cmr.repository.NodeRef> |
getArchivedNodesFrom(org.alfresco.service.cmr.repository.StoreRef storeRef,
org.alfresco.util.ScriptPagingDetails paging,
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,
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,
String currentUser) |
execute, executeFinallyImpl, executeImpl, executeImpl, executeImpl, getTemplateModel, renderFormatTemplateaddModuleBundleToCache, checkModuleBundleCache, createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toStringpublic static final String NAME
public static final String TITLE
public static final String DESCRIPTION
public static final String NODEREF
public static final String ARCHIVED_BY
public static final String ARCHIVED_DATE
public static final String DISPLAY_PATH
public static final String USER_NAME
public static final String FIRST_NAME
public static final String LAST_NAME
public static final String NODE_TYPE
public static final 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,
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<org.alfresco.service.cmr.repository.NodeRef> getArchivedNodesFrom(org.alfresco.service.cmr.repository.StoreRef storeRef,
org.alfresco.util.ScriptPagingDetails paging,
String filter)
storeRef - mandatory store refpaging - mandatory pagingfilter - optional filterprotected void validatePermission(org.alfresco.service.cmr.repository.NodeRef nodeRef,
String currentUser)
Copyright © 2005–2018 Alfresco Software. All rights reserved.