Class ServiceManagementDAOWrapper

  • All Implemented Interfaces:
    ServiceManagementDAO

    public class ServiceManagementDAOWrapper
    extends Object
    implements ServiceManagementDAO
    Until SMSEntry is refactored to separate out its various responsibilities, for now this wrapper class delegates to it. This allows consumers to not be coupled to a concrete implementation and to static method calls.
    Author:
    apforrest
    • Constructor Detail

      • ServiceManagementDAOWrapper

        public ServiceManagementDAOWrapper()
    • Method Detail

      • search

        public Iterator<SMSDataEntry> search​(SSOToken token,
                                             String dn,
                                             String filter,
                                             int numOfEntries,
                                             int timeLimit,
                                             boolean sortResults,
                                             boolean ascendingOrder,
                                             Set<String> exclude)
                                      throws SMSException
        Description copied from interface: ServiceManagementDAO
        Returns the DNs and its attribute values that match the filter. The search is performed from the root suffix ie., DN. It searches for SMS objects only.
        Specified by:
        search in interface ServiceManagementDAO
        Parameters:
        token - Single-Sign On token.
        dn - Base DN
        filter - Search Filter.
        numOfEntries - number of max entries, 0 means unlimited
        timeLimit - maximum number of seconds for the search to spend, 0 means unlimited
        sortResults - true to have result sorted.
        ascendingOrder - true to have result sorted in ascending order.
        exclude - List of DN to exclude.
        Returns:
        DNs and its attribute values that match the filter.
        Throws:
        SMSException - When an underlying error occurs.
      • checkIfEntryExists

        public boolean checkIfEntryExists​(String dn,
                                          SSOToken token)
        Description copied from interface: ServiceManagementDAO
        Checks if the provided DN exists. Used by PolicyManager.
        Specified by:
        checkIfEntryExists in interface ServiceManagementDAO
        Parameters:
        dn - The DN in question.
        token - Single-Sign On token.
        Returns:
        Whether the DN exists.