public interface ModelFactory
org.apache.directory.api.ldap.model
objects.Modifier and Type | Method and Description |
---|---|
AddRequest |
newAddRequest(Entry entry)
Returns a new
AddRequest for the entry . |
Attribute |
newAttribute(String name)
Returns a new Attribute for with the provided
name and
a null value. |
Attribute |
newAttribute(String name,
byte[]... values)
Returns a new Attribute for with the provided
name and
value(s) . |
Attribute |
newAttribute(String name,
String... values)
Returns a new Attribute for with the provided
name and
value(s) . |
Attribute |
newAttribute(String name,
Value... values)
Returns a new Attribute for with the provided
name and
value(s) . |
DeleteRequest |
newDeleteRequest(Dn dn)
Returns a new
DeleteRequest for the dn . |
Dn |
newDn(String dn)
Returns a
Dn that represents dn . |
Entry |
newEntry(Dn dn)
Returns a
Entry with the specified dn . |
Entry |
newEntry(String dn)
Returns a
Entry with the specified dn . |
ModifyRequest |
newModifyRequest(Dn dn)
Returns a new
ModifyRequest for the dn . |
ModifyRequest |
newModifyRequest(String dn)
Returns a new
ModifyRequest for the dn . |
SearchRequest |
newSearchRequest(Dn baseDn,
FilterBuilder filter,
SearchScope scope)
Returns a new
SearchRequest over baseDn in
scope matching filter returning
all normal attributes for each matching entry. |
SearchRequest |
newSearchRequest(Dn baseDn,
FilterBuilder filter,
SearchScope scope,
String... attributes)
Returns a new
SearchRequest over baseDn in
scope matching filter returning
attributes for each matching entry. |
SearchRequest |
newSearchRequest(Dn baseDn,
String filter,
SearchScope scope)
Returns a new
SearchRequest over baseDn in
scope matching filter returning
all normal attributes for each matching entry. |
SearchRequest |
newSearchRequest(Dn baseDn,
String filter,
SearchScope scope,
String... attributes)
Returns a new
SearchRequest over baseDn in
scope matching filter returning
attributes for each matching entry. |
SearchRequest |
newSearchRequest(String baseDn,
FilterBuilder filter,
SearchScope scope)
Returns a new
SearchRequest over baseDn in
scope matching filter returning
all normal attributes for each matching entry. |
SearchRequest |
newSearchRequest(String baseDn,
FilterBuilder filter,
SearchScope scope,
String... attributes)
Returns a new
SearchRequest over baseDn in
scope matching filter returning
attributes for each matching entry. |
SearchRequest |
newSearchRequest(String baseDn,
String filter,
SearchScope scope)
Returns a new
SearchRequest over baseDn in
scope matching filter returning
all normal attributes for each matching entry. |
SearchRequest |
newSearchRequest(String baseDn,
String filter,
SearchScope scope,
String... attributes)
Returns a new
SearchRequest over baseDn in
scope matching filter returning
attributes for each matching entry. |
AddRequest newAddRequest(Entry entry)
AddRequest
for the entry
.entry
- The Entry to addAttribute newAttribute(String name)
name
and
a null value. This is useful for clearing out an Attribute with a
ModifyRequest, replace function.name
- The attribute's nameAttribute newAttribute(String name, byte[]... values)
name
and
value(s)
.name
- The attribute's namevalues
- The attribute's valuesAttribute newAttribute(String name, String... values)
name
and
value(s)
.name
- The attribute's namevalues
- The attribute's valuesAttribute newAttribute(String name, Value... values)
name
and
value(s)
.name
- The attribute's namevalues
- The attribute's valuesDeleteRequest newDeleteRequest(Dn dn)
DeleteRequest
for the dn
.dn
- The Dn for the Entry to deleteDn newDn(String dn)
Dn
that represents dn
.dn
- The Entry's DnEntry newEntry(String dn)
Entry
with the specified dn
.dn
- The Entry's DnEntry newEntry(Dn dn)
Entry
with the specified dn
.dn
- The Entry's DnModifyRequest newModifyRequest(String dn)
ModifyRequest
for the dn
.dn
- The Dn of the entry to modifyModifyRequest newModifyRequest(Dn dn)
ModifyRequest
for the dn
.dn
- The DN of the entry to modifySearchRequest newSearchRequest(String baseDn, FilterBuilder filter, SearchScope scope)
SearchRequest
over baseDn
in
scope
matching filter
returning
all normal attributes for each matching entry.baseDn
- The base DN from which to start the searchfilter
- The filter selecting the entriesscope
- The scope to look fromSearchRequest newSearchRequest(String baseDn, String filter, SearchScope scope)
SearchRequest
over baseDn
in
scope
matching filter
returning
all normal attributes for each matching entry.baseDn
- The base DN from which to start the searchfilter
- The filter selecting the entriesscope
- The scope to look fromSearchRequest newSearchRequest(Dn baseDn, String filter, SearchScope scope)
SearchRequest
over baseDn
in
scope
matching filter
returning
all normal attributes for each matching entry.baseDn
- The base DN from which to start the searchfilter
- The filter selecting the entriesscope
- The scope to look fromSearchRequest newSearchRequest(Dn baseDn, FilterBuilder filter, SearchScope scope)
SearchRequest
over baseDn
in
scope
matching filter
returning
all normal attributes for each matching entry.baseDn
- The base DN from which to start the searchfilter
- The filter selecting the entriesscope
- The scope to look fromSearchRequest newSearchRequest(String baseDn, String filter, SearchScope scope, String... attributes)
SearchRequest
over baseDn
in
scope
matching filter
returning
attributes
for each matching entry.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 returnSearchRequest newSearchRequest(String baseDn, FilterBuilder filter, SearchScope scope, String... attributes)
SearchRequest
over baseDn
in
scope
matching filter
returning
attributes
for each matching entry.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 returnSearchRequest newSearchRequest(Dn baseDn, String filter, SearchScope scope, String... attributes)
SearchRequest
over baseDn
in
scope
matching filter
returning
attributes
for each matching entry.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 returnSearchRequest newSearchRequest(Dn baseDn, FilterBuilder filter, SearchScope scope, String... attributes)
SearchRequest
over baseDn
in
scope
matching filter
returning
attributes
for each matching entry.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 returnCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.