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
 void initializeAction(ServiceRegistry serviceRegistry, AlfrescoContext filesysContext)
          Initialize the desktop action
 DesktopResponse runAction(DesktopParams params)
          Run the desktop action
 void setAttributeList(java.lang.String attributes)
          Set the action attributes
 void setPreprocess(java.lang.String preProcessActions)
          Set the client side pre-processing actions
 void setScriptName(java.lang.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
 
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
 
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

standardInitialize

public void standardInitialize(org.springframework.extensions.config.ConfigElement global,
                               org.springframework.extensions.config.ConfigElement config,
                               org.alfresco.jlan.server.filesys.DiskSharedDevice fileSys)
                        throws DesktopActionException
Perform standard desktop action initialization

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

initializeAction

public void initializeAction(ServiceRegistry serviceRegistry,
                             AlfrescoContext filesysContext)
                      throws DesktopActionException
Description copied from class: DesktopAction
Initialize the desktop action

Overrides:
initializeAction in class DesktopAction
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

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 DesktopActionException
Set the action attributes

Parameters:
attributes - String
Throws:
DesktopActionException

setPreprocess

public void setPreprocess(java.lang.String preProcessActions)
                   throws DesktopActionException
Set the client side pre-processing actions

Parameters:
preProcessActions - String
Throws:
DesktopActionException


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