public static interface PluginContext.ControlBuilder
Modifier and Type | Method and Description |
---|---|
AssertionRequestControl |
newAssertionRequestControl(boolean isCritical,
Filter filter)
Creates a new assertion using the provided criticality and assertion
filter.
|
AuthorizationIdentityRequestControl |
newAuthorizationIdentityRequestControl(boolean isCritical)
Creates a new authorization identity request control having the provided
criticality.
|
AuthorizationIdentityResponseControl |
newAuthorizationIdentityResponseControl(java.lang.String authorizationID)
Creates a new authorization identity response control using the provided
authorization ID.
|
Control |
newControl(java.lang.String oid,
boolean isCritical,
java.lang.Object value)
Creates a new control having the provided OID, criticality, and value.
|
EntryChangeNotificationResponseControl |
newEntryChangeNotificationResponseControl(PersistentSearchChangeType type,
DN previousName,
long changeNumber)
Creates a new entry change notification response control with the
provided change type and optional previous distinguished name and change
number.
|
GetEffectiveRightsRequestControl |
newGetEffectiveRightsRequestControl(boolean isCritical,
DN authorizationName,
java.util.Collection<AttributeType> attributes)
Creates a new get effective rights request control with the provided
criticality, optional authorization name and attribute list.
|
ManageDsaITRequestControl |
newManageDsaITRequestControl(boolean isCritical)
Creates a new ManageDsaIT request control having the provided
criticality.
|
MatchedValuesRequestControl |
newMatchedValuesRequestControl(boolean isCritical,
java.util.Collection<Filter> filters)
Creates a new matched values request control with the provided
criticality and list of filters.
|
PasswordExpiredResponseControl |
newPasswordExpiredResponseControl()
Creates a new Netscape password expired response control.
|
PasswordExpiringResponseControl |
newPasswordExpiringResponseControl(int secondsUntilExpiration)
Creates a new Netscape password expiring response control with the
provided amount of time until expiration.
|
PasswordPolicyRequestControl |
newPasswordPolicyRequestControl(boolean isCritical)
Creates a new password policy request control having the provided
criticality.
|
PasswordPolicyResponseControl |
newPasswordPolicyResponseControl(PasswordPolicyWarningType warningType,
int warningValue,
PasswordPolicyErrorType errorType)
Creates a new password policy response control with the provided warning
and error.
|
PermissiveModifyRequestControl |
newPermissiveModifyRequestControl(boolean isCritical)
Creates a new permissive modify request control having the provided
criticality.
|
PersistentSearchRequestControl |
newPersistentSearchRequestControl(boolean isCritical,
boolean changesOnly,
boolean returnECs,
java.util.Collection<PersistentSearchChangeType> changeTypes)
Creates a new persistent search request control.
|
PostReadRequestControl |
newPostReadRequestControl(boolean isCritical,
java.util.Collection<java.lang.String> attributes)
Creates a new post-read request control.
|
PostReadResponseControl |
newPostReadResponseControl(Entry entry)
Creates a new post-read response control.
|
PreReadRequestControl |
newPreReadRequestControl(boolean isCritical,
java.util.Collection<java.lang.String> attributes)
Creates a new pre-read request control.
|
PreReadResponseControl |
newPreReadResponseControl(Entry entry)
Creates a new pre-read response control.
|
ProxiedAuthV1RequestControl |
newProxiedAuthV1RequestControl(DN authorizationName)
Creates a new proxy authorization v1 request control with the provided
authorization name.
|
ProxiedAuthV2RequestControl |
newProxiedAuthV2RequestControl(java.lang.String authorizationID)
Creates a new proxy authorization v2 request control with the provided
authorization ID.
|
ServerSideSortRequestControl |
newServerSideSortRequestControl(boolean isCritical,
java.util.Collection<SortKey> keys)
Creates a new server side sort request control with the provided
criticality and list of sort keys.
|
ServerSideSortResponseControl |
newServerSideSortResponseControl(ResultCode result,
AttributeDescription attributeDescription)
Creates a new server-side response control with the provided sort result
and attribute description.
|
SimplePagedResultsControl |
newSimplePagedResultsControl(boolean isCritical,
int size,
ByteString cookie)
Creates a new simple paged results control with the provided criticality,
size, and cookie.
|
SubentriesRequestControl |
newSubentriesRequestControl(boolean isCritical)
Creates a new sub-entries request control having the provided
criticality.
|
SubtreeDeleteRequestControl |
newSubtreeDeleteRequestControl(boolean isCritical)
Creates a new tree delete request control having the provided
criticality.
|
VirtualListViewRequestControl |
newVirtualListViewRequestControl(boolean isCritical,
ByteString assertionValue,
int beforeCount,
int afterCount,
ByteString contextID)
Creates a new virtual list view request control that will identify the
target entry by an assertion value.
|
VirtualListViewRequestControl |
newVirtualListViewRequestControl(boolean isCritical,
int offset,
int contentCount,
int beforeCount,
int afterCount,
ByteString contextID)
Creates a new virtual list view request control that will identify the
target entry by a positional offset within the complete result set.
|
VirtualListViewResponseControl |
newVirtualListViewResponseControl(int targetPosition,
int contentCount,
ResultCode result,
ByteString contextID)
Creates a new virtual list view response control.
|
AssertionRequestControl newAssertionRequestControl(boolean isCritical, Filter filter) throws PluginException
isCritical
- true
if it is unacceptable to perform the operation
without applying the semantics of this control, or false
if it can be ignored.filter
- The assertion filter.PluginException
- if the provided filter is invalid.AuthorizationIdentityRequestControl newAuthorizationIdentityRequestControl(boolean isCritical)
isCritical
- true
if it is unacceptable to perform the operation
without applying the semantics of this control, or false
if it can be ignored.AuthorizationIdentityResponseControl newAuthorizationIdentityResponseControl(java.lang.String authorizationID)
authorizationID
- The authorization ID for this control.EntryChangeNotificationResponseControl newEntryChangeNotificationResponseControl(PersistentSearchChangeType type, DN previousName, long changeNumber) throws PluginException
type
- The change type for this change notification control.previousName
- The distinguished name that the entry had prior to a modify DN
operation, or null
if the operation was not a modify
DN.changeNumber
- The change number for the associated change, or a negative value
if no change number is available.PluginException
- if the provided Dn is invalid.Control newControl(java.lang.String oid, boolean isCritical, java.lang.Object value)
If value
is not an instance of ByteString
then it will be
converted using the
ByteString.valueOf(Object)
method.
oid
- The numeric OID associated with this control.isCritical
- true
if it is unacceptable to perform the operation
without applying the semantics of this control, or false
if it can be ignored.value
- The value associated with this control, or null
if there
is no value. Its format is defined by the specification of this
control.GetEffectiveRightsRequestControl newGetEffectiveRightsRequestControl(boolean isCritical, DN authorizationName, java.util.Collection<AttributeType> attributes)
isCritical
- true
if it is unacceptable to perform the operation
without applying the semantics of this control, or false
if it can be ignored.authorizationName
- The distinguished name of the user for which effective rights are
to be returned, or null
if the client's authentication ID
is to be used.attributes
- The list of attributes for which effective rights are to be
returned, which may be empty indicating that no attribute rights
are to be returned.ManageDsaITRequestControl newManageDsaITRequestControl(boolean isCritical)
isCritical
- true
if it is unacceptable to perform the operation
without applying the semantics of this control, or false
if it can be ignored.MatchedValuesRequestControl newMatchedValuesRequestControl(boolean isCritical, java.util.Collection<Filter> filters) throws PluginException
isCritical
- true
if it is unacceptable to perform the operation
without applying the semantics of this control, or false
if it can be ignored.filters
- The list of filters of which at least one must match an attribute
value in order for the attribute value to be returned to the
client. The list must not be empty.PluginException
- if one of the provided filters is invalid.PasswordExpiredResponseControl newPasswordExpiredResponseControl()
PasswordExpiringResponseControl newPasswordExpiringResponseControl(int secondsUntilExpiration)
secondsUntilExpiration
- The length of time in seconds until the password actually expires.PasswordPolicyRequestControl newPasswordPolicyRequestControl(boolean isCritical)
isCritical
- true
if it is unacceptable to perform the operation
without applying the semantics of this control, or false
if it can be ignored.PasswordPolicyResponseControl newPasswordPolicyResponseControl(PasswordPolicyWarningType warningType, int warningValue, PasswordPolicyErrorType errorType)
warningType
- The password policy warning type.warningValue
- The password policy warning value.errorType
- The password policy error type.PermissiveModifyRequestControl newPermissiveModifyRequestControl(boolean isCritical)
isCritical
- true
if it is unacceptable to perform the operation
without applying the semantics of this control, or false
if it can be ignored.PersistentSearchRequestControl newPersistentSearchRequestControl(boolean isCritical, boolean changesOnly, boolean returnECs, java.util.Collection<PersistentSearchChangeType> changeTypes)
isCritical
- true
if it is unacceptable to perform the operation
without applying the semantics of this control, or false
if it can be ignoredchangesOnly
- Indicates whether or not only updated entries should be returned
(added, modified, deleted, or subject to a modifyDN operation). If
this parameter is false
then the search will initially
return all the existing entries which match the filter.returnECs
- Indicates whether or not the entry change notification control
should be included in updated entries that match the associated
search criteria.changeTypes
- The types of update operation for which change notifications
should be returned.PostReadRequestControl newPostReadRequestControl(boolean isCritical, java.util.Collection<java.lang.String> attributes)
isCritical
- true
if it is unacceptable to perform the operation
without applying the semantics of this control, or false
if it can be ignoredattributes
- The list of attributes to be included with the response control.
Attributes that are sub-types of listed attributes are implicitly
included. The list may be empty, indicating that all user
attributes should be returned.PostReadResponseControl newPostReadResponseControl(Entry entry) throws PluginException
entry
- The entry whose contents reflect the state of the updated entry
immediately after the update operation was performed.PluginException
- if the provided entry is invalid.PreReadRequestControl newPreReadRequestControl(boolean isCritical, java.util.Collection<java.lang.String> attributes)
isCritical
- true
if it is unacceptable to perform the operation
without applying the semantics of this control, or false
if it can be ignoredattributes
- The list of attributes to be included with the response control.
Attributes that are sub-types of listed attributes are implicitly
included. The list may be empty, indicating that all user
attributes should be returned.PreReadResponseControl newPreReadResponseControl(Entry entry) throws PluginException
entry
- The entry whose contents reflect the state of the updated entry
immediately before the update operation was performed.PluginException
- if the provided entry is invalid.ProxiedAuthV1RequestControl newProxiedAuthV1RequestControl(DN authorizationName) throws PluginException
authorizationName
- The distinguished name of the user whose authorization is to be
used when performing the operation.PluginException
- if the provided Dn is invalid.ProxiedAuthV2RequestControl newProxiedAuthV2RequestControl(java.lang.String authorizationID)
authorizationID
- The authorization ID of the user whose authorization is to be used
when performing the operation.ServerSideSortRequestControl newServerSideSortRequestControl(boolean isCritical, java.util.Collection<SortKey> keys) throws PluginException
isCritical
- true
if it is unacceptable to perform the operation
without applying the semantics of this control, or false
if it can be ignored.keys
- The list of sort keys.PluginException
- if one of the sort key is invalid.ServerSideSortResponseControl newServerSideSortResponseControl(ResultCode result, AttributeDescription attributeDescription)
result
- The result code indicating the outcome of the server-side sort
request. ResultCode.SUCCESS
if the search
results were sorted in accordance with the keys specified in the
server-side sort request control, or an error code indicating why
the results could not be sorted (such as
ResultCode.NO_SUCH_ATTRIBUTE
or ResultCode.INAPPROPRIATE_MATCHING
).attributeDescription
- The first attribute description specified in the list of sort keys
that was in error, may be null
.SimplePagedResultsControl newSimplePagedResultsControl(boolean isCritical, int size, ByteString cookie)
isCritical
- true
if it is unacceptable to perform the operation
without applying the semantics of this control, or false
if it can be ignored.size
- The requested page size when used in a request control from the
client, or an estimate of the result set size when used in a
response control from the server (may be 0, indicating that the
server does not know).cookie
- An opaque cookie which is used by the server to track its position
in the set of search results. The cookie must be empty in the
initial search request sent by the client. For subsequent search
requests the client must include the cookie returned with the
previous search result, until the server returns an empty cookie
indicating that the final page of results has been returned.SubentriesRequestControl newSubentriesRequestControl(boolean isCritical)
isCritical
- true
if it is unacceptable to perform the operation
without applying the semantics of this control, or false
if it can be ignored.SubtreeDeleteRequestControl newSubtreeDeleteRequestControl(boolean isCritical)
isCritical
- true
if it is unacceptable to perform the operation
without applying the semantics of this control, or false
if it can be ignored.VirtualListViewRequestControl newVirtualListViewRequestControl(boolean isCritical, ByteString assertionValue, int beforeCount, int afterCount, ByteString contextID)
isCritical
- true
if it is unacceptable to perform the operation
without applying the semantics of this control, or false
if it can be ignored.assertionValue
- The assertion value that will be used to locate the target entry.beforeCount
- The number of entries before the target entry to be included in
the search results.afterCount
- The number of entries after the target entry to be included in the
search results.contextID
- The context ID provided by the server in the last virtual list
view response for the same set of criteria, or null
if
there was no previous virtual list view response or the server did
not include a context ID in the last response.VirtualListViewRequestControl newVirtualListViewRequestControl(boolean isCritical, int offset, int contentCount, int beforeCount, int afterCount, ByteString contextID)
isCritical
- true
if it is unacceptable to perform the operation
without applying the semantics of this control, or false
if it can be ignored.offset
- The positional offset of the target entry in the result set, where
1
is the first entry.contentCount
- The content count returned by the server in the last virtual list
view response, or 0
if this is the first virtual list view
request.beforeCount
- The number of entries before the target entry to be included in
the search results.afterCount
- The number of entries after the target entry to be included in the
search results.contextID
- The context ID provided by the server in the last virtual list
view response for the same set of criteria, or null
if
there was no previous virtual list view response or the server did
not include a context ID in the last response.VirtualListViewResponseControl newVirtualListViewResponseControl(int targetPosition, int contentCount, ResultCode result, ByteString contextID)
targetPosition
- The position of the target entry in the result set.contentCount
- An estimate of the total number of entries in the result set.result
- The result code indicating the outcome of the virtual list view
request.contextID
- A server-defined octet string. If present, the contextID should be
sent back to the server by the client in a subsequent virtual list
request.