Package us.carrclan.david.authc4j.api

Examples of us.carrclan.david.authc4j.api.ImmutableGroupInformation


    @Override
    protected Set<? extends GroupInformation> getGroups(String userName) {
        Set<GroupInformation> groupInformationSet = new LinkedHashSet<>();
        for (Netapi32Util.Group group : Netapi32Util.getUserLocalGroups(userName)) {
            groupInformationSet.add(new ImmutableGroupInformation(getSource(), group.name));
        }
        return groupInformationSet;
    }
View Full Code Here


    @Override
    public Set<? extends GroupInformation> getAllGroupInformation() {
        Set<GroupInformation> allGroupInformation = new LinkedHashSet<>();
        for (Netapi32Util.Group group : Netapi32Util.getLocalGroups()) {
            allGroupInformation.add(new ImmutableGroupInformation(this, group.name));
        }
        return allGroupInformation;
    }
View Full Code Here

    @Override
    protected Set<? extends GroupInformation> getGroups(String userName) {
        Set<GroupInformation> groupInformationSet = new LinkedHashSet<>();
        for (Netapi32Util.Group group : Netapi32Util.getUserGroups(userName, serverName)) {
            groupInformationSet.add(new ImmutableGroupInformation(getSource(), group.name));
        }
        return groupInformationSet;
    }
View Full Code Here

    @Override
    public Set<? extends GroupInformation> getAllGroupInformation() {
        initialize();
        Set<GroupInformation> allGroupInformation = new LinkedHashSet<>();
        for (Netapi32Util.Group group : Netapi32Util.getGlobalGroups(serverName)) {
            allGroupInformation.add(new ImmutableGroupInformation(this, group.name));
        }
        return allGroupInformation;
    }
View Full Code Here

    GroupInformation createGroupInformation(CSIdentityRef groupIdentity) {
        CoreServicesLibrary csLibrary = CoreServicesLibrary.INSTANCE;
        String shortName = StringUtils.toString(csLibrary.CSIdentityGetPosixName(groupIdentity));
        String longName = StringUtils.toString(csLibrary.CSIdentityGetFullName(groupIdentity));
        return new ImmutableGroupInformation(source, shortName, longName);
    }
View Full Code Here

TOP

Related Classes of us.carrclan.david.authc4j.api.ImmutableGroupInformation

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.