public abstract class DesktopAction extends Object
Modifier and Type | Field and Description |
---|---|
static int |
AttrAlfrescoFiles |
static int |
AttrAlfrescoFolders |
static int |
AttrAllowNoParams |
static int |
AttrAnyFiles |
static int |
AttrAnyFilesFolders |
static int |
AttrAnyFolders |
static int |
AttrClientFiles |
static int |
AttrClientFolders |
static int |
AttrMultiplePaths |
static int |
AttrTargetFiles |
static int |
AttrTargetFolders |
protected static org.apache.commons.logging.Log |
logger |
static int |
PreConfirmAction |
static int |
PreCopyToTarget |
static int |
PreLocalToWorkingCopy |
static int |
StsAccessDenied |
static int |
StsAuthTicket |
static int |
StsBadParameter |
static int |
StsCommandLine |
static int |
StsError |
static int |
StsFileNotFound |
static int |
StsLaunchURL |
static int |
StsNoSuchAction |
static int |
StsNotWorkingCopy |
static int |
StsSuccess |
Modifier | Constructor and Description |
---|---|
protected |
DesktopAction()
Default constructor
|
protected |
DesktopAction(int attr,
int preActions)
Class constructor
|
protected |
DesktopAction(String name)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Equality check
|
int |
getAttributes()
Return the desktop action attributes
|
String |
getConfirmationString()
Return the action confirmation string to be displayed by the client application
|
AlfrescoContext |
getContext()
Return the filesystem context
|
String |
getName()
Return the action name
|
int |
getPreProcessActions()
Return the desktop action pore-processing actions
|
org.alfresco.jlan.server.filesys.pseudo.PseudoFile |
getPseudoFile()
Return the associated pseudo file
|
ServiceRegistry |
getServiceRegistry()
Return the service registry
|
String |
getWebappURL()
Return the webapp URL
|
boolean |
hasAttribute(int attr)
Check for a specified action attribute
|
boolean |
hasDebug()
Check if debug output is enabled
|
boolean |
hasPreProcessAction(int pre)
Check for the specified pre-process action
|
boolean |
hasPseudoFile()
Check if the action has an associated pseudo file
|
boolean |
hasWebappURL()
Check if the webapp URL is set
|
void |
initializeAction(org.springframework.extensions.config.ConfigElement global,
org.springframework.extensions.config.ConfigElement config,
org.alfresco.jlan.server.filesys.DiskSharedDevice fileSys)
Initialize the desktop action
|
void |
initializeAction(ServiceRegistry serviceRegistry,
AlfrescoContext filesysContext)
Initialize the desktop action
|
abstract DesktopResponse |
runAction(DesktopParams params)
Run the desktop action
|
protected void |
setAttributes(int attr)
Set the action attributes
|
void |
setDebug(boolean ena)
Enable debug output
|
void |
setFilename(String filename)
Set the associated pseudo file name
|
void |
setName(String name)
Set the action name
|
void |
setPath(String path)
Set the physical path of the associated pseudo file
|
void |
setPreProcessActions(int pre)
Set the client side pre-processing actions
|
void |
setPseudoFile(org.alfresco.jlan.server.filesys.pseudo.PseudoFile pseudoFile)
Set the associated pseudo file
|
void |
setServiceRegistry(ServiceRegistry serviceRegistry) |
void |
setWebappURL(String urlStr)
Set the webapp URL
|
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
|
String |
toString()
Return the desktop action details as a string
|
protected static final org.apache.commons.logging.Log logger
public static final int AttrTargetFiles
public static final int AttrTargetFolders
public static final int AttrClientFiles
public static final int AttrClientFolders
public static final int AttrAlfrescoFiles
public static final int AttrAlfrescoFolders
public static final int AttrMultiplePaths
public static final int AttrAllowNoParams
public static final int AttrAnyFiles
public static final int AttrAnyFolders
public static final int AttrAnyFilesFolders
public static final int PreCopyToTarget
public static final int PreConfirmAction
public static final int PreLocalToWorkingCopy
public static final int StsSuccess
public static final int StsError
public static final int StsFileNotFound
public static final int StsAccessDenied
public static final int StsBadParameter
public static final int StsNotWorkingCopy
public static final int StsNoSuchAction
public static final int StsLaunchURL
public static final int StsCommandLine
public static final int StsAuthTicket
protected DesktopAction()
protected DesktopAction(int attr, int preActions)
attr
- intpreActions
- intprotected DesktopAction(String name)
name
- Stringpublic final int getAttributes()
public final boolean hasAttribute(int attr)
attr
- intpublic final int getPreProcessActions()
public final boolean hasPreProcessAction(int pre)
pre
- intpublic final String getName()
public final boolean hasPseudoFile()
public final org.alfresco.jlan.server.filesys.pseudo.PseudoFile getPseudoFile()
public final AlfrescoContext getContext()
public String getConfirmationString()
public final ServiceRegistry getServiceRegistry()
public final void setServiceRegistry(ServiceRegistry serviceRegistry)
public final boolean hasDebug()
public final boolean hasWebappURL()
public final String getWebappURL()
public void initializeAction(org.springframework.extensions.config.ConfigElement global, org.springframework.extensions.config.ConfigElement config, org.alfresco.jlan.server.filesys.DiskSharedDevice fileSys) throws DesktopActionException
global
- ConfigElementconfig
- ConfigElementfileSys
- DiskSharedDeviceDesktopActionException
public void standardInitialize(org.springframework.extensions.config.ConfigElement global, org.springframework.extensions.config.ConfigElement config, org.alfresco.jlan.server.filesys.DiskSharedDevice fileSys) throws DesktopActionException
global
- ConfigElementconfig
- ConfigElementfileSys
- DiskSharedDeviceDesktopActionException
public void initializeAction(ServiceRegistry serviceRegistry, AlfrescoContext filesysContext) throws DesktopActionException
DesktopActionException
public abstract DesktopResponse runAction(DesktopParams params) throws DesktopActionException
params
- DesktopParamsDesktopActionException
protected final void setAttributes(int attr)
attr
- intpublic final void setPreProcessActions(int pre)
pre
- intpublic final void setName(String name)
name
- Stringpublic final void setPseudoFile(org.alfresco.jlan.server.filesys.pseudo.PseudoFile pseudoFile)
pseudoFile
- PseudoFilepublic void setFilename(String filename)
filename
- the file namepublic void setPath(String path)
path
- the pathpublic final void setDebug(boolean ena)
ena
- booleanpublic final void setWebappURL(String urlStr)
urlStr
- Stringpublic boolean equals(Object obj)
Copyright © 2005–2017 Alfresco Software. All rights reserved.