public interface IOcrProvider extends Serializable
getKey( ) must return the unique key.getDisplayedName( ) will be displayed in reference lists.| Modifier and Type | Method and Description |
|---|---|
String |
getConfigHtmlCode(fr.paris.lutece.util.ReferenceList listEntry,
int nIdTargetEntry,
String strResourceType)
Gets the html template configuration
|
String |
getDisplayedName()
Gets the displayed name
|
fr.paris.lutece.util.ReferenceItem |
getFieldById(int idField)
Gets the field by id.
|
String |
getHtmlCode(int nIdTargetEntry,
String strResourceType)
Gets the html template
|
String |
getKey()
Gets the key.
|
fr.paris.lutece.util.ReferenceList |
getListField()
Gets the list field.
|
Object |
getParameter(int nKey)
returns the Parameter class contains all the parameters of the map
|
List<Response> |
process(org.apache.commons.fileupload.FileItem fileUploaded,
int nIdTargetEntry,
String strResourceType)
Call WS OCR with the uploaded file.
|
fr.paris.lutece.util.ReferenceItem |
toRefItem()
Builds a new
ReferenceItem for the type document provider.key == getKey( ), value == getDisplayedName( ) |
String getKey()
String getDisplayedName()
String getHtmlCode(int nIdTargetEntry, String strResourceType)
nIdTargetEntry - The File reading entry idstrResourceType - the resource typeString getConfigHtmlCode(fr.paris.lutece.util.ReferenceList listEntry, int nIdTargetEntry, String strResourceType)
lisEntry - The entry list to mapping for prefillnIdTargetEntry - The File reading entry idstrResourceType - the resource typefr.paris.lutece.util.ReferenceItem toRefItem()
ReferenceItem for the type document provider.key == getKey( ), value == getDisplayedName( )Object getParameter(int nKey)
fr.paris.lutece.util.ReferenceList getListField()
fr.paris.lutece.util.ReferenceItem getFieldById(int idField)
idField - the id fieldList<Response> process(org.apache.commons.fileupload.FileItem fileUploaded, int nIdTargetEntry, String strResourceType) throws Exception
fileUploaded - fileUploadednIdTargetEntry - The File reading entry idstrResourceType - the resource typeExceptionCopyright © 2021 City of Paris. All rights reserved.