Package com.volantis.mcs.themes

Examples of com.volantis.mcs.themes.StyleTranscodableURI


            String uri = resolver.resolveImage(reference);
            if (uri != null) {
                image = styleValueFactory.getURI(null, uri);
            }
        } else if (value instanceof StyleTranscodableURI) {
            final StyleTranscodableURI transcodableURI =
                    (StyleTranscodableURI) value;
            final String uri = resolver.resolveTranscodableImage(
                    transcodableURI.getUri());
            if (uri != null) {
                image = styleValueFactory.getURI(null, uri);
            }
        } else {
            throw new IllegalStateException("Unknown " +
View Full Code Here


                    resolver.resolvePolicyExpression(
                            styleComponentURI.getExpression());
            imageAssetReference = new DefaultComponentImageAssetReference(
                    reference, assetResolver);
        } else if (value instanceof StyleTranscodableURI) {
            final StyleTranscodableURI transcodableUri =
                (StyleTranscodableURI) value;
            try {
                // resolve the transcodable URL
                final String imageUrl = transcodableUrlResolver.resolve(
                    transcodableUri.getUri());

                return new ImageAssetReference() {
                    public String getURL() {
                        return imageUrl;
                    }
View Full Code Here

            } catch (AssetReferenceException e) {
                logger.error ("repository-exception", e);
            }
        } else if (valueType == StyleValueType.TRANSCODABLE_URI) {
            final StyleTranscodableURI transcodableUri =
                (StyleTranscodableURI) styleValue;
            try {
                final TranscodableUrlResolver urlResolver =
                    getMarinerPageContext().getTranscodableUrlResolver();
                return urlResolver.resolve(transcodableUri.getUri());
            } catch (RepositoryException e) {
                logger.error ("repository-exception", e);
            }
        }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.themes.StyleTranscodableURI

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.