fr.paris.lutece.plugins.genericattributes.service.entrytype
Class AbstractEntryTypeFile
java.lang.Object
fr.paris.lutece.plugins.genericattributes.service.entrytype.EntryTypeService
fr.paris.lutece.plugins.genericattributes.service.entrytype.AbstractEntryTypeUpload
fr.paris.lutece.plugins.genericattributes.service.entrytype.AbstractEntryTypeFile
- All Implemented Interfaces:
- IEntryTypeService
public abstract class AbstractEntryTypeFile
- extends AbstractEntryTypeUpload
Abstract entries of type files. This abstract entry type extends the abstract
entry type upload.
| 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_NUMBER_COLUMNS, FIELD_NUMBER_ROWS, 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_NUMBER_COLUMNS, PARAMETER_NUMBER_ROWS, PARAMETER_TITLE, PARAMETER_UNIQUE, PARAMETER_VALUE, PARAMETER_WIDTH, PREFIX_ATTRIBUTE, SUFFIX_CONFIRM_FIELD |
| Methods inherited from class fr.paris.lutece.plugins.genericattributes.service.entrytype.AbstractEntryTypeUpload |
canUploadFiles, checkEntryData, checkResponseData, getFileSources, getReferenceListRegularExpression, getRequestData, getResponseValueForExport, getResponseValueForRecap, getUrlDownloadFile, getUrlDownloadImage, setFields, setResponseToStringValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractEntryTypeFile
public AbstractEntryTypeFile()
checkForImages
protected abstract boolean checkForImages()
- Check whether this entry type allows only images or every file type
- Returns:
- True if this entry type allows only images, false if it allow
every file type
getAsynchronousUploadHandler
public abstract AbstractAsynchronousUploadHandler getAsynchronousUploadHandler()
- Get the asynchronous upload handler to use for entries of this type
- Specified by:
getAsynchronousUploadHandler in class AbstractEntryTypeUpload
- Returns:
- The asynchronous upload handler to use for entries of this type
getResponseData
public GenericAttributeError getResponseData(Entry entry,
javax.servlet.http.HttpServletRequest request,
List<Response> listResponse,
Locale locale)
- Generate the list of responses associated with the given entry from the
request, and saved it into the Entry object.
- Specified by:
getResponseData in interface IEntryTypeService- Overrides:
getResponseData in class EntryTypeService
- Parameters:
entry - The entryrequest - HttpRequestlistResponse - the list of response associate to the entry. Newly
created response will be inserted in this list.locale - the locale
- Returns:
- a GenericAttributeError object if there is an error in the
response
Copyright © 2014 Mairie de Paris. All Rights Reserved.