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

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


            // Resolve the identity against the project associated with the
            // value.
            RuntimePolicyReference reference =
                    resolver.resolvePolicyExpression(
                            styleComponentURI.getExpression());
            imageAssetReference = new DefaultComponentImageAssetReference(
                    reference, assetResolver);
        } else if (value instanceof StyleTranscodableURI) {
            final StyleTranscodableURI transcodableUri =
                (StyleTranscodableURI) value;
            try {
View Full Code Here


                        .getAssetResolver();
                RuntimePolicyReference policyReference = referenceResolver
                        .resolvePolicyExpression(((StyleComponentURI)labelContent).getExpression());

                // Create image asset from the policy and get fallback
                DefaultComponentImageAssetReference imageAsset = new DefaultComponentImageAssetReference(
                        policyReference, assetResolver);
                TextAssetReference textAsset = imageAsset.getTextFallback();

                // If e.g policy file is missing and as consequence textAsset == null,
                // throw suitable exception
                if (null == textAsset) {
                    throw new ProtocolException(exceptionLocalizer.format(
View Full Code Here

        PolicyReferenceResolver resolver =
                context.getPolicyReferenceResolver();
        RuntimePolicyReference reference =
                resolver.resolveUnquotedPolicyExpression(imageExpression,
                        PolicyType.IMAGE);
        return new DefaultComponentImageAssetReference(reference,
                context.getAssetResolver());
    }
View Full Code Here

                .getAssetResolver();
        RuntimePolicyReference policyReference = referenceResolver
                .resolvePolicyExpression(component.getExpression());

        // Create image asset from the policy and get fallback
        DefaultComponentImageAssetReference imageAsset = new DefaultComponentImageAssetReference(
                policyReference, assetResolver);
        TextAssetReference textAsset = imageAsset.getTextFallback();

        // If e.g policy file is missing and as consequence textAsset == null,
        // throw suitable exception
        if (null == textAsset) {
            throw new ProtocolException(exceptionLocalizer.format(
View Full Code Here

                RuntimePolicyReference reference =
                        resolver.resolvePolicyExpression(expression);

                AssetResolver assetResolver = context.getAssetResolver();
                ImageAssetReference image =
                        new DefaultComponentImageAssetReference(reference,
                                assetResolver);
                String url = image.getURL();
                if (url != null) {
                    return url;
                }
                actionImageCaption = getTextFromReference(
                        image.getTextFallback(), TextEncoding.PLAIN);

            } catch (AssetReferenceException e) {
                logger.error ("repository-exception", e);
            }
        } else if (valueType == StyleValueType.TRANSCODABLE_URI) {
View Full Code Here

TOP

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

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.