Class LdapSyncDaoForLdap
java.lang.Object
edu.internet2.middleware.grouper.app.ldapProvisioning.ldapSyncDao.LdapSyncDao
edu.internet2.middleware.grouper.app.ldapProvisioning.ldapSyncDao.LdapSyncDaoForLdap
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
create an objectvoid
delete an object by dnvoid
internal_modifyHelper
(String ldapPoolName, String dn, List<LdapModificationItem> ldapModificationItems) modify attributes for an object.boolean
Move an object to a new dn.find objects by dn'ssearch
(String ldapPoolName, String baseDn, String filter, LdapSearchScope ldapSearchScope, List<String> attributeNames) do a filter searchsearch
(String ldapPoolName, String baseDn, String filter, LdapSearchScope ldapSearchScope, List<String> attributeNames, Integer sizeLimit) do a filter searchMethods inherited from class edu.internet2.middleware.grouper.app.ldapProvisioning.ldapSyncDao.LdapSyncDao
modify
-
Constructor Details
-
LdapSyncDaoForLdap
public LdapSyncDaoForLdap()
-
-
Method Details
-
search
public List<LdapEntry> search(String ldapPoolName, String baseDn, String filter, LdapSearchScope ldapSearchScope, List<String> attributeNames) Description copied from class:LdapSyncDao
do a filter search- Specified by:
search
in classLdapSyncDao
attributeNames
- are optional attribute names to get from the ldap object- Returns:
- the data
-
search
public List<LdapEntry> search(String ldapPoolName, String baseDn, String filter, LdapSearchScope ldapSearchScope, List<String> attributeNames, Integer sizeLimit) Description copied from class:LdapSyncDao
do a filter search- Specified by:
search
in classLdapSyncDao
attributeNames
- are optional attribute names to get from the ldap object- Returns:
- the data
-
read
public List<LdapEntry> read(String ldapPoolName, String baseDn, List<String> dnList, List<String> attributeNames) Description copied from class:LdapSyncDao
find objects by dn's- Specified by:
read
in classLdapSyncDao
attributeNames
- are optional attribute names to get from the ldap object- Returns:
- the data
-
delete
Description copied from class:LdapSyncDao
delete an object by dn- Specified by:
delete
in classLdapSyncDao
-
create
Description copied from class:LdapSyncDao
create an object- Specified by:
create
in classLdapSyncDao
- Returns:
- true if created, false if existed and updated
-
move
Description copied from class:LdapSyncDao
Move an object to a new dn. Assuming this would only be called if it's expected to work. i.e. If the ldap server doesn't allow this, the caller should avoid calling this and instead do a delete/re-create as appropriate.- Specified by:
move
in classLdapSyncDao
- Returns:
- true if moved, false if newDn exists and oldDn doesn't exist so no update
-
internal_modifyHelper
public void internal_modifyHelper(String ldapPoolName, String dn, List<LdapModificationItem> ldapModificationItems) Description copied from class:LdapSyncDao
modify attributes for an object. this should be done in bulk, and if there is an error, throw it- Specified by:
internal_modifyHelper
in classLdapSyncDao
-