ldapEntry.setBindPrincipal(attribute.getString()); if (attribute.isHumanReadable()) { ldapEntry.put(attribute.getId(), Joiner.on(", ").join(attribute.iterator()));
/** * Sets the attribute. * * @param attribute the new attribute * @throws LdapException if the attribute is not binary. */ public void setAttribute( Attribute attribute ) throws LdapException { if ( attribute.isHumanReadable() ) { throw new LdapInvalidAttributeValueException( ResultCodeEnum.CONSTRAINT_VIOLATION, I18n.err( I18n.ERR_16007_BINARY_REQUIRED ) ); } this.attribute = attribute; }
/** * Sets the attribute. * * @param attribute the new attribute * @throws LdapException if the attribute is not binary. */ public void setAttribute( Attribute attribute ) throws LdapException { if ( attribute.isHumanReadable() ) { throw new LdapInvalidAttributeValueException( ResultCodeEnum.CONSTRAINT_VIOLATION, I18n.err( I18n.ERR_16007_BINARY_REQUIRED ) ); } this.attribute = attribute; }
/** * Sets the attribute. * * @param attribute the new attribute * @throws LdapException if the attribute is not binary. */ public void setAttribute( Attribute attribute ) throws LdapException { if ( attribute.isHumanReadable() ) { throw new LdapInvalidAttributeValueException( ResultCodeEnum.CONSTRAINT_VIOLATION, I18n.err( I18n.ERR_16007_BINARY_REQUIRED ) ); } this.attribute = attribute; }
private void applyAttributes(Map<String, Object> props, Entry entry) throws LdapInvalidAttributeValueException { for (Attribute attr: entry.getAttributes()) { if (attr.isHumanReadable()) { final Object propValue; // for multivalue properties, store as collection if (attr.size() > 1) { List<String> values = new ArrayList(); for (Value<?> value : attr) { values.add(value.getString()); } propValue = values; } else { propValue = attr.getString(); } props.put(attr.getId(), propValue); } } }
ldapEntry.setBindPrincipal(attribute.getString()); if (attribute.isHumanReadable()) { ldapEntry.put(attribute.getId(), Joiner.on(", ").join(attribute.iterator()));
if ( isHumanReadable() != other.isHumanReadable() )
if ( isHumanReadable() != other.isHumanReadable() )
if ( isHumanReadable() != other.isHumanReadable() )
if ( serverAttribute.isHumanReadable() )
isHR = attribute.isHumanReadable();
isHR = attribute.isHumanReadable();
isHR = attribute.isHumanReadable();
isHR = attribute.isHumanReadable();
isHR = attribute.isHumanReadable();
isHR = attribute.isHumanReadable();