|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jalios.jcms.upload.UploadManager
public class UploadManager
| Field Summary | |
|---|---|
static String |
REVISION
|
| Method Summary | |
|---|---|
static UploadManager |
getInstance()
Returns a UploadManager. |
String |
getUploadComponent(JcmsJspContext ctxt,
String pfield)
Returns a String HTML component for upload. |
String |
getUploadComponent(JcmsJspContext ctxt,
String pfield,
String pdrop,
String pbrowse,
boolean showFiles,
boolean showLogs)
Returns a String HTML component for upload. |
Object |
getUploadedFile(JcmsContext ctxt,
String field,
boolean isFileDocument,
boolean override)
Performs upload for the given field to JCMS upload directory. |
List<DocUploadInfo> |
getUploadedFileList(JcmsContext ctxt,
String field,
boolean isFileDocument,
boolean override)
Performs upload for the given field to JCMS upload directory. |
void |
removeAllFileItem(JcmsJspContext ctxt,
String token,
String field)
|
org.apache.commons.fileupload.FileItem |
removeFileItem(JcmsJspContext ctxt,
String token,
String field,
String filename)
Remove from session the first FileItem with the given name |
Object |
retrieveFileItem(JcmsContext ctxt,
String token,
String field)
Retrieve from session FileItem or List stored in session |
DocUploadInfo |
retrieveUploadedFile(org.apache.commons.fileupload.FileItem item,
boolean isFileDocument,
boolean override)
Performs upload of a given FileItem to JCMS upload directory. |
void |
storeFileItem(JcmsJspContext ctxt,
String token,
String field,
org.apache.commons.fileupload.FileItem fileItem)
Store the given FileItem in session to be retrieved later by DocUpload mechanism. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String REVISION
| Method Detail |
|---|
public static UploadManager getInstance()
public String getUploadComponent(JcmsJspContext ctxt,
String pfield)
ctxt - the JcmsJspContextpfield - the field name
public String getUploadComponent(JcmsJspContext ctxt,
String pfield,
String pdrop,
String pbrowse,
boolean showFiles,
boolean showLogs)
ctxt - the JcmsJspContextpfield - the field namepdrop - (optional) label of the drop box (set null to bypass)pbrowse - (optional) label of the browse button (set null to bypass)showFiles - boolean true to generate list of filesshowLogs - boolean true to generate logs
public Object getUploadedFile(JcmsContext ctxt,
String field,
boolean isFileDocument,
boolean override)
ctxt - JcmsContextfield - the submited fieldisFileDocument - upload to a FileDocument path upload/docs/...override - If file already exists, override or rename with current timemillis
public List<DocUploadInfo> getUploadedFileList(JcmsContext ctxt,
String field,
boolean isFileDocument,
boolean override)
ctxt - JcmsContextfield - the submited fieldisFileDocument - upload to a FileDocument upload/docs/...override - If file already exists, override or rename with current timemillis
public DocUploadInfo retrieveUploadedFile(org.apache.commons.fileupload.FileItem item,
boolean isFileDocument,
boolean override)
item - the FileItem handling uploaded file informationisFileDocument - upload to a Filedocument path upload/docs/...override - If file already exists, override or rename with current timemillis
public void storeFileItem(JcmsJspContext ctxt,
String token,
String field,
org.apache.commons.fileupload.FileItem fileItem)
ctxt - the JcmsJspContexttoken - String the token used to store the object in session. It identify the page requestfield - String the field namefileItem - the FileItem to store
public org.apache.commons.fileupload.FileItem removeFileItem(JcmsJspContext ctxt,
String token,
String field,
String filename)
ctxt - the JcmsJspContexttoken - String the token used to store the object in session. It identify the page requestfield - String the field namefilename - String the name of the FileItem to remove
public void removeAllFileItem(JcmsJspContext ctxt,
String token,
String field)
public Object retrieveFileItem(JcmsContext ctxt,
String token,
String field)
ctxt - the JcmsJspContexttoken - String the token used to store the object in session. It identify the page requestfield - String the field name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||