Interface ZonalOCRService
- 
- All Superinterfaces:
 com.google.gwt.user.client.rpc.RemoteService
@RemoteServiceRelativePath("zonalocr") public interface ZonalOCRService extends com.google.gwt.user.client.rpc.RemoteServiceThe client side stub for the Zonal OCR. This service gives all needed methods to handle OCR templates. 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classZonalOCRService.Instance 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddelete(long templateId)Deletes a given templateGUIOCRTemplategetTemplate(long templateId)Loads a given template from the databasevoidmarkUnprocessable(long[] ids)Marks a set of documents as not processableGUIDocumentprocess(long docId)Processes the given documentvoidrescheduleAll()Reschedule all documents for processingGUIOCRTemplatesave(GUIOCRTemplate template)Creates or updates a templateGUIZoneupdateZone(GUIZone zone)Updates a single zone, if the zone does not exist it will be created 
 - 
 
- 
- 
Method Detail
- 
delete
void delete(long templateId) throws ServerExceptionDeletes a given template- Parameters:
 templateId- identifier of the template- Throws:
 ServerException- an error happened in the server application
 
- 
save
GUIOCRTemplate save(GUIOCRTemplate template) throws ServerException
Creates or updates a template- Parameters:
 template- the template to save- Returns:
 - the saved template
 - Throws:
 ServerException- an error happened in the server application
 
- 
updateZone
GUIZone updateZone(GUIZone zone) throws ServerException
Updates a single zone, if the zone does not exist it will be created- Parameters:
 zone- the zone to update- Returns:
 - the newly added zone
 - Throws:
 ServerException- an error happened in the server application
 
- 
getTemplate
GUIOCRTemplate getTemplate(long templateId) throws ServerException
Loads a given template from the database- Parameters:
 templateId- identifier of the template- Returns:
 - the template retrieved by the server application
 - Throws:
 ServerException- an error happened in the server application
 
- 
process
GUIDocument process(long docId) throws ServerException
Processes the given document- Parameters:
 docId- identifier of the document to process- Returns:
 - the processed document's representation
 - Throws:
 ServerException- an error happened during the Zonal OCR processing
 
- 
rescheduleAll
void rescheduleAll() throws ServerExceptionReschedule all documents for processing- Throws:
 ServerException- an error happened in the server application
 
- 
markUnprocessable
void markUnprocessable(long[] ids) throws ServerExceptionMarks a set of documents as not processable- Parameters:
 ids- document identifiers- Throws:
 ServerException- an error happened in the server application
 
 - 
 
 -