Examples of retrieveVariantURLAsString()


Examples of com.volantis.mcs.protocols.assets.implementation.AssetResolver.retrieveVariantURLAsString()

            throws RepositoryException {

        RuntimePolicyReference reference = createPolicyReference(name,
                PolicyType.AUDIO);
        final AssetResolver resolver = pageContext.getAssetResolver();
        return resolver.retrieveVariantURLAsString(reference,
                getEncodingCollection(EnumerationConverter.AUDIO_ENCODING,
                        encoding));
    }

    /**
 
View Full Code Here

Examples of com.volantis.mcs.protocols.assets.implementation.AssetResolver.retrieveVariantURLAsString()

            // types
            attributes.setSrcType(null);
        }

        // retrieve url only for IMAGE, AUDIO and VIDEO resource so far
        String url = assetResolver.retrieveVariantURLAsString(selectedVariant);

        // get dimensions for image and video and save it to params into
        // attributes
        if (variantType == VariantType.IMAGE
                || variantType == VariantType.VIDEO) {
View Full Code Here

Examples of com.volantis.mcs.protocols.assets.implementation.AssetResolver.retrieveVariantURLAsString()

        AssetResolver resolver = pageContext.getAssetResolver();

        SelectedVariant selectedVariant =
                resolver.selectBestVariant(reference, null);

        String url = resolver.retrieveVariantURLAsString(selectedVariant);
        if (url == null) {
            return;
        }

        url = resolver.rewriteURLWithPageURLRewriter(url, PageURLType.IMAGE);
View Full Code Here

Examples of com.volantis.mcs.protocols.assets.implementation.AssetResolver.retrieveVariantURLAsString()

        String imageURL = null;
        AssetResolver resolver = pageContext.getAssetResolver();
        RuntimePolicyReference fallback = (RuntimePolicyReference)
                policy.getAlternatePolicy(PolicyType.IMAGE);
        if (fallback != null) {
            imageURL = resolver.retrieveVariantURLAsString(fallback, null);
        }

        if (imageURL == null) {
            if (logger.isDebugEnabled()) {
                logger.debug("No altImage for component \"" + policy.getName());
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.