Interface IOcrProvider
-
- All Superinterfaces:
java.io.Serializable
public interface IOcrProvider extends java.io.SerializableIOcrProvider : type document provider for automatic reading of documents
getKey( )must return the unique key.getDisplayedName( )will be displayed in reference lists.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetConfigHtmlCode(fr.paris.lutece.util.ReferenceList listEntry, int nIdTargetEntry, java.lang.String strResourceType)Gets the html template configurationjava.lang.StringgetDisplayedName()Gets the displayed namefr.paris.lutece.util.ReferenceItemgetFieldById(int idField)Gets the field by id.java.lang.StringgetHtmlCode(int nIdTargetEntry, java.lang.String strResourceType)Gets the html templatejava.lang.StringgetKey()Gets the key.fr.paris.lutece.util.ReferenceListgetListField()Gets the list field.java.lang.ObjectgetParameter(int nKey)returns the Parameter class contains all the parameters of the mapjava.util.List<Response>process(org.apache.commons.fileupload.FileItem fileUploaded, int nIdTargetEntry, java.lang.String strResourceType)Call WS OCR with the uploaded file.fr.paris.lutece.util.ReferenceItemtoRefItem()Builds a newReferenceItemfor the type document provider.
key == getKey( ),value == getDisplayedName( )
-
-
-
Method Detail
-
getKey
java.lang.String getKey()
Gets the key. This key must be unique.- Returns:
- the key;
-
getDisplayedName
java.lang.String getDisplayedName()
Gets the displayed name- Returns:
- the displayed name
-
getHtmlCode
java.lang.String getHtmlCode(int nIdTargetEntry, java.lang.String strResourceType)Gets the html template- Parameters:
nIdTargetEntry- The File reading entry idstrResourceType- the resource type- Returns:
- the html template
-
getConfigHtmlCode
java.lang.String getConfigHtmlCode(fr.paris.lutece.util.ReferenceList listEntry, int nIdTargetEntry, java.lang.String strResourceType)Gets the html template configuration- Parameters:
listEntry- The entry list to mapping for prefillnIdTargetEntry- The File reading entry idstrResourceType- the resource type- Returns:
- the the html template
-
toRefItem
fr.paris.lutece.util.ReferenceItem toRefItem()
Builds a newReferenceItemfor the type document provider.
key == getKey( ),value == getDisplayedName( )- Returns:
- the item created.
-
getParameter
java.lang.Object getParameter(int nKey)
returns the Parameter class contains all the parameters of the map- Returns:
- the Parameter
-
getListField
fr.paris.lutece.util.ReferenceList getListField()
Gets the list field.- Returns:
- the list field
-
getFieldById
fr.paris.lutece.util.ReferenceItem getFieldById(int idField)
Gets the field by id.- Parameters:
idField- the id field- Returns:
- the field by id
-
process
java.util.List<Response> process(org.apache.commons.fileupload.FileItem fileUploaded, int nIdTargetEntry, java.lang.String strResourceType) throws java.lang.Exception
Call WS OCR with the uploaded file.- Parameters:
fileUploaded- fileUploadednIdTargetEntry- The File reading entry idstrResourceType- the resource type- Returns:
- the Ocr result
- Throws:
java.lang.Exception
-
-