public class JavaScriptDesktopAction extends DesktopAction
Run a server-side script against the target node(s).
AttrAlfrescoFiles, AttrAlfrescoFolders, AttrAllowNoParams, AttrAnyFiles, AttrAnyFilesFolders, AttrAnyFolders, AttrClientFiles, AttrClientFolders, AttrMultiplePaths, AttrTargetFiles, AttrTargetFolders, logger, PreConfirmAction, PreCopyToTarget, PreLocalToWorkingCopy, StsAccessDenied, StsAuthTicket, StsBadParameter, StsCommandLine, StsError, StsFileNotFound, StsLaunchURL, StsNoSuchAction, StsNotWorkingCopy, StsSuccess
Constructor and Description |
---|
JavaScriptDesktopAction()
Class constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getConfirmationString()
Return the confirmation string to be displayed by the client
|
String |
getScript()
Return the script data
|
String |
getScriptName()
Get the script name
|
void |
initializeAction(ServiceRegistry serviceRegistry,
AlfrescoContext filesysContext)
Initialize the desktop action
|
DesktopResponse |
runAction(DesktopParams params)
Run the desktop action
|
void |
setAttributeList(String attributes)
Set the action attributes
|
void |
setPreprocess(String preProcessActions)
Set the client side pre-processing actions
|
void |
setScriptName(String name)
Set the script name
|
void |
standardInitialize(org.springframework.extensions.config.ConfigElement global,
org.springframework.extensions.config.ConfigElement config,
org.alfresco.jlan.server.filesys.DiskSharedDevice fileSys)
Perform standard desktop action initialization
|
equals, getAttributes, getContext, getName, getPreProcessActions, getPseudoFile, getServiceRegistry, getWebappURL, hasAttribute, hasDebug, hasPreProcessAction, hasPseudoFile, hasWebappURL, initializeAction, setAttributes, setDebug, setFilename, setName, setPath, setPreProcessActions, setPseudoFile, setServiceRegistry, setWebappURL, toString
public String getConfirmationString()
getConfirmationString
in class DesktopAction
public void standardInitialize(org.springframework.extensions.config.ConfigElement global, org.springframework.extensions.config.ConfigElement config, org.alfresco.jlan.server.filesys.DiskSharedDevice fileSys) throws DesktopActionException
standardInitialize
in class DesktopAction
global
- ConfigElementconfig
- ConfigElementfileSys
- DiskSharedDeviceDesktopActionException
public void initializeAction(ServiceRegistry serviceRegistry, AlfrescoContext filesysContext) throws DesktopActionException
DesktopAction
initializeAction
in class DesktopAction
DesktopActionException
public DesktopResponse runAction(DesktopParams params) throws DesktopActionException
runAction
in class DesktopAction
params
- DesktopParamsDesktopActionException
public final String getScriptName()
public final String getScript()
public final void setScriptName(String name)
name
- Stringpublic void setAttributeList(String attributes) throws DesktopActionException
attributes
- StringDesktopActionException
public void setPreprocess(String preProcessActions) throws DesktopActionException
preProcessActions
- StringDesktopActionException
Copyright © 2005–2017 Alfresco Software. All rights reserved.