/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.identity.ldap.LdapGroup
 *  com.l7tech.objectmodel.Goid
 */
package com.l7tech.server.identity.ldap;

import com.l7tech.identity.ldap.LdapGroup;
import com.l7tech.objectmodel.Goid;
import com.l7tech.server.identity.ldap.LdapGroupManagerImpl;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
import java.util.concurrent.atomic.AtomicReference;
import javax.naming.directory.Attributes;

final class e {
    private final Goid a;
    private final String b;
    private final String c;
    private final String d;
    private final Attributes e;
    private final long f = System.currentTimeMillis();
    private final Set<String> g = Collections.synchronizedSet(new HashSet());
    private final AtomicReference<Collection<LdapGroup>> h = new AtomicReference();

    private e(LdapGroup ldapGroup) {
        this(ldapGroup.getProviderId(), ldapGroup.getDn(), ldapGroup.getCn(), ldapGroup.getDescription(), ldapGroup.getAttributes());
    }

    private e(Goid goid, String string, String string2, String string3, Attributes attributes) {
        this.a = goid;
        this.b = string;
        this.c = string2;
        this.d = string3;
        this.e = attributes;
    }

    private LdapGroup a() {
        return LdapGroupManagerImpl.a(this.a, this.b, this.c, this.d, this.e);
    }

    public boolean isNonGroup(String string) {
        return this.g.contains(string);
    }

    public void addNonGroups(Collection<String> collection) {
        this.g.addAll(collection);
    }

    public Collection<LdapGroup> getSubgroups() {
        return this.h.get();
    }

    public void setSubgroups(Collection<LdapGroup> collection) {
        this.h.set(Collections.unmodifiableCollection(new ArrayList<LdapGroup>(collection)));
    }
}

