Interface ModelFactory
- All Known Implementing Classes:
LdapConnectionTemplate
public interface ModelFactory
A factory for creating
objects.
invalid reference
org.apache.directory.api.ldap.model
- Author:
- Apache Directory Project
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.directory.api.ldap.model.message.AddRequestnewAddRequest(org.apache.directory.api.ldap.model.entry.Entry entry) Returns a newAddRequestfor theentry.org.apache.directory.api.ldap.model.entry.AttributenewAttribute(String name) Returns a new Attribute for with the providednameand a null value.org.apache.directory.api.ldap.model.entry.AttributenewAttribute(String name, byte[]... values) Returns a new Attribute for with the providednameandvalue(s).org.apache.directory.api.ldap.model.entry.AttributenewAttribute(String name, String... values) Returns a new Attribute for with the providednameandvalue(s).org.apache.directory.api.ldap.model.entry.AttributenewAttribute(String name, org.apache.directory.api.ldap.model.entry.Value... values) Returns a new Attribute for with the providednameandvalue(s).org.apache.directory.api.ldap.model.message.DeleteRequestnewDeleteRequest(org.apache.directory.api.ldap.model.name.Dn dn) Returns a newDeleteRequestfor thedn.org.apache.directory.api.ldap.model.name.DnReturns aDnthat representsdn.org.apache.directory.api.ldap.model.entry.EntryReturns aEntrywith the specifieddn.org.apache.directory.api.ldap.model.entry.EntrynewEntry(org.apache.directory.api.ldap.model.name.Dn dn) Returns aEntrywith the specifieddn.org.apache.directory.api.ldap.model.message.ModifyRequestReturns a newModifyRequestfor thedn.org.apache.directory.api.ldap.model.message.ModifyRequestnewModifyRequest(org.apache.directory.api.ldap.model.name.Dn dn) Returns a newModifyRequestfor thedn.org.apache.directory.api.ldap.model.message.SearchRequestnewSearchRequest(String baseDn, String filter, org.apache.directory.api.ldap.model.message.SearchScope scope) Returns a newSearchRequestoverbaseDninscopematchingfilterreturning all normal attributes for each matching entry.org.apache.directory.api.ldap.model.message.SearchRequestnewSearchRequest(String baseDn, String filter, org.apache.directory.api.ldap.model.message.SearchScope scope, String... attributes) Returns a newSearchRequestoverbaseDninscopematchingfilterreturningattributesfor each matching entry.org.apache.directory.api.ldap.model.message.SearchRequestnewSearchRequest(String baseDn, FilterBuilder filter, org.apache.directory.api.ldap.model.message.SearchScope scope) Returns a newSearchRequestoverbaseDninscopematchingfilterreturning all normal attributes for each matching entry.org.apache.directory.api.ldap.model.message.SearchRequestnewSearchRequest(String baseDn, FilterBuilder filter, org.apache.directory.api.ldap.model.message.SearchScope scope, String... attributes) Returns a newSearchRequestoverbaseDninscopematchingfilterreturningattributesfor each matching entry.org.apache.directory.api.ldap.model.message.SearchRequestnewSearchRequest(org.apache.directory.api.ldap.model.name.Dn baseDn, String filter, org.apache.directory.api.ldap.model.message.SearchScope scope) Returns a newSearchRequestoverbaseDninscopematchingfilterreturning all normal attributes for each matching entry.org.apache.directory.api.ldap.model.message.SearchRequestnewSearchRequest(org.apache.directory.api.ldap.model.name.Dn baseDn, String filter, org.apache.directory.api.ldap.model.message.SearchScope scope, String... attributes) Returns a newSearchRequestoverbaseDninscopematchingfilterreturningattributesfor each matching entry.org.apache.directory.api.ldap.model.message.SearchRequestnewSearchRequest(org.apache.directory.api.ldap.model.name.Dn baseDn, FilterBuilder filter, org.apache.directory.api.ldap.model.message.SearchScope scope) Returns a newSearchRequestoverbaseDninscopematchingfilterreturning all normal attributes for each matching entry.org.apache.directory.api.ldap.model.message.SearchRequestnewSearchRequest(org.apache.directory.api.ldap.model.name.Dn baseDn, FilterBuilder filter, org.apache.directory.api.ldap.model.message.SearchScope scope, String... attributes) Returns a newSearchRequestoverbaseDninscopematchingfilterreturningattributesfor each matching entry.
-
Method Details
-
newAddRequest
org.apache.directory.api.ldap.model.message.AddRequest newAddRequest(org.apache.directory.api.ldap.model.entry.Entry entry) Returns a newAddRequestfor theentry.- Parameters:
entry- The Entry to add- Returns:
- The resulting AddRequest
-
newAttribute
Returns a new Attribute for with the providednameand a null value. This is useful for clearing out an Attribute with a ModifyRequest, replace function.- Parameters:
name- The attribute's name- Returns:
- The resulting Attribute
-
newAttribute
Returns a new Attribute for with the providednameandvalue(s).- Parameters:
name- The attribute's namevalues- The attribute's values- Returns:
- The resulting Attribute
-
newAttribute
-
newAttribute
org.apache.directory.api.ldap.model.entry.Attribute newAttribute(String name, org.apache.directory.api.ldap.model.entry.Value... values) Returns a new Attribute for with the providednameandvalue(s).- Parameters:
name- The attribute's namevalues- The attribute's values- Returns:
- The resulting Attribute
-
newDeleteRequest
org.apache.directory.api.ldap.model.message.DeleteRequest newDeleteRequest(org.apache.directory.api.ldap.model.name.Dn dn) Returns a newDeleteRequestfor thedn.- Parameters:
dn- The Dn for the Entry to delete- Returns:
- The resulting DeleteRequest
-
newDn
Returns aDnthat representsdn.- Parameters:
dn- The Entry's Dn- Returns:
- The resulting Dn
-
newEntry
Returns aEntrywith the specifieddn.- Parameters:
dn- The Entry's Dn- Returns:
- The resulting Entry
-
newEntry
org.apache.directory.api.ldap.model.entry.Entry newEntry(org.apache.directory.api.ldap.model.name.Dn dn) Returns aEntrywith the specifieddn.- Parameters:
dn- The Entry's Dn- Returns:
- The resulting Entry
-
newModifyRequest
Returns a newModifyRequestfor thedn.- Parameters:
dn- The Dn of the entry to modify- Returns:
- The resulting ModifyRequest
-
newModifyRequest
org.apache.directory.api.ldap.model.message.ModifyRequest newModifyRequest(org.apache.directory.api.ldap.model.name.Dn dn) Returns a newModifyRequestfor thedn.- Parameters:
dn- The DN of the entry to modify- Returns:
- The resulting ModifyRequest
-
newSearchRequest
org.apache.directory.api.ldap.model.message.SearchRequest newSearchRequest(String baseDn, FilterBuilder filter, org.apache.directory.api.ldap.model.message.SearchScope scope) Returns a newSearchRequestoverbaseDninscopematchingfilterreturning all normal attributes for each matching entry.- 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
org.apache.directory.api.ldap.model.message.SearchRequest newSearchRequest(String baseDn, String filter, org.apache.directory.api.ldap.model.message.SearchScope scope) Returns a newSearchRequestoverbaseDninscopematchingfilterreturning all normal attributes for each matching entry.- 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
org.apache.directory.api.ldap.model.message.SearchRequest newSearchRequest(org.apache.directory.api.ldap.model.name.Dn baseDn, String filter, org.apache.directory.api.ldap.model.message.SearchScope scope) Returns a newSearchRequestoverbaseDninscopematchingfilterreturning all normal attributes for each matching entry.- 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
org.apache.directory.api.ldap.model.message.SearchRequest newSearchRequest(org.apache.directory.api.ldap.model.name.Dn baseDn, FilterBuilder filter, org.apache.directory.api.ldap.model.message.SearchScope scope) Returns a newSearchRequestoverbaseDninscopematchingfilterreturning all normal attributes for each matching entry.- 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
org.apache.directory.api.ldap.model.message.SearchRequest newSearchRequest(String baseDn, String filter, org.apache.directory.api.ldap.model.message.SearchScope scope, String... attributes) Returns a newSearchRequestoverbaseDninscopematchingfilterreturningattributesfor each matching entry.- 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
org.apache.directory.api.ldap.model.message.SearchRequest newSearchRequest(String baseDn, FilterBuilder filter, org.apache.directory.api.ldap.model.message.SearchScope scope, String... attributes) Returns a newSearchRequestoverbaseDninscopematchingfilterreturningattributesfor each matching entry.- 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
org.apache.directory.api.ldap.model.message.SearchRequest newSearchRequest(org.apache.directory.api.ldap.model.name.Dn baseDn, String filter, org.apache.directory.api.ldap.model.message.SearchScope scope, String... attributes) Returns a newSearchRequestoverbaseDninscopematchingfilterreturningattributesfor each matching entry.- 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
org.apache.directory.api.ldap.model.message.SearchRequest newSearchRequest(org.apache.directory.api.ldap.model.name.Dn baseDn, FilterBuilder filter, org.apache.directory.api.ldap.model.message.SearchScope scope, String... attributes) Returns a newSearchRequestoverbaseDninscopematchingfilterreturningattributesfor each matching entry.- 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
-