AuthorizableInfo.java 932 Bytes
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  javax.jcr.RepositoryException
 *  org.apache.jackrabbit.api.security.user.Authorizable
 */
package com.adobe.granite.security.user.internal;

import javax.jcr.RepositoryException;
import org.apache.jackrabbit.api.security.user.Authorizable;

public class AuthorizableInfo {
    private final String id;
    private final String path;
    private final boolean isGroup;

    public AuthorizableInfo(Authorizable a) throws RepositoryException {
        this(a.getID(), a.getPath(), a.isGroup());
    }

    public AuthorizableInfo(String id, String path, boolean isGroup) {
        this.id = id;
        this.path = path;
        this.isGroup = isGroup;
    }

    public String getId() {
        return this.id;
    }

    public String getPath() {
        return this.path;
    }

    public boolean isGroup() {
        return this.isGroup;
    }
}