Examples of resolvePolicy()


Examples of com.sun.xml.wss.impl.PolicyResolver.resolvePolicy()

        //boolean isTrust = context.isTrustMessage();
        if (PolicyUtils.isEmpty(msgPolicy)) {
            PolicyResolver opResolver =
                    (PolicyResolver) context.getExtraneousProperty(context.OPERATION_RESOLVER);
            if (opResolver != null) {
                msgPolicy = opResolver.resolvePolicy(context);
            }
        }
        if (context.isSecure() && context.getInferredSecurityPolicy().isEmpty()) {
            if (PolicyUtils.isEmpty(msgPolicy) || context.isMissingTimestampAllowed()) {
                return streamMsg;
View Full Code Here

Examples of com.sun.xml.wss.impl.PolicyResolver.resolvePolicy()

        //boolean isTrust = context.isTrustMessage();
        if (PolicyUtils.isEmpty(msgPolicy)) {
            PolicyResolver opResolver =
                    (PolicyResolver) context.getExtraneousProperty(context.OPERATION_RESOLVER);
            if (opResolver != null) {
                msgPolicy = opResolver.resolvePolicy(context);
            }
        }
        if (context.isSecure() && context.getInferredSecurityPolicy().isEmpty()) {
            if (PolicyUtils.isEmpty(msgPolicy) || context.isMissingTimestampAllowed()) {
                return streamMsg;
View Full Code Here

Examples of com.volantis.mcs.eclipse.core.DeviceRepositoryAccessorManager.resolvePolicy()

                                new TestTransformerMetaFactory(),
                                new DefaultJDOMFactory(), false);


                // Beep for PC should be resolved from Master and should be false.
                ResolvedDevicePolicy policy = manager.resolvePolicy("PC", "beep");
                String policyValue = policy.policy.getAttributeValue("value");
                assertEquals("Expected PC beep policy to be false.",
                        "false", policyValue);
                assertEquals("Expected origin of PC beep policy to be Master.",
                        "Master", policy.deviceName);
View Full Code Here

Examples of com.volantis.mcs.eclipse.core.DeviceRepositoryAccessorManager.resolvePolicy()

                        "false", policyValue);
                assertEquals("Expected origin of PC beep policy to be Master.",
                        "Master", policy.deviceName);

                // Bookmarks for PC should be resolved from PC and should be true
                policy = manager.resolvePolicy("PC", "bookmarks");
                policyValue = policy.policy.getAttributeValue("value");
                assertEquals("Expected PC bookmarks policy to be true.",
                        "true", policyValue);
                assertEquals("Expected origin of PC bookmarks policy to be PC.",
                        "PC", policy.deviceName);
View Full Code Here

Examples of com.volantis.mcs.eclipse.core.DeviceRepositoryAccessorManager.resolvePolicy()


                // fullpixelsx for PC should be resolved from Master as there is an
                // inherit element and so the value should be the inherited -1 rather than
                // the 800 defined as the value in PC.
                ResolvedDevicePolicy policy = manager.resolvePolicy("PC", "dvidcamera");
                String policyValue = policy.policy.getAttributeValue("value");
                assertEquals("Expected PC dvidcamera policy to be false.",
                        "false", policyValue);
                assertEquals("Expected origin of PC fullpixelsx policy to be Master.",
                        "Master", policy.deviceName);
View Full Code Here

Examples of com.volantis.mcs.eclipse.core.DeviceRepositoryAccessorManager.resolvePolicy()

                                policyName);
                controller = new PolicyController(policyName, selector,
                        modifier, null, context);

                final ResolvedDevicePolicy rdpOriginal =
                        deviceRAM.resolvePolicy(deviceName, policyName);

                // WebBox falls back to pixelsx from TV.
                assertEquals("WebBox does not inherit pixelsx from TV",
                        "TV", rdpOriginal.deviceName);
View Full Code Here

Examples of com.volantis.mcs.eclipse.core.DeviceRepositoryAccessorManager.resolvePolicy()

                    throw new Exception(throwable);
                }

                // Retrieve the updated policy.
                final ResolvedDevicePolicy rdpOverride =
                        deviceRAM.resolvePolicy(deviceName, policyName);

                // pixelsx is now overridden by Web-Box.
                assertEquals("WebBox does not override pixelsx from TV",
                        deviceName, rdpOverride.deviceName);
            }
View Full Code Here

Examples of com.volantis.mcs.eclipse.core.DeviceRepositoryAccessorManager.resolvePolicy()

                        factory.createPolicyValueModifier(shell, SWT.NONE, policyName);
                controller = new PolicyController(policyName, selector,
                        modifier, null, context);

                final ResolvedDevicePolicy rdpOriginal =
                        deviceRAM.resolvePolicy(deviceName, policyName);

                // pixelsx is overridden by Microsoft-WebTV.
                assertEquals("Microsoft-WebTV does not override pixelsx",
                        deviceName, rdpOriginal.deviceName);
View Full Code Here

Examples of com.volantis.mcs.eclipse.core.DeviceRepositoryAccessorManager.resolvePolicy()

                    throw new Exception(throwable);
                }

                // Retrieve the updated policy.
                final ResolvedDevicePolicy rdpFallback =
                        deviceRAM.resolvePolicy(deviceName, policyName);

                // pixelsx was overridden by Microsoft-WebTV but now falls back to TV.
                assertEquals("Microsoft-WebTV does not inherit pixelsx from TV",
                        "TV", rdpFallback.deviceName);
            }
View Full Code Here

Examples of com.volantis.mcs.eclipse.core.DeviceRepositoryAccessorManager.resolvePolicy()

                        factory.createPolicyValueModifier(shell, SWT.NONE, policyName);
                controller = new PolicyController(policyName, selector,
                        modifier, null, context);

                final ResolvedDevicePolicy rdpOriginal =
                        deviceRAM.resolvePolicy(deviceName, policyName);

                // pixelsx is overridden by Microsoft-WebTV.
                assertEquals("Microsoft-WebTV does not override pixelsx",
                        deviceName, rdpOriginal.deviceName);
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.