Examples of PolicyFileAccessException


Examples of com.volantis.mcs.eclipse.builder.common.policies.PolicyFileAccessException

                                    element.getDocument(), contentBuilderProxy);
                            contentBuilderProxy.setModelObject(contentBuilder);
                        }
                    }
                } catch (IOException e) {
                    throw new PolicyFileAccessException(e);
                }
                underlying.savePolicy(policy, policyResource, monitor);
            }

            public PolicyBuilder loadPolicy(IResource policyResource) throws PolicyFileAccessException {
View Full Code Here

Examples of com.volantis.mcs.eclipse.builder.common.policies.PolicyFileAccessException

            writer.write(osw, policy);
            InputStream is = new ByteArrayInputStream(baos.toByteArray());
            return createNewPolicy(is, location, config.getProgressMonitor(),
                    policy.getName());
        } catch (RepositoryException re) {
            throw new PolicyFileAccessException(re);
        }
    }
View Full Code Here

Examples of com.volantis.mcs.eclipse.builder.common.policies.PolicyFileAccessException

    // Javadoc inherited
    public void deletePolicy(IResource policyResource) throws PolicyFileAccessException {
        try {
            policyResource.delete(true, new NullProgressMonitor());
        } catch (CoreException ce) {
            throw new PolicyFileAccessException(ce);
        }
    }
View Full Code Here

Examples of com.volantis.mcs.eclipse.builder.common.policies.PolicyFileAccessException

        } catch (UnsupportedEncodingException e) {
            // Needs to be catch due to getBytes("UTF-8")
            // Should never get an UnsupportedEncodingException cause UTF-8 is valid encoding
            logger.error("encoding-not-supported",e);
        } catch (CoreException ce) {
            throw new PolicyFileAccessException(ce);
        } catch (RepositoryException re) {
            throw new PolicyFileAccessException(re);
        }
    }
View Full Code Here

Examples of com.volantis.mcs.eclipse.builder.common.policies.PolicyFileAccessException

            PolicyBuilder model =
                    (PolicyBuilder) reader.read(content, file.getName());
            model.setName(name);
            return model;
        } catch (CoreException ce) {
            throw new PolicyFileAccessException(ce);
        } catch (IOException e) {
            throw new PolicyFileAccessException(e);
        } finally {
            if (is != null) {
                try {
                    is.close();
                } catch (IOException e) {
View Full Code Here

Examples of com.volantis.mcs.eclipse.builder.common.policies.PolicyFileAccessException

        try {
            newPolicyFile.getWorkspace().run(workspaceOp, progressMonitor);
        } catch (CoreException e) {
            // TODO later check explicitly for cancellation
            throw new PolicyFileAccessException(e);
        }

        return newPolicyFile;
    }
View Full Code Here

Examples of com.volantis.mcs.eclipse.builder.common.policies.PolicyFileAccessException

            final JiBXReader reader =
                policyFactory.createDangerousNonValidatingPolicyReader();

            return (PolicyBuilder) reader.read(content, file.getName());
        } catch (CoreException e) {
            throw new PolicyFileAccessException(e);
        } catch (IOException e) {
            throw new PolicyFileAccessException(e);
        } finally {
            if (is != null) {
                try {
                    is.close();
                } catch (IOException e) {
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.