Package com.volantis.mcs.policies.variants.content

Examples of com.volantis.mcs.policies.variants.content.Content


        Variant variant = selected.getVariant();
        if (variant == null) {
            return null;
        }

        Content content = variant.getContent();
        if (content instanceof EmbeddedContent) {
            EmbeddedContent embedded = (EmbeddedContent) content;
            return embedded.getData();
        } else {
            MarinerURL marinerURL = computeURL((Asset) selected.getOldObject());
View Full Code Here


    }

    public BaseLocation getBaseLocation(SelectedVariant selected) {

        Variant variant = selected.getVariant();
        Content content = variant.getContent();
        if (content instanceof BaseURLRelative) {
            BaseURLRelative relative = (BaseURLRelative) content;
            BaseLocation baseLocation = relative.getBaseLocation();
            if (baseLocation != BaseLocation.DEFAULT) {
                return baseLocation;
View Full Code Here

        PolicyReferenceFactory referenceFactory = createReferenceFactory();

        LayoutActivator layoutActivator = new LayoutActivator(referenceFactory);

        Content activatedContent = activateContent(layoutContent,
                layoutActivator, "policy.mlyt", PolicyType.LAYOUT,
                VariantType.LAYOUT);

        ActivatedLayoutContent activatedLayoutContent =
                (ActivatedLayoutContent) activatedContent;
View Full Code Here

        PolicyReferenceFactory referenceFactory = createReferenceFactory();

        ThemeActivator themeActivator = new ThemeActivator(referenceFactory);

        // Get the activated variant.
        Content activatedContent = activateContent(themeContent, themeActivator,
                "policy.mthm", PolicyType.THEME, VariantType.THEME);

        // Get the content.
        ActivatedThemeContent activatedThemeContent =
                (ActivatedThemeContent) activatedContent;
View Full Code Here

public abstract class AbstractAssetCreator
        implements OldObjectCreator {

    protected void setValue(SubstantiveAsset asset, Variant variant) {
        Content content = variant.getContent();

        if (content instanceof URLContent) {
            URLContent urlContent = (URLContent) variant.getContent();
            setAssetGroupName(asset, urlContent);
            asset.setValue(urlContent.getURL());
View Full Code Here

TOP

Related Classes of com.volantis.mcs.policies.variants.content.Content

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.