/** * Add Id property to the CMIS object represented by this instance */ protected final void addPropertyId(PropertiesImpl props, String typeId, Set<String> filter, String id, String value) { if (!checkAddProperty(props, typeId, filter, id)) { return; } if (value.equals(CMISConstants.GREG_PROPERTY_NOT_SET)) { value = null; } PropertyIdImpl prop = new PropertyIdImpl(id, value); prop.setQueryName(id); props.addProperty(prop); }
protected final void addPropertyId(PropertiesImpl props, String typeId, Set<String> filter, String id, List<String> values) { if (!checkAddProperty(props, typeId, filter, id)) { return; } PropertyIdImpl prop = new PropertyIdImpl(id, values); prop.setQueryName(id); props.addProperty(prop); }
/** * Helper method for adding an id-valued property.<p> * * @param typeManager the type manager * @param props the properties to add to * @param typeId the type id * @param filter the property filter * @param id the property id * @param value the property value */ public static void addPropertyId( CmsCmisTypeManager typeManager, PropertiesImpl props, String typeId, Set<String> filter, String id, String value) { if (!checkAddProperty(typeManager, props, typeId, filter, id)) { return; } PropertyIdImpl result = new PropertyIdImpl(id, value); result.setQueryName(id); props.addProperty(result); }