Examples of PolicyReferenceResolver


Examples of com.volantis.mcs.runtime.policies.PolicyReferenceResolver

        // Set the value.
        String value = attributes.getValue();
        pattributes.setValue(value);

        PolicyReferenceResolver resolver =
                pageContext.getPolicyReferenceResolver();

        // Set the client variable name
        TextAssetReference reference = resolver.resolveQuotedTextExpression(
                attributes.getClientVariableName());
        String clientVariableName = getPlainText(reference);

        // One of value and clientVariableName must be specified.
        if (value == null && clientVariableName == null) {
View Full Code Here

Examples of com.volantis.mcs.runtime.policies.PolicyReferenceResolver

                    (NativeMarkupAttributes) papiAttributes;
            String paneName = attributes.getPane();

            // Get the value of the targetLocation attribute, which could be
            // a text component.
            PolicyReferenceResolver resolver =
                    pageContext.getPolicyReferenceResolver();
            TextAssetReference reference = resolver.resolveQuotedTextExpression(
                    attributes.getTargetLocation());
            String target;
            if (reference != null) {
                target = reference.getText(TextEncoding.PLAIN);
            } else {
View Full Code Here

Examples of com.volantis.mcs.runtime.policies.PolicyReferenceResolver

                = new com.volantis.mcs.protocols.XFBooleanAttributes();

        // Initialise the attributes specific to this field.
        TextAssetReference object;

        PolicyReferenceResolver resolver =
                pageContext.getPolicyReferenceResolver();

        // Process the errmsg as a mariner expression.
        object = resolver.resolveQuotedTextExpression(attributes.getErrmsg());
        pattributes.setErrmsg(object);

        // Process the false value as a mariner expression.
        object = resolver.resolveQuotedTextExpression(
                attributes.getFalseValue());
        pattributes.setFalseValues(object);

        // Set the initial value attribute.
        pattributes.setInitial(attributes.getInitial());

        // Process the true value as a mariner expression.
        object =
                resolver.resolveQuotedTextExpression(attributes.getTrueValue());
        pattributes.setTrueValues(object);

        // Initialise form field event attributes.
        PAPIInternals.initialiseFieldEventAttributes(pageContext, attributes,
                pattributes);
View Full Code Here

Examples of com.volantis.mcs.runtime.policies.PolicyReferenceResolver

                (PhoneNumberAttributes) blockAttributes;

        // Handle the common base attributes
        transferAttributes(context, attributes, pattributes);

        PolicyReferenceResolver resolver =
                pageContext.getPolicyReferenceResolver();

        // Resolve the fullNumber string to a mariner expression
        if ((value = attributes.getFullNumber()) != null) {
            TextAssetReference expression =
                    resolver.resolveQuotedTextExpression(value);
            pattributes.setFullNumber(expression);
        }

        VolantisProtocol protocol = pageContext.getProtocol();
        protocol.writeOpenPhoneNumber(pattributes);
View Full Code Here

Examples of com.volantis.mcs.runtime.policies.PolicyReferenceResolver

    private String extractAltText(DOMProtocol protocol,
            StyleComponentURI component) throws ProtocolException {

        // Get asset and policy resolvers, resolve component policy
        TabsContext context = getCurrentContext();
        PolicyReferenceResolver referenceResolver = context.getPageContext()
                .getPolicyReferenceResolver();
        AssetResolver assetResolver = context.getPageContext()
                .getAssetResolver();
        RuntimePolicyReference policyReference = referenceResolver
                .resolvePolicyExpression(component.getExpression());

        // Create image asset from the policy and get fallback
        DefaultComponentImageAssetReference imageAsset = new DefaultComponentImageAssetReference(
                policyReference, assetResolver);
View Full Code Here

Examples of com.volantis.mcs.runtime.policies.PolicyReferenceResolver

            if (expression == null) {
                return null;
            }

            try {
                PolicyReferenceResolver resolver =
                        context.getPolicyReferenceResolver();

                RuntimePolicyReference reference =
                        resolver.resolvePolicyExpression(expression);

                AssetResolver assetResolver = context.getAssetResolver();
                ImageAssetReference image =
                        new DefaultComponentImageAssetReference(reference,
                                assetResolver);
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.