public abstract class AbstractArchivedNodeWebScript
extends org.springframework.extensions.webscripts.DeclarativeWebScript
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractArchivedNodeWebScript.ArchivedDateComparator
This class is used to sort ChildAssociationRefs into the correct order based on archivedDate.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ARCHIVED_BY |
static java.lang.String |
ARCHIVED_DATE |
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 |
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 java.util.SortedSet |
getArchivedNodesFrom(org.alfresco.service.cmr.repository.StoreRef storeRef)
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 |
setNodeArchiveService(org.alfresco.repo.node.archive.NodeArchiveService nodeArchiveService)
Sets the nodeArchiveService instance
|
void |
setServiceRegistry(org.alfresco.service.ServiceRegistry serviceRegistry)
Sets the serviceRegistry instance
|
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
protected org.alfresco.service.ServiceRegistry serviceRegistry
protected org.alfresco.repo.node.archive.NodeArchiveService nodeArchiveService
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 setprotected 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 java.util.SortedSet getArchivedNodesFrom(org.alfresco.service.cmr.repository.StoreRef storeRef)
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.