Class ModelFactoryImpl
- java.lang.Object
-
- org.apache.directory.ldap.client.template.ModelFactoryImpl
-
- All Implemented Interfaces:
ModelFactory
class ModelFactoryImpl extends Object implements ModelFactory
The default implementation ofModelFactory.- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description ModelFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AddRequestnewAddRequest(Entry entry)Returns a newAddRequestfor theentry.AttributenewAttribute(String name)Returns a new Attribute for with the providednameand a null value.AttributenewAttribute(String name, byte[]... values)Returns a new Attribute for with the providednameandvalue(s).AttributenewAttribute(String name, String... values)Returns a new Attribute for with the providednameandvalue(s).AttributenewAttribute(String name, Value... values)Returns a new Attribute for with the providednameandvalue(s).DeleteRequestnewDeleteRequest(Dn dn)Returns a newDeleteRequestfor thedn.DnnewDn(String dn)Returns aDnthat representsdn.EntrynewEntry(String dn)Returns aEntrywith the specifieddn.EntrynewEntry(Dn dn)Returns aEntrywith the specifieddn.ModifyRequestnewModifyRequest(String dn)Returns a newModifyRequestfor thedn.ModifyRequestnewModifyRequest(Dn dn)Returns a newModifyRequestfor thedn.SearchRequestnewSearchRequest(String baseDn, String filter, SearchScope scope)Returns a newSearchRequestoverbaseDninscopematchingfilterreturning all normal attributes for each matching entry.SearchRequestnewSearchRequest(String baseDn, String filter, SearchScope scope, String... attributes)Returns a newSearchRequestoverbaseDninscopematchingfilterreturningattributesfor each matching entry.SearchRequestnewSearchRequest(String baseDn, FilterBuilder filter, SearchScope scope)Returns a newSearchRequestoverbaseDninscopematchingfilterreturning all normal attributes for each matching entry.SearchRequestnewSearchRequest(String baseDn, FilterBuilder filter, SearchScope scope, String... attributes)Returns a newSearchRequestoverbaseDninscopematchingfilterreturningattributesfor each matching entry.SearchRequestnewSearchRequest(Dn baseDn, String filter, SearchScope scope)Returns a newSearchRequestoverbaseDninscopematchingfilterreturning all normal attributes for each matching entry.SearchRequestnewSearchRequest(Dn baseDn, String filter, SearchScope scope, String... attributes)Returns a newSearchRequestoverbaseDninscopematchingfilterreturningattributesfor each matching entry.SearchRequestnewSearchRequest(Dn baseDn, FilterBuilder filter, SearchScope scope)Returns a newSearchRequestoverbaseDninscopematchingfilterreturning all normal attributes for each matching entry.SearchRequestnewSearchRequest(Dn baseDn, FilterBuilder filter, SearchScope scope, String... attributes)Returns a newSearchRequestoverbaseDninscopematchingfilterreturningattributesfor each matching entry.
-
-
-
Method Detail
-
newAddRequest
public AddRequest newAddRequest(Entry entry)
Returns a newAddRequestfor theentry.- Specified by:
newAddRequestin interfaceModelFactory- Parameters:
entry- The Entry to add- Returns:
- The resulting AddRequest
-
newAttribute
public Attribute newAttribute(String name)
Returns a new Attribute for with the providednameand a null value. This is useful for clearing out an Attribute with a ModifyRequest, replace function.- Specified by:
newAttributein interfaceModelFactory- Parameters:
name- The attribute's name- Returns:
- The resulting Attribute
-
newAttribute
public Attribute newAttribute(String name, byte[]... values)
Returns a new Attribute for with the providednameandvalue(s).- Specified by:
newAttributein interfaceModelFactory- Parameters:
name- The attribute's namevalues- The attribute's values- Returns:
- The resulting Attribute
-
newAttribute
public Attribute newAttribute(String name, String... values)
Returns a new Attribute for with the providednameandvalue(s).- Specified by:
newAttributein interfaceModelFactory- Parameters:
name- The attribute's namevalues- The attribute's values- Returns:
- The resulting Attribute
-
newAttribute
public Attribute newAttribute(String name, Value... values)
Returns a new Attribute for with the providednameandvalue(s).- Specified by:
newAttributein interfaceModelFactory- Parameters:
name- The attribute's namevalues- The attribute's values- Returns:
- The resulting Attribute
-
newDeleteRequest
public DeleteRequest newDeleteRequest(Dn dn)
Returns a newDeleteRequestfor thedn.- Specified by:
newDeleteRequestin interfaceModelFactory- Parameters:
dn- The Dn for the Entry to delete- Returns:
- The resulting DeleteRequest
-
newDn
public Dn newDn(String dn)
Returns aDnthat representsdn.- Specified by:
newDnin interfaceModelFactory- Parameters:
dn- The Entry's Dn- Returns:
- The resulting Dn
-
newEntry
public Entry newEntry(String dn)
Returns aEntrywith the specifieddn.- Specified by:
newEntryin interfaceModelFactory- Parameters:
dn- The Entry's Dn- Returns:
- The resulting Entry
-
newEntry
public Entry newEntry(Dn dn)
Returns aEntrywith the specifieddn.- Specified by:
newEntryin interfaceModelFactory- Parameters:
dn- The Entry's Dn- Returns:
- The resulting Entry
-
newModifyRequest
public ModifyRequest newModifyRequest(String dn)
Returns a newModifyRequestfor thedn.- Specified by:
newModifyRequestin interfaceModelFactory- Parameters:
dn- The Dn of the entry to modify- Returns:
- The resulting ModifyRequest
-
newModifyRequest
public ModifyRequest newModifyRequest(Dn dn)
Returns a newModifyRequestfor thedn.- Specified by:
newModifyRequestin interfaceModelFactory- Parameters:
dn- The DN of the entry to modify- Returns:
- The resulting ModifyRequest
-
newSearchRequest
public SearchRequest newSearchRequest(String baseDn, FilterBuilder filter, SearchScope scope)
Returns a newSearchRequestoverbaseDninscopematchingfilterreturning all normal attributes for each matching entry.- Specified by:
newSearchRequestin interfaceModelFactory- Parameters:
baseDn- The base DN from which to start the searchfilter- The filter selecting the entriesscope- The scope to look from- Returns:
- The resulting SearchRequest
-
newSearchRequest
public SearchRequest newSearchRequest(String baseDn, String filter, SearchScope scope)
Returns a newSearchRequestoverbaseDninscopematchingfilterreturning all normal attributes for each matching entry.- Specified by:
newSearchRequestin interfaceModelFactory- Parameters:
baseDn- The base DN from which to start the searchfilter- The filter selecting the entriesscope- The scope to look from- Returns:
- The resulting SearchRequest
-
newSearchRequest
public SearchRequest newSearchRequest(Dn baseDn, FilterBuilder filter, SearchScope scope)
Returns a newSearchRequestoverbaseDninscopematchingfilterreturning all normal attributes for each matching entry.- Specified by:
newSearchRequestin interfaceModelFactory- Parameters:
baseDn- The base DN from which to start the searchfilter- The filter selecting the entriesscope- The scope to look from- Returns:
- The resulting SearchRequest
-
newSearchRequest
public SearchRequest newSearchRequest(Dn baseDn, String filter, SearchScope scope)
Returns a newSearchRequestoverbaseDninscopematchingfilterreturning all normal attributes for each matching entry.- Specified by:
newSearchRequestin interfaceModelFactory- Parameters:
baseDn- The base DN from which to start the searchfilter- The filter selecting the entriesscope- The scope to look from- Returns:
- The resulting SearchRequest
-
newSearchRequest
public SearchRequest newSearchRequest(String baseDn, FilterBuilder filter, SearchScope scope, String... attributes)
Returns a newSearchRequestoverbaseDninscopematchingfilterreturningattributesfor each matching entry.- Specified by:
newSearchRequestin interfaceModelFactory- Parameters:
baseDn- The base DN from which to start the searchfilter- The filter selecting the entriesscope- The scope to look fromattributes- The list of AttributeType to return- Returns:
- The resulting SearchRequest
-
newSearchRequest
public SearchRequest newSearchRequest(String baseDn, String filter, SearchScope scope, String... attributes)
Returns a newSearchRequestoverbaseDninscopematchingfilterreturningattributesfor each matching entry.- Specified by:
newSearchRequestin interfaceModelFactory- Parameters:
baseDn- The base DN from which to start the searchfilter- The filter selecting the entriesscope- The scope to look fromattributes- The list of AttributeType to return- Returns:
- The resulting SearchRequest
-
newSearchRequest
public SearchRequest newSearchRequest(Dn baseDn, FilterBuilder filter, SearchScope scope, String... attributes)
Returns a newSearchRequestoverbaseDninscopematchingfilterreturningattributesfor each matching entry.- Specified by:
newSearchRequestin interfaceModelFactory- Parameters:
baseDn- The base DN from which to start the searchfilter- The filter selecting the entriesscope- The scope to look fromattributes- The list of AttributeType to return- Returns:
- The resulting SearchRequest
-
newSearchRequest
public SearchRequest newSearchRequest(Dn baseDn, String filter, SearchScope scope, String... attributes)
Returns a newSearchRequestoverbaseDninscopematchingfilterreturningattributesfor each matching entry.- Specified by:
newSearchRequestin interfaceModelFactory- Parameters:
baseDn- The base DN from which to start the searchfilter- The filter selecting the entriesscope- The scope to look fromattributes- The list of AttributeType to return- Returns:
- The resulting SearchRequest
-
-