Package org.fcrepo.server.errors

Examples of org.fcrepo.server.errors.InvalidStateException


     * attempt to use the Management API.
     *
     * @throws ServerException
     */
    private ServerException rejectCallsFromOutsideWhileInRecoveryMode() {
        return new InvalidStateException("Server is in Journal Recovery mode.");
    }
View Full Code Here


            }

            if (state != null && !state.equals("")) {
                if (!state.equals("A") && !state.equals("D")
                    && !state.equals("I")) {
                    throw new InvalidStateException("The object state of \""
                                                    + state
                                                    + "\" is invalid. The allowed values for state are: "
                                                    + " A (active), D (deleted), and I (inactive).");
                }
                w.setState(state);
View Full Code Here

            ds.isNew = true;
            ds.DSControlGrp = controlGroup;
            ds.DSVersionable = versionable;
            if (!dsState.equals("A") && !dsState.equals("D")
                && !dsState.equals("I")) {
                throw new InvalidStateException("The datastream state of \""
                                                + dsState
                                                + "\" is invalid. The allowed values for state are: "
                                                + " A (active), D (deleted), and I (inactive).");
            }
            ds.DSState = dsState;
View Full Code Here

                                              dsState);

            w = m_manager.getWriter(Server.USE_DEFINITIVE_STORE, context, pid);
            if (!dsState.equals("A") && !dsState.equals("D")
                && !dsState.equals("I")) {
                throw new InvalidStateException("The datastream state of \""
                                                + dsState
                                                + "\" is invalid. The allowed values for state are: "
                                                + " A (active), D (deleted), and I (inactive).");
            }
            w.setDatastreamState(datastreamID, dsState);
View Full Code Here

TOP

Related Classes of org.fcrepo.server.errors.InvalidStateException

Copyright © 2018 www.massapicom. 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.