use of com.unboundid.ldap.sdk.unboundidds.controls.SuppressType 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();
}
Aggregations