public static void printProperty(Property<?> prop, PrintStream out) { out.println(prop.getId() + ": " + prop.getValuesAsString()); } }
public static void printProperty(Property<?> prop, PrintStream out) { out.println(prop.getId() + ": " + prop.getValuesAsString()); } }
/** * Converts CMIS object's properties to JCR node properties. * * @param object CMIS object * @param writer JCR node representation. */ private void cmisProperties( CmisObject object, DocumentWriter writer ) { // convert properties List<Property<?>> list = object.getProperties(); for (Property<?> property : list) { String pname = properties.findJcrName(property.getId()); if (pname != null) { writer.addProperty(pname, properties.jcrValues(property)); } } }
secondaryTypeProperties.remove(prop.getId());
if (!primaryType.getPropertyDefinitions().containsKey(prop.getId())) { f = createResult(FAILURE, "Property '" + prop.getId() + "' is neither defined by the primary type nor by a secondary type!"); for (SecondaryType secondaryType : secondaryTypes) { if (secondaryType.getPropertyDefinitions() != null && secondaryType.getPropertyDefinitions().containsKey(prop.getId())) { foundProperty = true; break;
if (prop.getDefinition().getUpdatability() == Updatability.READWRITE || prop.getDefinition().getUpdatability() == Updatability.ONCREATE) { newProperties.put(prop.getId(), prop.getValue());
if (prop.getDefinition().getUpdatability() == Updatability.READWRITE || prop.getDefinition().getUpdatability() == Updatability.ONCREATE) { newProperties.put(prop.getId(), prop.getValue());
} else { for (Property<?> expectedProperty : expected.getProperties()) { Property<?> actualProperty = actual.getProperty(expectedProperty.getId()); f = createResult(FAILURE, "Properties don't match! Property: " + expectedProperty.getId()); addResult(results, assertEquals(expectedProperty, actualProperty, null, f));
if (!properties.contains(prop.getDefinition().getQueryName())) { addResult(createResult(CmisTestResultStatus.WARNING, "getObject() delivered the property '" + prop.getId() + "', although it has not been requested.")); if (!properties.contains(prop.getDefinition().getQueryName())) { addResult(createResult(CmisTestResultStatus.WARNING, "getChildren() delivered the property '" + prop.getId() + "', although it has not been requested."));
addResult(results, assertStringNotEmpty(property.getId(), null, f));
for (Property<?> property : doc.getProperties()) { if (property.getDefinition().getUpdatability() == Updatability.READWRITE) { writableProperties.put(property.getId(), property.getValue());