Search in sources :

Example 1 with OrderRequestImpl

use of org.codice.alliance.nsili.mockserver.impl.requests.OrderRequestImpl in project alliance by codice.

the class OrderMgrImpl method order.

@Override
public OrderRequest order(OrderContents order, NameValue[] properties) throws ProcessingFault, InvalidInputParameter, SystemFault {
    OrderRequestImpl orderRequest = new OrderRequestImpl();
    try {
        _poa().activate_object_with_id("order".getBytes(Charset.forName(ENCODING)), orderRequest);
    } catch (ServantAlreadyActive | ObjectAlreadyActive | WrongPolicy e) {
        LOGGER.warn("Order : Unable to activate orderRequest object.", e);
    }
    org.omg.CORBA.Object obj = _poa().create_reference_with_id("order".getBytes(Charset.forName(ENCODING)), OrderRequestHelper.id());
    OrderRequest queryRequest = OrderRequestHelper.narrow(obj);
    return queryRequest;
}
Also used : WrongPolicy(org.omg.PortableServer.POAPackage.WrongPolicy) ObjectAlreadyActive(org.omg.PortableServer.POAPackage.ObjectAlreadyActive) OrderRequest(org.codice.alliance.nsili.common.GIAS.OrderRequest) OrderRequestImpl(org.codice.alliance.nsili.mockserver.impl.requests.OrderRequestImpl) ServantAlreadyActive(org.omg.PortableServer.POAPackage.ServantAlreadyActive)

Aggregations

OrderRequest (org.codice.alliance.nsili.common.GIAS.OrderRequest)1 OrderRequestImpl (org.codice.alliance.nsili.mockserver.impl.requests.OrderRequestImpl)1 ObjectAlreadyActive (org.omg.PortableServer.POAPackage.ObjectAlreadyActive)1 ServantAlreadyActive (org.omg.PortableServer.POAPackage.ServantAlreadyActive)1 WrongPolicy (org.omg.PortableServer.POAPackage.WrongPolicy)1