org.alfresco.filesys.repo.desk
Class JavaScriptDesktopAction

java.lang.Object
  extended by org.alfresco.filesys.alfresco.DesktopAction
      extended by org.alfresco.filesys.repo.desk.JavaScriptDesktopAction

public class JavaScriptDesktopAction
extends DesktopAction

Javascript Desktop Action Class

Run a server-side script against the target node(s).


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
JavaScriptDesktopAction()
          Class constructor
 
Method Summary
 java.lang.String getConfirmationString()
          Return the confirmation string to be displayed by the client
 java.lang.String getScript()
          Return the script data
 java.lang.String getScriptName()
          Get the script name
protected  ScriptService getScriptService()
          Get the script service
 void initializeAction(org.alfresco.config.ConfigElement global, org.alfresco.config.ConfigElement config, org.alfresco.jlan.server.filesys.DiskSharedDevice fileSys)
          Initialize the action
 DesktopResponse runAction(DesktopParams params)
          Run the desktop action
protected  void setScriptName(java.lang.String name)
          Set the script name
 
Methods inherited from class org.alfresco.filesys.alfresco.DesktopAction
equals, getAttributes, getContext, getDriver, getName, getPreProcessActions, getPseudoFile, getServiceRegistry, getWebappURL, hasAttribute, hasDebug, hasPreProcessAction, hasPseudoFile, hasWebappURL, setAttributes, setDebug, setName, setPreProcessActions, setPseudoFile, setWebappURL, standardInitialize, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavaScriptDesktopAction

public JavaScriptDesktopAction()
Class constructor

Method Detail

getConfirmationString

public java.lang.String getConfirmationString()
Return the confirmation string to be displayed by the client

Overrides:
getConfirmationString in class DesktopAction
Returns:
String

initializeAction

public void initializeAction(org.alfresco.config.ConfigElement global,
                             org.alfresco.config.ConfigElement config,
                             org.alfresco.jlan.server.filesys.DiskSharedDevice fileSys)
                      throws DesktopActionException
Initialize the action

Overrides:
initializeAction in class DesktopAction
Parameters:
global - ConfigElement
config - ConfigElement
fileSys - DiskSharedDevice
Throws:
DesktopActionException

runAction

public DesktopResponse runAction(DesktopParams params)
                          throws DesktopActionException
Run the desktop action

Specified by:
runAction in class DesktopAction
Parameters:
params - DesktopParams
Returns:
DesktopResponse
Throws:
DesktopActionException

getScriptService

protected final ScriptService getScriptService()
Get the script service

Returns:
ScriptService

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

protected final void setScriptName(java.lang.String name)
Set the script name

Parameters:
name - String


Copyright © 2005 - 2008 Alfresco Software, Inc. All Rights Reserved.