|
||||||||||
| 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
|
| Fields inherited from interface fr.paris.lutece.plugins.genericattributes.service.entrytype.IEntryTypeService |
|---|
FIELD_COMMENT, FIELD_CONFIRM_FIELD_TITLE, FIELD_HEIGHT, FIELD_INSERT_GROUP, FIELD_MAX_SIZE_ENTER, FIELD_TITLE, FIELD_WIDTH, MESSAGE_CONFIRM_FIELD, MESSAGE_MANDATORY_FIELD, MESSAGE_MAXLENGTH, MESSAGE_MYLUTECE_AUTHENTIFICATION_REQUIRED, MESSAGE_NUMERIC_FIELD, MESSAGE_UNIQUE_FIELD, MESSAGE_XSS_FIELD, PARAMETER_COMMENT, PARAMETER_CONFIRM_FIELD, PARAMETER_CONFIRM_FIELD_TITLE, PARAMETER_CSS_CLASS, PARAMETER_ERROR_MESSAGE, PARAMETER_FIELD_IN_LINE, PARAMETER_HEIGHT, PARAMETER_HELP_MESSAGE, PARAMETER_MANDATORY, PARAMETER_MAX_SIZE_ENTER, PARAMETER_TITLE, PARAMETER_UNIQUE, PARAMETER_VALUE, PARAMETER_WIDTH, PREFIX_ATTRIBUTE, SUFFIX_CONFIRM_FIELD |
| 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.html.Paginator<?> |
getPaginator(Entry entry,
int nItemPerPage,
String strBaseUrl,
String strPageIndexParameterName,
String strPageIndex)
The paginator who is use in the template modify of the entry |
fr.paris.lutece.portal.web.util.LocalizedPaginator<?> |
getPaginator(Entry entry,
int nItemPerPage,
String strBaseUrl,
String strPageIndexParameterName,
String strPageIndex,
Locale locale)
The paginator who is use in the template modify of the entry |
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 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 |
|---|
getHtmlCode, getTemplateCreate, 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
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.html.Paginator<?> getPaginator(Entry entry,
int nItemPerPage,
String strBaseUrl,
String strPageIndexParameterName,
String strPageIndex)
getPaginator in interface IEntryTypeServicegetPaginator in class EntryTypeServiceentry - The entrynItemPerPage - Number of items to display per pagestrBaseUrl - The base Url for build links on each page linkstrPageIndexParameterName - The parameter name for the page indexstrPageIndex - The current page index
public fr.paris.lutece.portal.web.util.LocalizedPaginator<?> getPaginator(Entry entry,
int nItemPerPage,
String strBaseUrl,
String strPageIndexParameterName,
String strPageIndex,
Locale locale)
getPaginator in interface IEntryTypeServicegetPaginator in class EntryTypeServiceentry - The entrynItemPerPage - Number of items to display per pagestrBaseUrl - The base Url for build links on each page linkstrPageIndexParameterName - The parameter name for the page indexstrPageIndex - The current page indexlocale - 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 | |||||||||