Package org.alfresco.filesys.repo.desk
Class JavaScriptDesktopAction
- java.lang.Object
-
- org.alfresco.filesys.alfresco.DesktopAction
-
- org.alfresco.filesys.repo.desk.JavaScriptDesktopAction
-
public class JavaScriptDesktopAction extends DesktopAction
Javascript Desktop Action ClassRun a server-side script against the target node(s).
- Author:
- gkspencer
-
-
Field Summary
-
Fields inherited from class org.alfresco.filesys.alfresco.DesktopAction
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 Summary
Constructors Constructor Description JavaScriptDesktopAction()Class constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetConfirmationString()Return the confirmation string to be displayed by the clientjava.lang.StringgetScript()Return the script datajava.lang.StringgetScriptName()Get the script namevoidinitializeAction(ServiceRegistry serviceRegistry, AlfrescoContext filesysContext)Initialize the desktop actionDesktopResponserunAction(DesktopParams params)Run the desktop actionvoidsetAttributeList(java.lang.String attributes)Set the action attributesvoidsetPreprocess(java.lang.String preProcessActions)Set the client side pre-processing actionsvoidsetScriptName(java.lang.String name)Set the script namevoidstandardInitialize(org.springframework.extensions.config.ConfigElement global, org.springframework.extensions.config.ConfigElement config, org.alfresco.jlan.server.filesys.DiskSharedDevice fileSys)Perform standard desktop action initialization-
Methods inherited from class org.alfresco.filesys.alfresco.DesktopAction
equals, getAttributes, getContext, getName, getPreProcessActions, getPseudoFile, getServiceRegistry, getWebappURL, hasAttribute, hasDebug, hasPreProcessAction, hasPseudoFile, hasWebappURL, initializeAction, setAttributes, setDebug, setFilename, setName, setPath, setPreProcessActions, setPseudoFile, setServiceRegistry, setWebappURL, toString
-
-
-
-
Method Detail
-
getConfirmationString
public java.lang.String getConfirmationString()
Return the confirmation string to be displayed by the client- Overrides:
getConfirmationStringin classDesktopAction- Returns:
- String
-
standardInitialize
public void standardInitialize(org.springframework.extensions.config.ConfigElement global, org.springframework.extensions.config.ConfigElement config, org.alfresco.jlan.server.filesys.DiskSharedDevice fileSys) throws DesktopActionExceptionPerform standard desktop action initialization- Overrides:
standardInitializein classDesktopAction- Parameters:
global- ConfigElementconfig- ConfigElementfileSys- DiskSharedDevice- Throws:
DesktopActionException
-
initializeAction
public void initializeAction(ServiceRegistry serviceRegistry, AlfrescoContext filesysContext) throws DesktopActionException
Description copied from class:DesktopActionInitialize the desktop action- Overrides:
initializeActionin classDesktopAction- Throws:
DesktopActionException
-
runAction
public DesktopResponse runAction(DesktopParams params) throws DesktopActionException
Run the desktop action- Specified by:
runActionin classDesktopAction- Parameters:
params- DesktopParams- Returns:
- DesktopResponse
- Throws:
DesktopActionException
-
getScriptName
public final java.lang.String getScriptName()
Get the script name- Returns:
- String
-
getScript
public final java.lang.String getScript()
Return the script data- Returns:
- String
-
setScriptName
public final void setScriptName(java.lang.String name)
Set the script name- Parameters:
name- String
-
setAttributeList
public void setAttributeList(java.lang.String attributes) throws DesktopActionExceptionSet the action attributes- Parameters:
attributes- String- Throws:
DesktopActionException
-
setPreprocess
public void setPreprocess(java.lang.String preProcessActions) throws DesktopActionExceptionSet the client side pre-processing actions- Parameters:
preProcessActions- String- Throws:
DesktopActionException
-
-