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

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


    }

    private void checkContent(
            Variant variant, final String assetGroup, File temporaryFile) {
        URLContent content = (URLContent) variant.getContent();
        PolicyReference baseURLReference =
                content.getBaseURLPolicyReference();
        assertEquals("Base URL name", assetGroup,
                baseURLReference.getName());
        assertEquals("Base URL type", PolicyType.BASE_URL,
                baseURLReference.getExpectedPolicyType());

        assertEquals("Value", temporaryFile.getName(),
                content.getURL());
        assertEquals("", BaseLocation.DEFAULT,
                content.getBaseLocation());
    }
View Full Code Here


    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());

            BaseLocation baseLocation = urlContent.getBaseLocation();
            if (baseLocation == BaseLocation.DEVICE) {
                makeDeviceLocal(asset);
            }

        } else if (content instanceof AutoURLSequence) {
View Full Code Here

TOP

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

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.