Package com.volantis.mcs.protocols.assets.implementation

Examples of com.volantis.mcs.protocols.assets.implementation.AssetResolver


        AudioAttributes attributes =
                (AudioAttributes) blockAttributes;

        // Nothing to do if the source cannot be generated.
        AssetResolver resolver = pageContext.getAssetResolver();
        String src = resolver.computeURLAsString(selected);
        if (src == null) {
            return;
        }

        aAttributes.setId(attributes.getId());
View Full Code Here


            // Resolve the expression to a reference.
            RuntimePolicyReference reference =
                    resolver.resolveUnquotedPolicyExpression(
                            audioComponentName, PolicyType.AUDIO);

            AssetResolver assetResolver = pageContext.getAssetResolver();

            // Only supports AMR encoding at the moment.
            SelectedVariant selected = assetResolver.selectBestVariant(
                    reference, ENCODING_COLLECTION);
            if (selected != null) {
                usePolicy(pageContext, selected, attributes);
            }
        }
View Full Code Here

        // 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
View Full Code Here

                        context.getPolicyReferenceResolver();

                RuntimePolicyReference reference =
                        resolver.resolvePolicyExpression(expression);

                AssetResolver assetResolver = context.getAssetResolver();
                ImageAssetReference image =
                        new DefaultComponentImageAssetReference(reference,
                                assetResolver);
                String url = image.getURL();
                if (url != null) {
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.assets.implementation.AssetResolver

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.