@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class JoinRequestValue extends java.lang.Object implements java.io.Serializable
JoinRequestControl
class for additional information and an example demonstrating its use.
NOTE: This class, and other classes within the
com.unboundid.ldap.sdk.unboundidds
package structure, are only
supported for use against Ping Identity, UnboundID, and
Nokia/Alcatel-Lucent 8661 server products. These classes provide support
for proprietary functionality or for external specifications that are not
considered stable or mature enough to be guaranteed to work in an
interoperable way with other types of LDAP servers.
LDAPJoin ::= SEQUENCE { joinRule JoinRule, baseObject CHOICE { useSearchBaseDN [0] NULL, useSourceEntryDN [1] NULL, useCustomBaseDN [2] LDAPDN, ... }, scope [0] ENUMERATED { baseObject (0), singleLevel (1), wholeSubtree (2), subordinateSubtree (3), ... } OPTIONAL, derefAliases [1] ENUMERATED { neverDerefAliases (0), derefInSearching (1), derefFindingBaseObj (2), derefAlways (3), ... } OPTIONAL, sizeLimit [2] INTEGER (0 .. maxInt) OPTIONAL, filter [3] Filter OPTIONAL, attributes [4] AttributeSelection OPTIONAL, requireMatch [5] BOOLEAN DEFAULT FALSE, nestedJoin [6] LDAPJoin OPTIONAL, ... }
Constructor and Description |
---|
JoinRequestValue(JoinRule joinRule,
JoinBaseDN baseDN,
SearchScope scope,
DereferencePolicy derefPolicy,
java.lang.Integer sizeLimit,
Filter filter,
java.lang.String[] attributes,
boolean requireMatch,
JoinRequestValue nestedJoin)
Creates a new join request value with the provided information.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getAttributes()
Retrieves the set of requested attributes that should be included in
joined entries.
|
JoinBaseDN |
getBaseDN()
Retrieves the join base DN for this join request value.
|
DereferencePolicy |
getDerefPolicy()
Retrieves the alias dereferencing policy for this join request value.
|
Filter |
getFilter()
Retrieves a filter with additional criteria that must match a target entry
for it to be joined with a search result entry.
|
JoinRule |
getJoinRule()
Retrieves the join rule for this join request value.
|
JoinRequestValue |
getNestedJoin()
Retrieves the nested join for this join request value, if defined.
|
SearchScope |
getScope()
Retrieves the scope for this join request value.
|
java.lang.Integer |
getSizeLimit()
Retrieves the client-requested size limit for this join request value.
|
boolean |
requireMatch()
Indicates whether a search result entry will be required to be joined with
at least one entry for that entry to be returned to the client.
|
java.lang.String |
toString()
Retrieves a string representation of this join request value.
|
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of this join request value to the provided
buffer.
|
public JoinRequestValue(@NotNull JoinRule joinRule, @NotNull JoinBaseDN baseDN, @Nullable SearchScope scope, @Nullable DereferencePolicy derefPolicy, @Nullable java.lang.Integer sizeLimit, @Nullable Filter filter, @Nullable java.lang.String[] attributes, boolean requireMatch, @Nullable JoinRequestValue nestedJoin)
joinRule
- The join rule for this join request value. It must
not be null
.baseDN
- The base DN for this join request value. It must
not be null
.scope
- The scope for this join request value. It may be
null
if the scope from the associated search
request should be used.derefPolicy
- The alias dereferencing policy for this join request
value. It may be null
if the dereference
policy from the associated search request should be
used.sizeLimit
- The client-requested maximum number of entries to
allow when performing the join. It may be
null
if the size limit from the associated
search request should be used. Note that the server
will impose a maximum size limit of 1000 entries, so
size limit values greater than 1000 will be limited
to 1000.filter
- An additional filter which must match target entries
for them to be included in the join. This may be
null
if no additional filter is required and
the join rule should be the only criteria used when
performing the join.attributes
- The set of attributes that the client wishes to be
included in joined entries. It may be null
or empty to indicate that all user attributes should
be included. It may also contain special values like
"1.1" to indicate that no attributes should be
included, "*" to indicate that all user attributes
should be included, "+" to indicate that all
operational attributes should be included, or
"@ocname" to indicate that all required and optional
attributes associated with the "ocname" object class
should be included.requireMatch
- Indicates whether a search result entry is required
to be joined with at least one entry for it to be
returned to the client.nestedJoin
- A set of join criteria that should be applied to
entries joined with this join request value. It may
be null
if no nested join is needed.@NotNull public JoinRule getJoinRule()
@NotNull public JoinBaseDN getBaseDN()
@Nullable public SearchScope getScope()
null
if the
scope from the associated search request should be used.@Nullable public DereferencePolicy getDerefPolicy()
null
if the policy from the associated search request
should be used.@Nullable public java.lang.Integer getSizeLimit()
null
if the
size limit from the associated search request should be used.@Nullable public Filter getFilter()
null
if
no additional filter is needed.@NotNull public java.lang.String[] getAttributes()
public boolean requireMatch()
true
if a search result entry must be joined with at least
one other entry for it to be returned to the client, or
false
if a search result entry may be returned even if it
is not joined with any other entries.@Nullable public JoinRequestValue getNestedJoin()
null
if
there is no nested join for this join request value.@NotNull public java.lang.String toString()
toString
in class java.lang.Object