Adds NOT IN criteria,
customer_id not in(1,10,33,44)
large values are split into multiple InCriteria
NOT IN (1,10) AND NOT IN(33, 44)

@param  attribute   The field name to be used
@param  values   The value Collection
355970
public void addNotIn(String attribute, Collection values)
    {
        List list = splitInCriteria(attribute, values, true, IN_LIMIT);
        InCriteria inCrit;
        for (int index = 0; index < list.size(); index++)
        {
            inCrit = (InCriteria) list.get(index);
            addSelectionCriteria(inCrit);
        }
    }
1162453
public final Condition in(final Collection<V> values) {
        return new Condition().withComparisonOperator(IN).withAttributeValueList(LIST.convert(values, this));
    }
524385
@Override
    public void setAttributes(final Map<String, List<Object>> attrs) {
        for (final Entry<String, List<Object>> attrEntry : attrs.entrySet()) {
            final String key = attrEntry.getKey();
            final List<Object> value = attrEntry.getValue();
            setAttribute(key, value);
        }
        /*
         * This is the method used by Authentication.authenticate() -- and
         * elsewhere -- to initialize a valid IPerson in the portal.  We want
         * to *fail fast* if there's something wrong with that process.
         */
        validateUsername();
    }
948039
public void addBetween(Object attribute, Object value1, Object value2)
    {
		// PAW
		// addSelectionCriteria(ValueCriteria.buildBeweenCriteria(attribute, value1, value2, getAlias()));
		addSelectionCriteria(ValueCriteria.buildBeweenCriteria(attribute, value1, value2, getUserAlias(attribute)));
    }
857485
public void addNewAttributeValue(String value) {

        // make sure not to add more values than allowed
        int maxOccurrence = getEntityType().getAttributeMaxOccurrence(m_attributeName);
        CmsEntityAttribute attribute = m_entity.getAttribute(m_attributeName);
        boolean mayHaveMore = ((attribute == null) || (attribute.getValueCount() < maxOccurrence));
        if (mayHaveMore && getAttributeType().isSimpleType()) {
            I_CmsFormEditWidget widget = m_widgetService.getAttributeFormWidget(m_attributeName);
            m_entity.addAttributeValue(m_attributeName, value);
            int valueCount = m_entity.getAttribute(m_attributeName).getValueCount();
            String defaultValue = m_widgetService.getDefaultAttributeValue(
                m_attributeName,
                getSimplePath(valueCount - 1));
            CmsAttributeValueView valueView = null;
            if ((m_attributeValueViews.size() == 1) && !m_attributeValueViews.get(0).hasValue()) {
                valueView = m_attributeValueViews.get(0);
                valueView.setActive();
                // setActive may have reset the value, so we set it again
                m_entity.setAttributeValue(m_attributeName, value, valueCount - 1);
                valueView.getValueWidget().setValue(value);
            } else {
                valueView = new CmsAttributeValueView(
                    this,
                    m_widgetService.getAttributeLabel(m_attributeName),
                    m_widgetService.getAttributeHelp(m_attributeName));
                if (m_widgetService.isDisplaySingleLine(m_attributeName)) {
                    valueView.setCompactMode(CmsAttributeValueView.COMPACT_MODE_SINGLE_LINE);
                }
                ((FlowPanel)m_attributeValueViews.get(0).getParent()).add(valueView);
                valueView.setValueWidget(widget, value, defaultValue, true);
            }
            CmsUndoRedoHandler handler = CmsUndoRedoHandler.getInstance();
            if (handler.isIntitalized()) {
                handler.addChange(
                    m_entity.getId(),
                    m_attributeName,
                    m_entity.getAttribute(m_attributeName).getValueCount() - 1,
                    ChangeType.add);
            }
            updateButtonVisisbility();
        }
    }
529233
public void putAttributes(Attributes attributes){
        int attrCount = attributes.getLength();
        if(attrCount>0){
            temp();
            for(int i=0; i<attrCount; i++){
                QName qname = new QName(attributes.getURI(i), attributes.getLocalName(i));
                temp.put(qname, attributes.getValue(i));
            }
        }
    }
311941
public void setUserAttributes(Map<String, Object> attributes)
    {
        userAttributes.putAll(attributes);
        propertyChangeSupport.firePropertyChange(USER_ATTRIBUTES, null, userAttributes);
    }
710094
protected void resetValue(Attribute attribute) {

        String initValue = "";
        if (m_initialImageAttributes.containsKey(attribute.name())) {
            initValue = m_initialImageAttributes.getString(attribute.name());
        }
        if (m_fields.containsKey(attribute)) {
            m_fields.get(attribute).setFormValueAsString(initValue);
        }
    }
204851
public void setDynamicValue(String attribute, String value) {

        if (null == m_dynamicValues) {
            m_dynamicValues = new ConcurrentHashMap<String, String>();
        }
        m_dynamicValues.put(attribute, value);
    }
1007831
public final synchronized void setAttribute(String view, String attribute, Object value) {
    if (attributes == null) {
      attributes = HashBasedTable.create();
    }
    attributes.put(view, attribute, value);
  }
747408
public static Query notIn(String field, Collection<?> values) {
        return new Query().notIn(field, values);
    }
511328
public final void setAttributes(final Map<String, Attribute> attributes) {
        for (Map.Entry<String, Attribute> entry: attributes.entrySet()) {
            Object attribute = entry.getValue();
            if (!(attribute instanceof Attribute)) {
                final String msg =
                        "Attribute: '" + entry.getKey() + "' is not an attribute. It is a: " + attribute;
                LOGGER.error("Error setting the Attributes: {}", msg);
                throw new IllegalArgumentException(msg);
            } else {
                ((Attribute) attribute).setConfigName(entry.getKey());
            }
        }
        this.attributes = attributes;
    }
718062
public void validateAttributes(Collection<String> attributes) throws CompatibilityException {
                Validate.notNull(attributes);
                for (String attribute : attributes) {
                        validateAttribute(attribute);
                }
        }
333130
public void addLessThanField(String attribute, Object value)
    {
		// PAW
		// addSelectionCriteria(FieldCriteria.buildLessCriteria(attribute, value, getAlias()));
		addSelectionCriteria(FieldCriteria.buildLessCriteria(attribute, value, getUserAlias(attribute)));
    }
460239
public void setAttributes(java.util.Collection<Attribute> attributes) {
        if (attributes == null) {
            this.attributes = null;
            return;
        }

        this.attributes = new java.util.ArrayList<Attribute>(attributes);
    }
939458
static void assign(ManyValueAttributeValue v1, AttributeValue v2) {
		if (v2 != null) {
			v1.setTopType(v2.getType());
		}
		if (v2 == null || !v2.isAssigned()) {
			v1.setMultipleValues(true);
		} else {
			assert v2.isAssigned();
			if (!v1.isAssigned()) {
				v1.setValue(v2);
			} else if (!v2.equals(v1)) {
				v1.setMultipleValues(true);
				if (!v1.isAssignableFrom(v2)) {
					if (!v2.isAssignableFrom(v1)) {
						v1.setInternalValue(null, AttributeType.OBJECT);
					} else {
						v1.setInternalValue(null, v2.getType());
					}
				}
			}
		}
	}
749886
@Override
    public int addDefaultAttribute(String localName, String uri, String prefix,
                                   String value)
    {
        // nothing to do, but to indicate we didn't add it...
        return -1;
    }