Util.java 651 Bytes
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  org.apache.sling.api.resource.Resource
 */
package com.adobe.cq.mcm.campaign.impl;

import com.adobe.cq.mcm.campaign.Constants;
import org.apache.sling.api.resource.Resource;

public final class Util {
    private Util() {
    }

    public static boolean isNewsletterType(Resource resource) {
        if (resource == null) {
            return false;
        }
        for (String rscTypeToCheck : Constants.RT_CAMPAIGN_NEWSLETTER) {
            if (!resource.isResourceType(rscTypeToCheck)) continue;
            return true;
        }
        return false;
    }
}