public class WebAssetsUploadCmdImpl extends TempUploadCmdImpl implements WebAssetsUploadCmd
This class defines how web assets are uploaded to the file system.
The location will be $wcsstore\storename\filepath\filename
.
$wcsstore
is from the instance's configuration file.
storename
is based on the store_id
from the command context.
filepath
is user-specified.
filename
is the file to be uploaded. For example: storelogo.gif
.
The user can specify a rename, which includes the file extension. For example: myicon.gif
.
In this case, uploaded file will be renamed to myicon.gif
.
A unique filename will not be generated. If the uploaded file already exists, it will be overwritten.
This is not registered in the URL
configuration or the command configuration.
This interface is not intended to be used directly. It should be extended by other commands.
There is no access control management. If a command extends this interface, access control checking
will need to be implemented.
In order to write a command which extends this interface, the attachment configuration section in
the <instance_name>.xml
file needs to be set up.
defaultCommandClassName
Constructor and Description |
---|
WebAssetsUploadCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
constructFileString()
This method gets the constructed file string.
|
getAttachmentOwner, getAttachmentURL, getErrorURL, getFileName, getFilePath, getFileSize, getRename, getRootPath, getStoreName, getUrl, performExecute, setErrorURL, setFilePath, setRefCmd, setRename, setRequestProperties, setRootPath, setUrl, validateParameters
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAttachmentURL, getUrl
getAttachmentOwner, getFileName, getFileSize
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
fulfills, getOwner
public java.lang.String constructFileString()
constructFileString
in class TempUploadCmdImpl
$wcsstore\storename\filepath\filename
.