this.groupInformationCreator = groupInformationCreator;
}
UserInformation createUserInformation(CSIdentityRef userIdentity, List<CSIdentityRef> groupIdentities) {
CoreServicesLibrary csLibrary = CoreServicesLibrary.INSTANCE;
String shortName = StringUtils.toString(csLibrary.CSIdentityGetPosixName(userIdentity));
String longName = StringUtils.toString(csLibrary.CSIdentityGetFullName(userIdentity));
Set<GroupInformation> memberGroupInformation = createMemberGroupInformation(userIdentity, groupIdentities);
return new ImmutableUserInformation(source, shortName, longName, memberGroupInformation);
}