Package com.volantis.mcs.devices.policy.types

Examples of com.volantis.mcs.devices.policy.types.PolicyType


     */
    private PolicyType getUnOrderedSetPolicyType(
            JDBCRepositoryConnection jdbcConnection, String projectName,
            int typeInstanceID) throws RepositoryException {

        PolicyType policyType = null;

        Connection connection = jdbcConnection.getConnection();

        // Resolve field names.
        String memberInstanceIDField = resolveFieldName(jdbcConnection,
View Full Code Here


     */
    private PolicyType getOrderedSetPolicyType(
            JDBCRepositoryConnection jdbcConnection, String projectName,
            int typeInstanceID) throws RepositoryException {

        PolicyType policyType = null;

        Connection connection = jdbcConnection.getConnection();

        // Resolve field names.
        String memberInstanceIDField = resolveFieldName(jdbcConnection,
View Full Code Here

     */
    private PolicyType getRangesPolicyType(
            JDBCRepositoryConnection jdbcConnection, String projectName,
            int typeInstanceID) throws RepositoryException {

        PolicyType policyType = null;

        Connection connection = jdbcConnection.getConnection();

        // Resolve field names.
        String minValueField = resolveFieldName(jdbcConnection,
View Full Code Here

            // Insert a row into VMPOLICY_TYPE for the link between policy and
            // policy type.
            insertPolicyType(jdbcConnection, policyName, categoryId.intValue(),
                    typeInstanceId);

            final PolicyType policyType = descriptor.getPolicyType();

            addPolicyTypeInstance(jdbcConnection, typeInstanceId,
                    policyType);
        }
    }
View Full Code Here

        int memberTypeInstanceId = getNextTypeInstanceId();

        // First add the contained member policy type instance that the
        // set is about to refer to.
        PolicyType memberPolicyType = set.getMemberPolicyType();
        if (!(memberPolicyType instanceof SimplePolicyType)) {
            throw new IllegalStateException();
        }
        addPolicyTypeInstance(connection, memberTypeInstanceId,
                memberPolicyType);
View Full Code Here

        Collections.sort(nameList);

        Iterator names = nameList.iterator();
        while (names.hasNext()) {
            String fieldName = (String) names.next();
            PolicyType fieldPolicyType = (PolicyType) fields.get(fieldName);
            addTypeInstanceStructureField(connection,
                    typeInstanceId, fieldName, fieldPolicyType);
        }
    }
View Full Code Here

                        descriptor.getCategoryName(),
                        "browser");
                // Ensure the type is of the correct type (try a cast!)
                OrderedSetPolicyType orderedSetType =
                        (OrderedSetPolicyType) descriptor.getPolicyType();
                PolicyType memberType = orderedSetType.getMemberPolicyType();
                assertTrue("Type of set values should match",
                        memberType instanceof SelectionPolicyType);

                // ------------------------------------------------------------
                // unordered set
View Full Code Here

TOP

Related Classes of com.volantis.mcs.devices.policy.types.PolicyType

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.