/** * {@inheritDoc} */ @Override public Entry add( AttributeType attributeType, Value... values ) throws LdapException { if ( attributeType == null ) { String message = I18n.err( I18n.ERR_13203_ATTRIBUTE_TYPE_NULL_NOT_ALLOWED ); LOG.error( message ); throw new IllegalArgumentException( message ); } Attribute attribute = attributes.get( attributeType.getOid() ); if ( attribute != null ) { // This Attribute already exist, we add the values // into it attribute.add( values ); } else { // We have to create a new Attribute and set the values. // The upId, which is set to null, will be setup by the // createAttribute method createAttribute( null, attributeType, values ); } return this; }
/** * {@inheritDoc} */ @Override public Entry add( AttributeType attributeType, Value... values ) throws LdapException { if ( attributeType == null ) { String message = I18n.err( I18n.ERR_13203_ATTRIBUTE_TYPE_NULL_NOT_ALLOWED ); LOG.error( message ); throw new IllegalArgumentException( message ); } Attribute attribute = attributes.get( attributeType.getOid() ); if ( attribute != null ) { // This Attribute already exist, we add the values // into it attribute.add( values ); } else { // We have to create a new Attribute and set the values. // The upId, which is set to null, will be setup by the // createAttribute method createAttribute( null, attributeType, values ); } return this; }
/** * {@inheritDoc} */ @Override public Entry add( AttributeType attributeType, String... values ) throws LdapException { if ( attributeType == null ) { String message = I18n.err( I18n.ERR_13203_ATTRIBUTE_TYPE_NULL_NOT_ALLOWED ); LOG.error( message ); throw new IllegalArgumentException( message ); } Attribute attribute = attributes.get( attributeType.getOid() ); if ( attribute != null ) { // This Attribute already exist, we add the values // into it attribute.add( values ); } else { // We have to create a new Attribute and set the values. // The upId, which is set to null, will be setup by the // createAttribute method createAttribute( null, attributeType, values ); } return this; }
/** * {@inheritDoc} */ @Override public Entry add( AttributeType attributeType, Value... values ) throws LdapException { if ( attributeType == null ) { String message = I18n.err( I18n.ERR_13203_ATTRIBUTE_TYPE_NULL_NOT_ALLOWED ); LOG.error( message ); throw new IllegalArgumentException( message ); } Attribute attribute = attributes.get( attributeType.getOid() ); if ( attribute != null ) { // This Attribute already exist, we add the values // into it attribute.add( values ); } else { // We have to create a new Attribute and set the values. // The upId, which is set to null, will be setup by the // createAttribute method createAttribute( null, attributeType, values ); } return this; }
/** * {@inheritDoc} */ @Override public Entry add( AttributeType attributeType, String... values ) throws LdapException { if ( attributeType == null ) { String message = I18n.err( I18n.ERR_13203_ATTRIBUTE_TYPE_NULL_NOT_ALLOWED ); LOG.error( message ); throw new IllegalArgumentException( message ); } Attribute attribute = attributes.get( attributeType.getOid() ); if ( attribute != null ) { // This Attribute already exist, we add the values // into it attribute.add( values ); } else { // We have to create a new Attribute and set the values. // The upId, which is set to null, will be setup by the // createAttribute method createAttribute( null, attributeType, values ); } return this; }
/** * {@inheritDoc} */ @Override public Entry add( AttributeType attributeType, String... values ) throws LdapException { if ( attributeType == null ) { String message = I18n.err( I18n.ERR_13203_ATTRIBUTE_TYPE_NULL_NOT_ALLOWED ); LOG.error( message ); throw new IllegalArgumentException( message ); } Attribute attribute = attributes.get( attributeType.getOid() ); if ( attribute != null ) { // This Attribute already exist, we add the values // into it attribute.add( values ); } else { // We have to create a new Attribute and set the values. // The upId, which is set to null, will be setup by the // createAttribute method createAttribute( null, attributeType, values ); } return this; }
/** * {@inheritDoc} */ @Override public Entry add( String upId, AttributeType attributeType, Value... values ) throws LdapException { if ( attributeType == null ) { String message = I18n.err( I18n.ERR_13203_ATTRIBUTE_TYPE_NULL_NOT_ALLOWED ); LOG.error( message ); throw new IllegalArgumentException( message ); } String id = getUpId( upId, attributeType ); Attribute attribute = attributes.get( attributeType.getOid() ); if ( attribute != null ) { // This Attribute already exist, we add the values // into it attribute.add( values ); attribute.setUpId( id, attributeType ); } else { createAttribute( id, attributeType, values ); } return this; }
createAttribute( null, attributeType, values );
createAttribute( null, attributeType, values );
createAttribute( null, attributeType, values );
/** * {@inheritDoc} */ @Override public Entry add( String upId, AttributeType attributeType, Value... values ) throws LdapException { if ( attributeType == null ) { String message = I18n.err( I18n.ERR_13203_ATTRIBUTE_TYPE_NULL_NOT_ALLOWED ); LOG.error( message ); throw new IllegalArgumentException( message ); } String id = getUpId( upId, attributeType ); Attribute attribute = attributes.get( attributeType.getOid() ); if ( attribute != null ) { // This Attribute already exist, we add the values // into it attribute.add( values ); attribute.setUpId( id, attributeType ); } else { createAttribute( id, attributeType, values ); } return this; }
/** * {@inheritDoc} */ @Override public Entry add( String upId, AttributeType attributeType, String... values ) throws LdapException { if ( attributeType == null ) { String message = I18n.err( I18n.ERR_13203_ATTRIBUTE_TYPE_NULL_NOT_ALLOWED ); LOG.error( message ); throw new IllegalArgumentException( message ); } String id = getUpId( upId, attributeType ); Attribute attribute = attributes.get( attributeType.getOid() ); if ( attribute != null ) { // This Attribute already exist, we add the values // into it attribute.add( values ); attribute.setUpId( id, attributeType ); } else { // We have to create a new Attribute and set the values // and the upId createAttribute( id, attributeType, values ); } return this; }
/** * {@inheritDoc} */ @Override public Entry add( String upId, AttributeType attributeType, Value... values ) throws LdapException { if ( attributeType == null ) { String message = I18n.err( I18n.ERR_13203_ATTRIBUTE_TYPE_NULL_NOT_ALLOWED ); LOG.error( message ); throw new IllegalArgumentException( message ); } String id = getUpId( upId, attributeType ); Attribute attribute = attributes.get( attributeType.getOid() ); if ( attribute != null ) { // This Attribute already exist, we add the values // into it attribute.add( values ); attribute.setUpId( id, attributeType ); } else { createAttribute( id, attributeType, values ); } return this; }
/** * {@inheritDoc} */ @Override public Entry add( String upId, AttributeType attributeType, String... values ) throws LdapException { if ( attributeType == null ) { String message = I18n.err( I18n.ERR_13203_ATTRIBUTE_TYPE_NULL_NOT_ALLOWED ); LOG.error( message ); throw new IllegalArgumentException( message ); } String id = getUpId( upId, attributeType ); Attribute attribute = attributes.get( attributeType.getOid() ); if ( attribute != null ) { // This Attribute already exist, we add the values // into it attribute.add( values ); attribute.setUpId( id, attributeType ); } else { // We have to create a new Attribute and set the values // and the upId createAttribute( id, attributeType, values ); } return this; }
/** * {@inheritDoc} */ @Override public Entry add( String upId, AttributeType attributeType, String... values ) throws LdapException { if ( attributeType == null ) { String message = I18n.err( I18n.ERR_13203_ATTRIBUTE_TYPE_NULL_NOT_ALLOWED ); LOG.error( message ); throw new IllegalArgumentException( message ); } String id = getUpId( upId, attributeType ); Attribute attribute = attributes.get( attributeType.getOid() ); if ( attribute != null ) { // This Attribute already exist, we add the values // into it attribute.add( values ); attribute.setUpId( id, attributeType ); } else { // We have to create a new Attribute and set the values // and the upId createAttribute( id, attributeType, values ); } return this; }
/** * {@inheritDoc} */ @Override public Entry add( String upId, AttributeType attributeType, byte[]... values ) throws LdapException { // ObjectClass with binary values are not allowed if ( attributeType.equals( objectClassAttributeType ) ) { String message = I18n.err( I18n.ERR_13227_NON_STRING_VALUE_NOT_ALLOWED ); LOG.error( message ); throw new UnsupportedOperationException( message ); } Attribute attribute = attributes.get( attributeType.getOid() ); String id = getUpId( upId, attributeType ); if ( attribute != null ) { // This Attribute already exist, we add the values // into it attribute.add( values ); attribute.setUpId( id, attributeType ); } else { // We have to create a new Attribute and set the values // and the upId createAttribute( id, attributeType, values ); } return this; }
/** * {@inheritDoc} */ @Override public Entry add( String upId, AttributeType attributeType, byte[]... values ) throws LdapException { // ObjectClass with binary values are not allowed if ( attributeType.equals( objectClassAttributeType ) ) { String message = I18n.err( I18n.ERR_13227_NON_STRING_VALUE_NOT_ALLOWED ); LOG.error( message ); throw new UnsupportedOperationException( message ); } Attribute attribute = attributes.get( attributeType.getOid() ); String id = getUpId( upId, attributeType ); if ( attribute != null ) { // This Attribute already exist, we add the values // into it attribute.add( values ); attribute.setUpId( id, attributeType ); } else { // We have to create a new Attribute and set the values // and the upId createAttribute( id, attributeType, values ); } return this; }
/** * {@inheritDoc} */ @Override public Entry add( String upId, AttributeType attributeType, byte[]... values ) throws LdapException { // ObjectClass with binary values are not allowed if ( attributeType.equals( objectClassAttributeType ) ) { String message = I18n.err( I18n.ERR_13227_NON_STRING_VALUE_NOT_ALLOWED ); LOG.error( message ); throw new UnsupportedOperationException( message ); } Attribute attribute = attributes.get( attributeType.getOid() ); String id = getUpId( upId, attributeType ); if ( attribute != null ) { // This Attribute already exist, we add the values // into it attribute.add( values ); attribute.setUpId( id, attributeType ); } else { // We have to create a new Attribute and set the values // and the upId createAttribute( id, attributeType, values ); } return this; }