Package org.ametys.plugins.frontedition
Class UploadAction
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,ThreadSafe
,Action
Action for uploading a file and store it using the
UploadManager
from FO edition.-
Field Summary
Fields inherited from class org.ametys.plugins.core.upload.UploadAction
_uploadManager
Fields inherited from class org.apache.cocoon.acting.ServiceableAction
manager
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
_getUrlForDownload
(Upload upload) Get the url for download the uploaded fileprotected String
_getUrlForView
(Upload upload) Get the url for view the uploaded fileMethods inherited from class org.ametys.plugins.core.upload.UploadAction
_doUpload, _fillSuccess, _getPart, _handleStoreUploadException, _lookupComponents, _storeUpload, act
Methods inherited from class org.ametys.core.util.cocoon.AbstractCurrentUserProviderServiceableAction
_getCurrentUser
Methods inherited from class org.apache.cocoon.acting.ServiceableAction
service
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Constructor Details
-
UploadAction
public UploadAction()
-
-
Method Details
-
_getUrlForView
Description copied from class:UploadAction
Get the url for view the uploaded file- Overrides:
_getUrlForView
in classUploadAction
- Parameters:
upload
- The file uploaded- Returns:
- The url for view
-
_getUrlForDownload
Description copied from class:UploadAction
Get the url for download the uploaded file- Overrides:
_getUrlForDownload
in classUploadAction
- Parameters:
upload
- The file uploaded- Returns:
- The url for view
-