@Override public MutablePropertyBoolean createPropertyBooleanData(String id, Boolean value) { return new PropertyBooleanImpl(id, value); }
@Override protected PropertyBooleanImpl createTarget(XMLStreamReader parser, QName name) { return new PropertyBooleanImpl(); }
@Override public MutablePropertyBoolean createPropertyBooleanData(String id, Boolean value) { return new PropertyBooleanImpl(id, value); }
@Override public MutablePropertyBoolean createPropertyBooleanData(String id, List<Boolean> values) { return new PropertyBooleanImpl(id, values); }
@Override protected PropertyBooleanImpl createTarget(XmlPullParser parser, QName name) { return new PropertyBooleanImpl(); }
@Override public MutablePropertyBoolean createPropertyBooleanData(String id, List<Boolean> values) { return new PropertyBooleanImpl(id, values); }
/** * Adds a boolean property to a PropertiesImpl.<p> * * @param typeManager * @param props the properties * @param typeId the type id * @param filter the property filter string * @param id the property id * @param value the property value */ public static void addPropertyBoolean( CmsCmisTypeManager typeManager, PropertiesImpl props, String typeId, Set<String> filter, String id, boolean value) { if (!checkAddProperty(typeManager, props, typeId, filter, id)) { return; } props.addProperty(new PropertyBooleanImpl(id, Boolean.valueOf(value))); }
/** * Add boolean property to the CMIS object represented by this instance */ protected final void addPropertyBoolean(PropertiesImpl props, String typeId, Set<String> filter, String id, boolean value) { if (!checkAddProperty(props, typeId, filter, id)) { return; } PropertyBooleanImpl prop = new PropertyBooleanImpl(id, value); prop.setQueryName(id); props.addProperty(prop); }
boolValues.add(Boolean.valueOf(s)); propertyData = new PropertyBooleanImpl(propDef.getId(), boolValues); break; case INTEGER:
@Override public void reportFeedback(String feedbackId) { // Get the session, repository id and object service Session session = CmisSessionHelper.getSession(); String repoId = session.getRepositoryInfo().getId(); ObjectService objectService = session.getBinding().getObjectService(); // Create a comment flagged property with value true PropertiesImpl props = new PropertiesImpl(); props.addProperty(new PropertyBooleanImpl(PROP_COMMENT_FLAGGED, true)); // Update the comment flagged property in the repository objectService.updateProperties(repoId, new Holder<String>(feedbackId), null, props, null); }
break; case BOOLEAN: property = new PropertyBooleanImpl(); ((PropertyBooleanImpl) property).setValues(copyBooleanValues(values)); break; Object firstValue = values.get(0); if (firstValue instanceof Boolean) { property = new PropertyBooleanImpl(); ((PropertyBooleanImpl) property).setValues(copyBooleanValues(values)); } else if (firstValue instanceof BigInteger) {
switch (propDef.getPropertyType()) { case BOOLEAN: props.addProperty(new PropertyBooleanImpl(propDef.getId(), (List<Boolean>)defaultValue)); break; case DATETIME:
switch (propDef.getPropertyType()) { case BOOLEAN: return new PropertyBooleanImpl(propDef.getId(), (List<Boolean>) defaultValue); case DATETIME: return new PropertyDateTimeImpl(propDef.getId(), (List<GregorianCalendar>) defaultValue);
break; case BOOLEAN: property = new PropertyBooleanImpl(); ((PropertyBooleanImpl) property).setValues(copyBooleanValues(values)); break;
break; case BOOLEAN: property = new PropertyBooleanImpl(); ((PropertyBooleanImpl) property).setValues(copyBooleanValues(values)); break;
writeProperty(writer, new PropertyBooleanImpl((String) null, def.getDefaultValue()), true);
result = new PropertyBooleanImpl(); if (value instanceof List)
result = new PropertyBooleanImpl(); if (value instanceof List)
((CmisPropertyDecimal) property).getValue()); } else if (property instanceof CmisPropertyBoolean) { result = new PropertyBooleanImpl(property.getPropertyDefinitionId(), ((CmisPropertyBoolean) property).getValue()); } else if (property instanceof CmisPropertyDateTime) {
writeProperty(writer, new PropertyBooleanImpl((String) null, def.getDefaultValue()), true);