Search in sources :

Example 6 with SuppressOperationalAttributeUpdateRequestControl

use of com.unboundid.ldap.sdk.unboundidds.controls.SuppressOperationalAttributeUpdateRequestControl in project ldapsdk by pingidentity.

the class ParallelUpdate method getBindControls.

/**
 * {@inheritDoc}
 */
@Override()
@NotNull()
protected List<Control> getBindControls() {
    final List<Control> bindControls = new ArrayList<>();
    if ((bindControlArg != null) && bindControlArg.isPresent()) {
        bindControls.addAll(bindControlArg.getValues());
    }
    if ((suppressOperationalAttributeUpdatesArg != null) && suppressOperationalAttributeUpdatesArg.isPresent()) {
        final EnumSet<SuppressType> suppressTypes = EnumSet.noneOf(SuppressType.class);
        for (final String s : suppressOperationalAttributeUpdatesArg.getValues()) {
            if (s.equalsIgnoreCase(SUPPRESS_OP_ATTR_LAST_ACCESS_TIME)) {
                suppressTypes.add(SuppressType.LAST_ACCESS_TIME);
            } else if (s.equalsIgnoreCase(SUPPRESS_OP_ATTR_LAST_LOGIN_TIME)) {
                suppressTypes.add(SuppressType.LAST_LOGIN_TIME);
            } else if (s.equalsIgnoreCase(SUPPRESS_OP_ATTR_LAST_LOGIN_IP)) {
                suppressTypes.add(SuppressType.LAST_LOGIN_IP);
            }
        }
        bindControls.add(new SuppressOperationalAttributeUpdateRequestControl(true, suppressTypes));
    }
    return Collections.emptyList();
}
Also used : Control(com.unboundid.ldap.sdk.Control) HardDeleteRequestControl(com.unboundid.ldap.sdk.unboundidds.controls.HardDeleteRequestControl) IgnoreNoUserModificationRequestControl(com.unboundid.ldap.sdk.unboundidds.controls.IgnoreNoUserModificationRequestControl) ProxiedAuthorizationV2RequestControl(com.unboundid.ldap.sdk.controls.ProxiedAuthorizationV2RequestControl) AssuredReplicationRequestControl(com.unboundid.ldap.sdk.unboundidds.controls.AssuredReplicationRequestControl) SuppressOperationalAttributeUpdateRequestControl(com.unboundid.ldap.sdk.unboundidds.controls.SuppressOperationalAttributeUpdateRequestControl) NameWithEntryUUIDRequestControl(com.unboundid.ldap.sdk.unboundidds.controls.NameWithEntryUUIDRequestControl) SoftDeleteRequestControl(com.unboundid.ldap.sdk.unboundidds.controls.SoftDeleteRequestControl) ReplicationRepairRequestControl(com.unboundid.ldap.sdk.unboundidds.controls.ReplicationRepairRequestControl) ProxiedAuthorizationV1RequestControl(com.unboundid.ldap.sdk.controls.ProxiedAuthorizationV1RequestControl) OperationPurposeRequestControl(com.unboundid.ldap.sdk.unboundidds.controls.OperationPurposeRequestControl) SuppressReferentialIntegrityUpdatesRequestControl(com.unboundid.ldap.sdk.unboundidds.controls.SuppressReferentialIntegrityUpdatesRequestControl) PasswordUpdateBehaviorRequestControl(com.unboundid.ldap.sdk.unboundidds.controls.PasswordUpdateBehaviorRequestControl) ManageDsaITRequestControl(com.unboundid.ldap.sdk.controls.ManageDsaITRequestControl) PermissiveModifyRequestControl(com.unboundid.ldap.sdk.controls.PermissiveModifyRequestControl) ArrayList(java.util.ArrayList) SuppressType(com.unboundid.ldap.sdk.unboundidds.controls.SuppressType) SuppressOperationalAttributeUpdateRequestControl(com.unboundid.ldap.sdk.unboundidds.controls.SuppressOperationalAttributeUpdateRequestControl) NotNull(com.unboundid.util.NotNull)

Aggregations

ManageDsaITRequestControl (com.unboundid.ldap.sdk.controls.ManageDsaITRequestControl)6 ProxiedAuthorizationV1RequestControl (com.unboundid.ldap.sdk.controls.ProxiedAuthorizationV1RequestControl)6 ProxiedAuthorizationV2RequestControl (com.unboundid.ldap.sdk.controls.ProxiedAuthorizationV2RequestControl)6 OperationPurposeRequestControl (com.unboundid.ldap.sdk.unboundidds.controls.OperationPurposeRequestControl)6 SuppressOperationalAttributeUpdateRequestControl (com.unboundid.ldap.sdk.unboundidds.controls.SuppressOperationalAttributeUpdateRequestControl)6 SuppressType (com.unboundid.ldap.sdk.unboundidds.controls.SuppressType)6 ArrayList (java.util.ArrayList)5 ASN1OctetString (com.unboundid.asn1.ASN1OctetString)4 Control (com.unboundid.ldap.sdk.Control)4 AssertionRequestControl (com.unboundid.ldap.sdk.controls.AssertionRequestControl)4 PermissiveModifyRequestControl (com.unboundid.ldap.sdk.controls.PermissiveModifyRequestControl)4 AssuredReplicationRequestControl (com.unboundid.ldap.sdk.unboundidds.controls.AssuredReplicationRequestControl)4 GetBackendSetIDRequestControl (com.unboundid.ldap.sdk.unboundidds.controls.GetBackendSetIDRequestControl)4 GetServerIDRequestControl (com.unboundid.ldap.sdk.unboundidds.controls.GetServerIDRequestControl)4 HardDeleteRequestControl (com.unboundid.ldap.sdk.unboundidds.controls.HardDeleteRequestControl)4 IgnoreNoUserModificationRequestControl (com.unboundid.ldap.sdk.unboundidds.controls.IgnoreNoUserModificationRequestControl)4 NameWithEntryUUIDRequestControl (com.unboundid.ldap.sdk.unboundidds.controls.NameWithEntryUUIDRequestControl)4 PasswordPolicyRequestControl (com.unboundid.ldap.sdk.unboundidds.controls.PasswordPolicyRequestControl)4 PasswordUpdateBehaviorRequestControl (com.unboundid.ldap.sdk.unboundidds.controls.PasswordUpdateBehaviorRequestControl)4 ReplicationRepairRequestControl (com.unboundid.ldap.sdk.unboundidds.controls.ReplicationRepairRequestControl)4