@groovy.util.logging.Slf4j @io.micronaut.security.annotation.Secured(value: OPERATOR) @io.micronaut.http.annotation.Controller(value: /orderAssy) class OrderAssyController extends org.simplemes.eframe.controller.BaseController
The OrderAssy controller. Provides basic access to the OrderAssyService. Does NOT provide CRUD access to any domain class.
Fields inherited from class | Fields |
---|---|
class org.simplemes.eframe.controller.BaseController |
__$stMC |
Type | Name and description |
---|---|
private OrderAssyService |
orderAssyService The actual order assy service needed to process requests. |
private java.lang.Object |
taskMenuItems Defines the standard end-user task entry points that this controller handles. |
Constructor and description |
---|
OrderAssyController
() |
Type Params | Return Type | Name and description |
---|---|---|
|
io.micronaut.http.HttpResponse |
addComponent(java.lang.String body, java.security.Principal principal) This method adds a component to the order/LSN. |
|
org.simplemes.eframe.controller.StandardModelAndView |
assembleComponentDialog(io.micronaut.http.HttpRequest request, java.security.Principal principal) Displays the assemble component dialog for a single component with Flex Type. |
|
org.simplemes.eframe.controller.StandardModelAndView |
assemblyActivity(io.micronaut.http.HttpRequest request, java.security.Principal principal) Displays the core assembly activity page. |
|
io.micronaut.http.HttpResponse |
findComponentAssemblyState(io.micronaut.http.HttpRequest request, java.security.Principal principal) Returns the assembly state of a given order/LSN. |
|
io.micronaut.http.HttpResponse |
removeComponent(java.lang.String body, java.security.Principal principal) This method removes a component to the order/LSN. |
|
org.simplemes.eframe.controller.StandardModelAndView |
removeComponentDialog(io.micronaut.http.HttpRequest request, java.security.Principal principal) Displays the remove component dialog for a single component with Flex Type. |
|
io.micronaut.http.HttpResponse |
removeComponents(java.lang.String body, java.security.Principal principal) This method removes one or more components from an order. |
|
OrderAssembledComponent |
resolveComponent(java.util.Map params) Resolves the assembleComponentDialog() HTTP parameters into a prototype OrderAssembledComponent object that is used for the dialog field's model. |
|
io.micronaut.http.HttpResponse |
undoRemoveComponent(java.lang.String body, java.security.Principal principal) This method restores the removed component to the order. |
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 order assy service needed to process requests.
Defines the standard end-user task entry points that this controller handles.
This method adds a component to the order/LSN. This exposes the OrderAssyService method of the same name. The argument is parsed from the request input body (JSON).
Input: AddOrderAssembledComponentRequest (JSON format).
Response: OrderAssembledComponent (JSON format)
Displays the assemble component dialog for a single component with Flex Type.
request
- The request.principal
- The user logged in.Displays the core assembly activity page.
request
- The request.principal
- The user logged in.Returns the assembly state of a given order/LSN. Returns a standard JSON list of OrderComponentState POGOs. This includes the normal total_count value. Also included is a boolean 'fullyAssembled' that is true if the order/lsn is fully assembled.
This method removes a component to the order/LSN. This exposes the OrderAssyService method of the same name. The argument is parsed from the request input body (JSON).
Input: RemoveOrderAssembledComponentRequest (JSON format).
Response: The response includes these two top-level elements in a map (JSON):
Displays the remove component dialog for a single component with Flex Type.
request
- The request.principal
- The user logged in.This method removes one or more components from an order. This uses the list of sequences to determine which record to mark as removed.
Response: The response includes these two top-level elements in a map (JSON):
Note: This method creates a single transaction for the removal of multiple components.
Resolves the assembleComponentDialog() HTTP parameters into a prototype OrderAssembledComponent object that is used for the dialog field's model.
params
- The HTTP params.This method restores the removed component to the order. This exposes the OrderAssyService method of the same name. The argument is parsed from the request input body (JSON).
Input: RemoveOrderAssembledComponentRequest (JSON format).
Response: JSON formatted OrderAssembledComponent.
Groovy Documentation