Package com.volantis.mcs.repository

Examples of com.volantis.mcs.repository.RepositoryException


        final String closeConnectionMessage = "closeConnection() called";
        JDBCRepositoryConnection connection =
                new JDBCRepositoryConnectionImpl(repository, false, "user",
                                             "password", true) {
                    public void closeConnection() throws RepositoryException {
                        throw new RepositoryException(closeConnectionMessage);
                    }
                };

        try {
            connection.disconnect();
View Full Code Here


        try {
            String repositoryFilename =
                    MCSProjectNature.getDeviceRepositoryName(project);
           
            if(repositoryFilename == null) {
                throw new RepositoryException("Cannot resolve repository file name");
            }
           
            dram = new DeviceRepositoryAccessorManager(
                    repositoryFilename, new JAXPTransformerMetaFactory(),
                    JDOM_FACTORY, false);
        } catch (IOException e) {
            throw new RepositoryException(e);
        }

        return dram;
    }
View Full Code Here

            logger.debug("Mariner-DeviceName=" + deviceName);
        }

        InternalDevice device = deviceReader.getDevice(deviceName);
        if (device == null) {
            throw new RepositoryException(exceptionLocalizer.format(
                    "unknown-device-exception",
                    deviceName));
        }

        return device;
View Full Code Here

                // we let DeviceRepository subsystem use its own default               
                device = (DefaultDevice) deviceRepository
                        .getDevice(headers, defaultDeviceName);
            }
            catch(DeviceRepositoryException e) {
                throw new RepositoryException(e);
            }

            // Store the device in the session.
            try {
                session.setAttribute(SESSION_DEVICE_NAME, device);
View Full Code Here

                new File(deviceRepositoryFileName).toURL());
            final DeviceRepository deviceRepository =
                repositoryFactory.createDeviceRepository(configuration);
            return deviceRepository;
        } catch (MalformedURLException e) {
            throw new RepositoryException(e);
        } catch (DeviceRepositoryException e) {
            throw new RepositoryException(e);
        }
    }
View Full Code Here

                        preservedArea);

                value = new StringBuffer(
                        transcoder.constructImageURL(ctx));
            } catch (TranscodingException e) {
                throw new RepositoryException(e);
            }

            // Allow the ImageURLModifier (if there is one) in the
            // ApplicationContext to modify the image url.
            ImageURLModifier ium = applicationContext.getImageURLModifier();
View Full Code Here

    protected void addDeviceImpl(
            RepositoryConnection connection,
            DefaultDevice device) throws RepositoryException {

        throw new RepositoryException(EXCEPTION_LOCALIZER.format(
                "unsupported-operation"));
    }
View Full Code Here

    }

    protected void removeDeviceImpl(RepositoryConnection connection,
                                    String deviceName) throws RepositoryException {

        throw new RepositoryException(EXCEPTION_LOCALIZER.format(
                "unsupported-operation"));
    }
View Full Code Here

                deviceName);
        PolicySet standardPolicySet =
            (PolicySet) loadZipObject(standardDeviceFileName, PolicySet.class);
        if (standardPolicySet == null) {
            // No standard device. This is bad since this is mandatory.
            throw new RepositoryException(EXCEPTION_LOCALIZER.format(
                    "device-definition-missing", deviceName));
        }
        addPolicySetToDevice(standardPolicySet, device);

        // Then add any custom policies to the device.
View Full Code Here

    }

    protected void renameDeviceImpl(RepositoryConnection connection,
                                    String deviceName, String newName) throws RepositoryException {

        throw new RepositoryException(EXCEPTION_LOCALIZER.format(
                "unsupported-operation"));
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.repository.RepositoryException

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.