Package org.fcrepo.server.management

Examples of org.fcrepo.server.management.FedoraAPIMMTOM.modifyObject()


    }

    private boolean canWrite(FedoraClient client, String pid, String logMessage) throws Exception {
        FedoraAPIMMTOM apim = client.getAPIMMTOM();
        try {
            apim.modifyObject(pid, null, null, null, logMessage);
            return true;
        } catch (Exception e) {
            e.printStackTrace();
            return false;
        }
View Full Code Here


        for (int i = 0; i < numTimes; i++) {
            try {
                if (apim == null) {
                    apim = client.getAPIMMTOM();
                }
                apim.modifyObject(TEST_PID, null, null, null, "i=" + i);
            } catch (Exception e) {
                failCount++;
            }
        }
        LOGGER.info("Failed {} times", failCount);
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.