@groovy.util.logging.Slf4j @io.micronaut.security.annotation.Secured(value: OPERATOR) @io.micronaut.http.annotation.Controller(value: /scan) class ScanController extends org.simplemes.eframe.controller.BaseController
The controller for the core MES scan dashboard activities. Handles the basic barcode scan action.
Fields inherited from class | Fields |
---|---|
class org.simplemes.eframe.controller.BaseController |
__$stMC |
Type | Name and description |
---|---|
private ScanService |
scanService The actual scan service needed to process requests. |
Constructor and description |
---|
ScanController
() |
Type Params | Return Type | Name and description |
---|---|---|
|
io.micronaut.http.HttpResponse |
scan(java.lang.String body, java.security.Principal principal) Handle scan requests from the client (HTTP POST endpoint = '/scan'). |
|
org.simplemes.eframe.controller.StandardModelAndView |
scanActivity(io.micronaut.http.HttpRequest request, java.security.Principal principal) Displays the core scan activity page. |
Methods inherited from class | Name |
---|---|
class org.simplemes.eframe.controller.BaseController |
org.simplemes.eframe.controller.BaseController#error(io.micronaut.http.HttpRequest, java.lang.Throwable), org.simplemes.eframe.controller.BaseController#getMetaClass(), org.simplemes.eframe.controller.BaseController#setMetaClass(groovy.lang.MetaClass), org.simplemes.eframe.controller.BaseController#buildErrorResponse(java.lang.String), org.simplemes.eframe.controller.BaseController#buildOkResponse(java.lang.Object), org.simplemes.eframe.controller.BaseController#buildOkResponse(), org.simplemes.eframe.controller.BaseController#buildDeniedResponse(io.micronaut.http.HttpRequest, java.lang.String, java.security.Principal), org.simplemes.eframe.controller.BaseController#parseBody(io.micronaut.http.HttpRequest, java.lang.Class), org.simplemes.eframe.controller.BaseController#wait(long, int), org.simplemes.eframe.controller.BaseController#wait(), org.simplemes.eframe.controller.BaseController#wait(long), org.simplemes.eframe.controller.BaseController#equals(java.lang.Object), org.simplemes.eframe.controller.BaseController#toString(), org.simplemes.eframe.controller.BaseController#hashCode(), org.simplemes.eframe.controller.BaseController#getClass(), org.simplemes.eframe.controller.BaseController#notify(), org.simplemes.eframe.controller.BaseController#notifyAll(), org.simplemes.eframe.controller.BaseController#getProperty(java.lang.String), org.simplemes.eframe.controller.BaseController#setProperty(java.lang.String, java.lang.Object), org.simplemes.eframe.controller.BaseController#invokeMethod(java.lang.String, java.lang.Object) |
The actual scan service needed to process requests.
Handle scan requests from the client (HTTP POST endpoint = '/scan').
Body (JSON): ScanRequest
Response: JSON list ScanResponseInterface
Displays the core scan activity page.
request
- The request.principal
- The user logged in.Groovy Documentation