SocialGraphConfig.java 1.93 KB
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.granite.socialgraph.impl;

import java.util.Arrays;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;

/*
 * This class specifies class file version 49.0 but uses Java 6 signatures.  Assumed Java 6.
 */
public class SocialGraphConfig {
    private String groupIncomingRelationship = "member";
    private String groupOutgoingRelationship = "following";
    private Set<String> incomingExcludedGroups = new HashSet<String>(Arrays.asList("everyone"));
    private Set<String> outgoingExcludedGroups = new HashSet<String>(Arrays.asList("everyone"));

    public String getGroupIncomingRelationship() {
        return this.groupIncomingRelationship;
    }

    public void setGroupIncomingRelationship(String groupIncomingRelationship) {
        this.groupIncomingRelationship = groupIncomingRelationship;
    }

    public Set<String> getIncomingExcludedGroups() {
        return this.incomingExcludedGroups;
    }

    public /* varargs */ void setIncomingExcludedGroups(String ... names) {
        this.incomingExcludedGroups = new HashSet<String>();
        if (names != null) {
            this.incomingExcludedGroups.addAll(Arrays.asList(names));
        }
        this.incomingExcludedGroups.add("everyone");
    }

    public String getGroupOutgoingRelationship() {
        return this.groupOutgoingRelationship;
    }

    public void setGroupOutgoingRelationship(String groupOutgoingRelationship) {
        this.groupOutgoingRelationship = groupOutgoingRelationship;
    }

    public Set<String> getOutgoingExcludedGroups() {
        return this.outgoingExcludedGroups;
    }

    public /* varargs */ void setOutgoingExcludedGroups(String ... names) {
        this.outgoingExcludedGroups = new HashSet<String>();
        if (names != null) {
            this.outgoingExcludedGroups.addAll(Arrays.asList(names));
        }
        this.outgoingExcludedGroups.add("everyone");
    }
}