Examples of Kam


Examples of org.openbel.framework.api.Kam

        KamSummaryXHTMLWriter xhtmlWriter = null;
        try {
            setUp();

            xhtmlWriter = createOutputFileWriter(outputFilename, noPreserve);
            Kam kam;
            if (kamName != null) {
                // Look up the requested KAM and summarize.
                kam = kAMStore.getKam(kamName);
                KamSummarizer summarizer = new KamSummarizer(reportable);
                KamSummary summary = KamSummarizer.summarizeKam(kAMStore, kam);
View Full Code Here

Examples of org.openbel.framework.ws.model.Kam

        // validate request
        if (request == null) {
            throw new MissingRequest(LOAD_KAM_REQUEST);
        }

        Kam kam = request.getKam();
        if (kam == null) {
            throw new RequestException(KAM_REQUEST_NO_KAM);
        }
        if (kam.getName() == null) {
            throw new RequestException(KAM_REQUEST_NO_NAME);
        }

        KamInfo kamInfo = null;
        List<KamInfo> catalog;
        try {
            catalog = kamCatalogDao.getCatalog();
        } catch (SQLException e) {
            String msg = getFirstMessage(e);
            LoadKamResponse resp = OBJECT_FACTORY.createLoadKamResponse();
            resp.setLoadStatus(FAILED);
            resp.setMessage(msg);
            return resp;
        }

        for (final KamInfo ki : catalog) {
            if (ki.getName().equals(kam.getName())) {
                kamInfo = ki;
                break;
            }
        }

        if (kamInfo == null) {
            String errorMsg = KAM_REQUEST_NO_KAM_FOR_NAME;
            String msg = format(errorMsg, kam.getName());
            LoadKamResponse resp = OBJECT_FACTORY.createLoadKamResponse();
            resp.setLoadStatus(FAILED);
            resp.setMessage(msg);
            return resp;
        }
View Full Code Here

Examples of org.openbel.framework.ws.model.Kam

        return eres.getKamEdges();
    }

    private KamHandle loadKam(final String kamName) {
        final Kam kam = name2Kams.get(kamName);
        assertThat(kam, is(not(nullValue())));

        final LoadKamRequest lkreq = factory.createLoadKamRequest();
        lkreq.setKam(kam);
        LoadKamResponse lkres = webAPI.loadKam(lkreq);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.