@groovy.util.logging.Slf4j @io.micronaut.security.annotation.Secured(value: MANAGER) @io.micronaut.http.annotation.Controller(value: /order) @java.lang.SuppressWarnings(value: unused) class OrderController extends BaseCrudRestController
Handles the controller actions for the Order objects. Includes CRUD actions on the user.
Not shipped with the framework. Used for some GUI tests.
Modifiers | Name | Description |
---|---|---|
static int |
WORK_RECORD_COUNT |
The number of rows available for the dummy findWork() method. |
Fields inherited from class | Fields |
---|---|
class BaseController |
lastErrorMessage |
Type | Name and description |
---|---|
private static java.util.List<FindComponentResponseDetail> |
componentList The dummy component list values. |
private static java.lang.Object |
domainClass |
private static int |
suggestCount The number of times the suggest url is called. |
private static java.util.Map |
suggestLatestParameters The most recent parameters for the latest suggest request. |
private java.lang.Object |
taskMenuItems Defines the entry(s) in the main Task Menu. |
private static java.util.List<java.util.UUID> |
workListUUIDs A static list of UUIDs for the dummy work list. |
Constructor and description |
---|
OrderController
() |
Type Params | Return Type | Name and description |
---|---|---|
|
io.micronaut.http.HttpResponse |
findComponents(io.micronaut.http.HttpRequest request, java.security.Principal principal) Returns a list (JSON formatted) that contains a POGO list of values. |
|
io.micronaut.http.HttpResponse |
findWork(io.micronaut.http.HttpRequest request, java.security.Principal principal) Returns a list (JSON formatted) that contains a POGO list of values. |
|
java.lang.String |
getView(java.lang.String methodName) Determines the view to display for the given method. |
|
StandardModelAndView |
orderComponentList(java.security.Principal principal) |
|
StandardModelAndView |
orderWorkList(java.security.Principal principal) |
|
io.micronaut.http.HttpResponse |
suggestOrder(io.micronaut.http.HttpRequest request, java.security.Principal principal) Test method for a suggest list. |
Methods inherited from class | Name |
---|---|
class BaseCrudRestController |
restDelete, restGet, restPost, restPut |
class BaseCrudController |
bindEvent, create, createPost, delete, edit, editPost, getDomain, getRootPath, getView, index, list, show |
class BaseController |
buildDeniedResponse, buildErrorResponse, buildOkResponse, error, parseBody |
The number of rows available for the dummy findWork() method.
The dummy component list values.
The number of times the suggest url is called.
The most recent parameters for the latest suggest request.
Defines the entry(s) in the main Task Menu.
A static list of UUIDs for the dummy work list.
Returns a list (JSON formatted) that contains a POGO list of values. Dummy static list.
request
- The request.principal
- The user logged in.Returns a list (JSON formatted) that contains a POGO list of values. Dummy static list.
request
- The request.principal
- The user logged in.Determines the view to display for the given method. This can be overridden in your controller class to use a different naming scheme.
This sub-class points to a sample directory.
methodName
- The method that needs the view (e.g. 'index').Test method for a suggest list. Also provides an instrumented endpoint for use with suggest API tests. Records the parameters in the latest request and a count of the calls.
request
- The request.principal
- The user logged in.Groovy Documentation