java.lang.Object
edu.internet2.middleware.grouper.app.ldapProvisioning.ldapSyncDao.LdapSyncDao
edu.internet2.middleware.grouper.app.ldapProvisioning.ldapSyncDao.LdapSyncDaoForLdap

public class LdapSyncDaoForLdap extends LdapSyncDao
  • 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 class LdapSyncDao
      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 class LdapSyncDao
      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 class LdapSyncDao
      attributeNames - are optional attribute names to get from the ldap object
      Returns:
      the data
    • delete

      public void delete(String ldapPoolName, String dn)
      Description copied from class: LdapSyncDao
      delete an object by dn
      Specified by:
      delete in class LdapSyncDao
    • create

      public boolean create(String ldapPoolName, LdapEntry ldapEntry)
      Description copied from class: LdapSyncDao
      create an object
      Specified by:
      create in class LdapSyncDao
      Returns:
      true if created, false if existed and updated
    • move

      public boolean move(String ldapPoolName, String oldDn, String newDn)
      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 class LdapSyncDao
      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 class LdapSyncDao