Modifier and Type | Method and Description |
---|---|
static org.threeten.bp.LocalDate |
AttributeUtils.extractDateAttribute(Attributes attribs,
String name,
String dn)
Extracts the single value for the attribute with the supplied name from the supplied
Attributes object and converts it to a LocalDate , or returns null if
the attribute isn't set. |
static Map<String,String> |
AttributeUtils.extractMapAttribute(Attributes attribs,
String name,
String regex,
String dn)
Extracts the values for attribute with the supplied name from the supplied
Attributes
object into a @{code Map<String, String>}, using the supplied regular expression. |
GroupRecord |
LdapService.getGroup(String cn)
|
GroupRecord |
LdapService.getGroup(String cn,
String searchBase)
Gets a
GroupRecord from within the specified search base of the LDAP. |
List<GroupRecord> |
LdapService.getGroupsForUser(String username,
boolean includeMembers)
Gets
GroupRecord s from the LDAP for all groups containing the specified user. |
List<PersonRecord> |
LdapService.getListedPersonRecords(boolean bathPeople,
boolean applicants,
boolean externalPeople,
boolean nonPeople)
Returns a list of
PersonRecord s for all the person entries of the specified type(s)
currently present in ou=people in the LDAP. |
PersonRecord |
LdapService.getPerson(String username)
Gets a PersonRecord (with nested RoleRecords as appropriate) from the LDAP.
|
RoleRecord |
LdapService.getRole(String id)
Gets a
RoleRecord from the LDAP. |
UnitRecord |
LdapService.getUnit(String shortOu)
Gets a UnitRecord from the LDAP.
|
static boolean |
LdapUtils.isGroupMember(LdapService ldapSvc,
String groupCn,
String userUid)
Tests to see if a particular user is a member of a particular LDAP
groupOfNames . |
static boolean |
LdapUtils.isGroupOwner(LdapService ldapSvc,
String groupCn,
String userUid)
Tests to see if a particular user is an owner of a particular LDAP
groupOfNames . |
static List<GroupRecord> |
LdapUtils.searchGroupRecords(LdapService ldapSvc,
String filter)
Searches for groups (
groupOfNames or posixGroup ) using the supplied filter,
and returns a fully-fledged GroupRecord object for each one found. |
static List<GroupRecord> |
LdapUtils.searchGroupRecords(LdapService ldapSvc,
String filter,
int searchScope)
Searches for groups (
groupOfNames or posixGroup ) using the supplied filter
and search scope, and returns a fully-fledged GroupRecord object for each one found. |
static List<PersonRecord> |
LdapUtils.searchPersonRecords(LdapService ldapSvc,
String filter)
Searches for people using the supplied filter, and returns a fully-fledged
PersonRecord object for each one found.
|
static Map<RoleRecord,PersonRecord> |
LdapUtils.searchRoleRecords(LdapService ldapSvc,
String filter)
Searches for roles using the supplied filter and returns a RoleRecord object,
along with the fully-fledged PersonRecord object containing it, for each one
found.
|
static List<UnitRecord> |
LdapUtils.searchUnitRecords(LdapService ldapSvc,
String filter)
Searches for units using the supplied filter, and returns a fully-fledged
UnitRecord object for each one found.
|
void |
LdapService.setGroup(GroupRecord groupData,
boolean createOnly)
Sets the state of a group in the LDAP from a
GroupRecord . |
static int |
LdapUtils.uidToPersonId(LdapService ldapSvc,
String uid)
Converts a uid to a PersonId by querying the LDAP.
|
Copyright © 2018. All rights reserved.