Package com.volantis.mcs.project

Examples of com.volantis.mcs.project.PolicySource


    public PolicySource selectPolicySource(
            AbstractPoliciesConfiguration policies, boolean remote) {

        // If the location is remote then do not try and create local policy
        // sources.
        PolicySource policySource = null;
        if (policies instanceof JdbcPoliciesConfiguration) {
            if (remote) {
                throw new IllegalStateException("Remote projects cannot " +
                        "access policies in JDBC repository");
            }
View Full Code Here


        String policyRootAsString = getPolicyRootFromLocation(location);

        PolicySourceSelector selector = new SeperatePolicySourceSelector(
                policySourceFactory, policyRootAsString);

        PolicySource policySource = selector.selectPolicySource(
                policies, remote);

        builder.setPolicySource(policySource);

        builder.setPolicyRootAsString(policyRootAsString);
View Full Code Here

            builder.setBaseProject(fallbackProject);

            // Initialise the policy source.
            AbstractPoliciesConfiguration policies = configuration.getPolicies();

            PolicySource policySource = selector.selectPolicySource(
                    policies, false);
            builder.setPolicySource(policySource);

            // Initialise the generated resource base directory.
            String generatedResourceBaseDir = null;
View Full Code Here

     *
     * @throws Exception If any test fails.
     */
    public void testGetPolicy() throws Exception {
        RuntimeProject project = createNewProject(baseURLString, false);
        PolicySource policySource = project.getPolicySource();
        assertNull("Should be a null policy", policySource);
    }
View Full Code Here

    // Javadoc inherited.
    public PolicySource createDefaultPolicySource(
            RuntimePolicySourceFactory policySourceFactory, boolean remote) {

        PolicySource policies;
        if (absoluteProjectURL.startsWith("file:")) {
            String directory = absoluteProjectURL.substring(5);
            policies = policySourceFactory.createXMLPolicySource(
                    directory);
        } else if (remote) {
View Full Code Here

            // Determine the repository within which the default project
            // resides.
            LocalRepository defaultRepository;

            PolicySource defaultPolicySource = defaultProject.getPolicySource();
            if (defaultPolicySource instanceof JDBCPolicySource) {
                defaultRepository = jdbcRepository;
            } else if (defaultPolicySource instanceof XMLPolicySource) {
                defaultRepository = xmlRepository;
            } else {
View Full Code Here

TOP

Related Classes of com.volantis.mcs.project.PolicySource

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.