com.ibm.commerce.command

Class WebAssetsUploadCmdImpl

  • All Implemented Interfaces:
    AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, TempUploadCmd, WebAssetsUploadCmd, Protectable, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable


    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.

    See Also:
    Serialized Form
    • Constructor Detail

      • WebAssetsUploadCmdImpl

        public WebAssetsUploadCmdImpl()
    • Method Detail

      • constructFileString

        public java.lang.String constructFileString()
        This method gets the constructed file string.
        Overrides:
        constructFileString in class TempUploadCmdImpl
        Returns:
        The constructed file string $wcsstore\storename\filepath\filename.