Search in sources :

Example 6 with GetRelatedFilesRequest

use of org.codice.alliance.nsili.common.GIAS.GetRelatedFilesRequest in project alliance by codice.

the class ProductMgrImpl method get_related_files.

@Override
public GetRelatedFilesRequest get_related_files(Product[] products, FileLocation location, String type, NameValue[] properties) throws ProcessingFault, InvalidInputParameter, SystemFault {
    GetRelatedFilesRequestImpl getRelatedFilesRequest = new GetRelatedFilesRequestImpl();
    try {
        _poa().activate_object_with_id("get_related_files".getBytes(Charset.forName(ENCODING)), getRelatedFilesRequest);
    } catch (ServantAlreadyActive | ObjectAlreadyActive | WrongPolicy e) {
        LOGGER.warn("get_related_files : Unable to activate getRelatedFilesRequest object.", e);
    }
    org.omg.CORBA.Object obj = _poa().create_reference_with_id("get_related_files".getBytes(Charset.forName(ENCODING)), GetRelatedFilesRequestHelper.id());
    GetRelatedFilesRequest queryRequest = GetRelatedFilesRequestHelper.narrow(obj);
    return queryRequest;
}
Also used : WrongPolicy(org.omg.PortableServer.POAPackage.WrongPolicy) GetRelatedFilesRequestImpl(org.codice.alliance.nsili.mockserver.impl.requests.GetRelatedFilesRequestImpl) ObjectAlreadyActive(org.omg.PortableServer.POAPackage.ObjectAlreadyActive) GetRelatedFilesRequest(org.codice.alliance.nsili.common.GIAS.GetRelatedFilesRequest) ServantAlreadyActive(org.omg.PortableServer.POAPackage.ServantAlreadyActive)

Aggregations

GetRelatedFilesRequest (org.codice.alliance.nsili.common.GIAS.GetRelatedFilesRequest)6 Product (org.codice.alliance.nsili.common.UID.Product)5 FileLocation (org.codice.alliance.nsili.common.UCO.FileLocation)4 NameValue (org.codice.alliance.nsili.common.UCO.NameValue)4 Result (ddf.catalog.data.Result)3 MetacardImpl (ddf.catalog.data.impl.MetacardImpl)3 ResultImpl (ddf.catalog.data.impl.ResultImpl)3 DAG (org.codice.alliance.nsili.common.UCO.DAG)3 Test (org.junit.Test)3 Any (org.omg.CORBA.Any)3 ObjectAlreadyActive (org.omg.PortableServer.POAPackage.ObjectAlreadyActive)2 ServantAlreadyActive (org.omg.PortableServer.POAPackage.ServantAlreadyActive)2 WrongPolicy (org.omg.PortableServer.POAPackage.WrongPolicy)2 Metacard (ddf.catalog.data.Metacard)1 UnsupportedEncodingException (java.io.UnsupportedEncodingException)1 ArrayList (java.util.ArrayList)1 NameListHolder (org.codice.alliance.nsili.common.UCO.NameListHolder)1 GetRelatedFilesRequestImpl (org.codice.alliance.nsili.endpoint.requests.GetRelatedFilesRequestImpl)1 GetRelatedFilesRequestImpl (org.codice.alliance.nsili.mockserver.impl.requests.GetRelatedFilesRequestImpl)1 WrongAdapter (org.omg.PortableServer.POAPackage.WrongAdapter)1