Examples of PolicyType


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

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

        PolicyType policyType = null;

        Connection connection = jdbcConnection.getConnection();

        // Resolve field names.
        String typeIDField = resolveFieldName(jdbcConnection, TYPE_ID_COLUMN_NAMES);
View Full Code Here

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

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

     */
    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

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

     */
    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

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

            // 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

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

        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

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

        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

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

                        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

Examples of com.volantis.mcs.eclipse.ab.editors.devices.types.PolicyType

                    buffer.append(policyName);
                    policyName = buffer.toString();
                }
                PolicyTypeComposition composition =
                        wizard.getPolicyTypeComposition();
                PolicyType type = wizard.getPolicyType();
                if (policyName != null && composition != null && type != null) {
                    // we don't allow policy creation to
                    // be undoable
                    try {
                        context.getUndoRedoManager().enable(false);
View Full Code Here

Examples of com.volantis.mcs.eclipse.ab.editors.devices.types.PolicyType

        Element typeElement =
                        context.getDeviceRepositoryAccessorManager().
                getTypeDefinitionElement(policyName);

        PolicyType policyType = PolicyType.getType(typeElement);

        PolicyTypeComposition composition =
                    PolicyTypeComposition.getComposition(typeElement);

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.