Package com.sun.identity.sm
Class ServiceManagementDAOWrapper
- java.lang.Object
-
- com.sun.identity.sm.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 Summary
Constructors Constructor Description ServiceManagementDAOWrapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckIfEntryExists(String dn, SSOToken token)Checks if the provided DN exists.StringgetRootSuffix()Iterator<SMSDataEntry>search(SSOToken token, String dn, String filter, int numOfEntries, int timeLimit, boolean sortResults, boolean ascendingOrder, Set<String> exclude)Returns the DNs and its attribute values that match the filter.
-
-
-
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:ServiceManagementDAOReturns 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:
searchin interfaceServiceManagementDAO- Parameters:
token- Single-Sign On token.dn- Base DNfilter- Search Filter.numOfEntries- number of max entries, 0 means unlimitedtimeLimit- maximum number of seconds for the search to spend, 0 means unlimitedsortResults-trueto have result sorted.ascendingOrder-trueto 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:ServiceManagementDAOChecks if the provided DN exists. Used by PolicyManager.- Specified by:
checkIfEntryExistsin interfaceServiceManagementDAO- Parameters:
dn- The DN in question.token- Single-Sign On token.- Returns:
- Whether the DN exists.
-
getRootSuffix
public String getRootSuffix()
- Specified by:
getRootSuffixin interfaceServiceManagementDAO- Returns:
- The root suffix (dn).
-
-