Package com.volantis.mcs.policies

Examples of com.volantis.mcs.policies.PolicyBuilder


            saveModel(file, iProgressMonitor);
        }
    }

    private void saveModel(IFile targetFile, IProgressMonitor monitor) {
        PolicyBuilder policy =
                (PolicyBuilder) context.getInteractionModel().getModelObject();
        try {
            context.getPolicyFileAccessor().savePolicy(policy, targetFile, monitor);
            context.setDirty(false);
View Full Code Here


            throws RepositoryException {

        RemotePolicyBuilderReader reader = createReader();
        PolicyBuilderResponse response = reader.getPolicyBuilder(
                runtimeProjectMock, url);
        PolicyBuilder builder = response.getBuilder();
        assertNull(builder);
    }
View Full Code Here

        PolicyBuilders builders = response.getBuilders();
        if (builders != null) {
            Iterator iterator = builders.getPolicyBuilders().iterator();
            while (iterator.hasNext()) {
                PolicyBuilder policyBuilder =
                        (PolicyBuilder) iterator.next();

                // Complete post-load initialization ("activation") for the
                // object. This call will do nothing if there are no
                // activators
View Full Code Here

     */
    public PolicyBuilder parsePolicyBuilder(InputStream stream, String url)
            throws ResourceMigrationException, IOException {

        Object object = parseRemoteObject(stream, url);
        PolicyBuilder builder = (PolicyBuilder) object;
        builder.setName(url);
        return builder;
    }
View Full Code Here

     *         the owning project.
     */
    public PolicyBuilderResponse getPolicyBuilder(
            Project project, String name) {

        PolicyBuilder builder = null;

        RuntimeProject runtimeProject = (RuntimeProject) project;
        if (!runtimeProject.isRemote()) {
            throw new IllegalStateException("Project is not remote");
        }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.policies.PolicyBuilder

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.