/** * Add a new EntryAttribute, with its upId. If the upId is null, * default to the AttributeType name. * * Updates the AttributeMap. * * @param upId The user provided ID for the attribute to create * @param attributeType The AttributeType to use * @param values The values to add to this attribute * @throws LdapInvalidAttributeValueException If one of the value is incorrect */ protected void createAttribute( String upId, AttributeType attributeType, Value... values ) throws LdapInvalidAttributeValueException { Attribute attribute = new DefaultAttribute( attributeType, values ); attribute.setUpId( upId, attributeType ); attributes.put( attributeType.getOid(), attribute ); }
/** * Add a new EntryAttribute, with its upId. If the upId is null, * default to the AttributeType name. * * Updates the AttributeMap. * * @param upId The user provided ID for the attribute to create * @param attributeType The AttributeType to use * @param values The values to add to this attribute * @throws LdapInvalidAttributeValueException If one of the value is incorrect */ protected void createAttribute( String upId, AttributeType attributeType, byte[]... values ) throws LdapInvalidAttributeValueException { Attribute attribute = new DefaultAttribute( attributeType, values ); attribute.setUpId( upId, attributeType ); attributes.put( attributeType.getOid(), attribute ); }
/** * Add a new EntryAttribute, with its upId. If the upId is null, * default to the AttributeType name. * * Updates the AttributeMap. * * @param upId The user provided ID for the attribute to create * @param attributeType The AttributeType to use * @param values The values to add to this attribute * @throws LdapInvalidAttributeValueException If one of the value is incorrect */ protected void createAttribute( String upId, AttributeType attributeType, String... values ) throws LdapInvalidAttributeValueException { Attribute attribute = new DefaultAttribute( attributeType, values ); attribute.setUpId( upId, attributeType ); attributes.put( attributeType.getOid(), attribute ); }
/** * Add a new EntryAttribute, with its upId. If the upId is null, * default to the AttributeType name. * * Updates the AttributeMap. * * @param upId The user provided ID for the attribute to create * @param attributeType The AttributeType to use * @param values The values to add to this attribute * @throws LdapInvalidAttributeValueException If one of the value is incorrect */ protected void createAttribute( String upId, AttributeType attributeType, Value... values ) throws LdapInvalidAttributeValueException { Attribute attribute = new DefaultAttribute( attributeType, values ); attribute.setUpId( upId, attributeType ); attributes.put( attributeType.getOid(), attribute ); }
/** * Add a new EntryAttribute, with its upId. If the upId is null, * default to the AttributeType name. * * Updates the AttributeMap. * * @param upId The user provided ID for the attribute to create * @param attributeType The AttributeType to use * @param values The values to add to this attribute * @throws LdapInvalidAttributeValueException If one of the value is incorrect */ protected void createAttribute( String upId, AttributeType attributeType, byte[]... values ) throws LdapInvalidAttributeValueException { Attribute attribute = new DefaultAttribute( attributeType, values ); attribute.setUpId( upId, attributeType ); attributes.put( attributeType.getOid(), attribute ); }
/** * Add a new EntryAttribute, with its upId. If the upId is null, * default to the AttributeType name. * * Updates the AttributeMap. * * @param upId The user provided ID for the attribute to create * @param attributeType The AttributeType to use * @param values The values to add to this attribute * @throws LdapInvalidAttributeValueException If one of the value is incorrect */ protected void createAttribute( String upId, AttributeType attributeType, byte[]... values ) throws LdapInvalidAttributeValueException { Attribute attribute = new DefaultAttribute( attributeType, values ); attribute.setUpId( upId, attributeType ); attributes.put( attributeType.getOid(), attribute ); }
/** * Add a new EntryAttribute, with its upId. If the upId is null, * default to the AttributeType name. * * Updates the AttributeMap. * * @param upId The user provided ID for the attribute to create * @param attributeType The AttributeType to use * @param values The values to add to this attribute * @throws LdapInvalidAttributeValueException If one of the value is incorrect */ protected void createAttribute( String upId, AttributeType attributeType, String... values ) throws LdapInvalidAttributeValueException { Attribute attribute = new DefaultAttribute( attributeType, values ); attribute.setUpId( upId, attributeType ); attributes.put( attributeType.getOid(), attribute ); }
/** * Add a new EntryAttribute, with its upId. If the upId is null, * default to the AttributeType name. * * Updates the AttributeMap. * * @param upId The user provided ID for the attribute to create * @param attributeType The AttributeType to use * @param values The values to add to this attribute * @throws LdapInvalidAttributeValueException If one of the value is incorrect */ protected void createAttribute( String upId, AttributeType attributeType, Value... values ) throws LdapInvalidAttributeValueException { Attribute attribute = new DefaultAttribute( attributeType, values ); attribute.setUpId( upId, attributeType ); attributes.put( attributeType.getOid(), attribute ); }
/** * Add a new EntryAttribute, with its upId. If the upId is null, * default to the AttributeType name. * * Updates the AttributeMap. * * @param upId The user provided ID for the attribute to create * @param attributeType The AttributeType to use * @param values The values to add to this attribute * @throws LdapInvalidAttributeValueException If one of the value is incorrect */ protected void createAttribute( String upId, AttributeType attributeType, String... values ) throws LdapInvalidAttributeValueException { Attribute attribute = new DefaultAttribute( attributeType, values ); attribute.setUpId( upId, attributeType ); attributes.put( attributeType.getOid(), attribute ); }
/** * {@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, 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, 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; }
attribute.setUpId( upId );
/** * {@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; }
attribute.setUpId( upId );
attribute.setUpId( upId );