|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.genericattributes.service.entrytype.EntryTypeService
fr.paris.lutece.plugins.genericattributes.service.entrytype.AbstractEntryTypeUpload
public abstract class AbstractEntryTypeUpload
Abstract entry type for uploads
| Field Summary | |
|---|---|
protected static String |
ALL
|
protected static String |
COMMA
|
protected static String |
CONSTANT_EXPORT_BINARY
|
protected static String |
CONSTANT_FILE_MAX_SIZE
|
protected static String |
CONSTANT_MAX_FILES
|
protected static String |
PARAMETER_EXPORT_BINARY
|
protected static String |
PARAMETER_FILE_MAX_SIZE
|
protected static String |
PARAMETER_ID_RESPONSE
|
protected static String |
PARAMETER_MAX_FILES
|
| Constructor Summary | |
|---|---|
AbstractEntryTypeUpload()
|
|
| Method Summary | |
|---|---|
GenericAttributeError |
canUploadFiles(Entry entry,
List<org.apache.commons.fileupload.FileItem> listUploadedFileItems,
List<org.apache.commons.fileupload.FileItem> listFileItemsToUpload,
Locale locale)
Check if the file can be uploaded or not. |
protected String |
checkEntryData(javax.servlet.http.HttpServletRequest request,
Locale locale)
Check the entry data |
protected GenericAttributeError |
checkResponseData(Entry entry,
List<org.apache.commons.fileupload.FileItem> listFilesSource,
Locale locale,
javax.servlet.http.HttpServletRequest request)
Check the record field data |
abstract IGAAsyncUploadHandler |
getAsynchronousUploadHandler()
Get the asynchronous upload handler to use for entries of this type |
protected List<org.apache.commons.fileupload.FileItem> |
getFileSources(Entry entry,
javax.servlet.http.HttpServletRequest request)
Get the file source from the session |
fr.paris.lutece.util.ReferenceList |
getReferenceListRegularExpression(Entry entry,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of regular expression who is use in the template modify of the entry |
String |
getRequestData(Entry entry,
javax.servlet.http.HttpServletRequest request,
Locale locale)
Get the request data |
String |
getResponseValueForExport(Entry entry,
javax.servlet.http.HttpServletRequest request,
Response response,
Locale locale)
Get the response value associate to the entry to export in the file export |
String |
getResponseValueForRecap(Entry entry,
javax.servlet.http.HttpServletRequest request,
Response response,
Locale locale)
Get the response value associate to the entry to write in the recap |
abstract String |
getUrlDownloadFile(int nResponseId,
String strBaseUrl)
Get the URL to download the file of a response |
protected String |
getUrlDownloadImage(int nResponseId,
String strBaseUrl)
Get the URL to download a file of a response throw the image servlet. |
protected void |
setFields(Entry entry,
javax.servlet.http.HttpServletRequest request)
Set the list of fields |
void |
setResponseToStringValue(Entry entry,
Response response,
Locale locale)
toStringValue should stay null. |
| Methods inherited from class fr.paris.lutece.plugins.genericattributes.service.entrytype.EntryTypeService |
|---|
getResponseData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface fr.paris.lutece.plugins.genericattributes.service.entrytype.IEntryTypeService |
|---|
getTemplateCreate, getTemplateHtmlForm, getTemplateModify |
| Field Detail |
|---|
protected static final String PARAMETER_ID_RESPONSE
protected static final String PARAMETER_MAX_FILES
protected static final String PARAMETER_FILE_MAX_SIZE
protected static final String PARAMETER_EXPORT_BINARY
protected static final String CONSTANT_MAX_FILES
protected static final String CONSTANT_FILE_MAX_SIZE
protected static final String CONSTANT_EXPORT_BINARY
protected static final String ALL
protected static final String COMMA
| Constructor Detail |
|---|
public AbstractEntryTypeUpload()
| Method Detail |
|---|
public abstract IGAAsyncUploadHandler getAsynchronousUploadHandler()
public abstract String getUrlDownloadFile(int nResponseId,
String strBaseUrl)
nResponseId - The id of the response to download the file ofstrBaseUrl - The base URL
protected String getUrlDownloadImage(int nResponseId,
String strBaseUrl)
nResponseId - The id of the responsestrBaseUrl - The base URL
public GenericAttributeError canUploadFiles(Entry entry,
List<org.apache.commons.fileupload.FileItem> listUploadedFileItems,
List<org.apache.commons.fileupload.FileItem> listFileItemsToUpload,
Locale locale)
canUploadFiles in interface IEntryTypeServicecanUploadFiles in class EntryTypeServiceentry - The entrylistUploadedFileItems - the list of uploaded fileslistFileItemsToUpload - the list of files to uploadlocale - the locale
public String getResponseValueForExport(Entry entry,
javax.servlet.http.HttpServletRequest request,
Response response,
Locale locale)
getResponseValueForExport in interface IEntryTypeServicegetResponseValueForExport in class EntryTypeServiceentry - The entryrequest - the requestresponse - the response associate to the entrylocale - the locale
protected String checkEntryData(javax.servlet.http.HttpServletRequest request,
Locale locale)
request - the HTTP requestlocale - the locale
protected GenericAttributeError checkResponseData(Entry entry,
List<org.apache.commons.fileupload.FileItem> listFilesSource,
Locale locale,
javax.servlet.http.HttpServletRequest request)
entry - The entrylistFilesSource - the list of source files to uploadlocale - the localerequest - the HTTP request
protected List<org.apache.commons.fileupload.FileItem> getFileSources(Entry entry,
javax.servlet.http.HttpServletRequest request)
entry - The entryrequest - the HttpServletRequest
protected void setFields(Entry entry,
javax.servlet.http.HttpServletRequest request)
entry - The entryrequest - the HTTP request
public String getRequestData(Entry entry,
javax.servlet.http.HttpServletRequest request,
Locale locale)
getRequestData in interface IEntryTypeServicegetRequestData in class EntryTypeServiceentry - The entryrequest - HttpRequestlocale - the locale
public fr.paris.lutece.util.ReferenceList getReferenceListRegularExpression(Entry entry,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
getReferenceListRegularExpression in interface IEntryTypeServicegetReferenceListRegularExpression in class EntryTypeServiceentry - the entryplugin - the plugin
public void setResponseToStringValue(Entry entry,
Response response,
Locale locale)
null.
setResponseToStringValue in interface IEntryTypeServicesetResponseToStringValue in class EntryTypeServiceentry - The entryresponse - The responselocale - the locale - will use a default one if not specified
public String getResponseValueForRecap(Entry entry,
javax.servlet.http.HttpServletRequest request,
Response response,
Locale locale)
getResponseValueForRecap in interface IEntryTypeServicegetResponseValueForRecap in class EntryTypeServiceentry - The entryrequest - the requestresponse - the response associate to the entrylocale - the locale
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||