/** * Prints out all of the properties for this object to the given * PrintStream. * * @param object * the object */ public static void printProperties(CmisObject object, PrintStream out) { for (Property<?> prop : object.getProperties()) { printProperty(prop, out); } }
/** * Prints out all of the properties for this object to the given * PrintStream. * * @param object * the object */ public static void printProperties(CmisObject object, PrintStream out) { for (Property<?> prop : object.getProperties()) { printProperty(prop, out); } }
/** * 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)); } } }
if (expected.getProperties().size() != actual.getProperties().size()) { f = createResult(FAILURE, "Number of properties don't match"); addResult(results, assertEquals(expected.getProperties().size(), actual.getProperties().size(), null, f)); } else { for (Property<?> expectedProperty : expected.getProperties()) { Property<?> actualProperty = actual.getProperty(expectedProperty.getId());
if (child.getId().equals(testDocument.getId())) { for (Property<?> prop : child.getProperties()) { if (!properties.contains(prop.getDefinition().getQueryName())) { addResult(createResult(CmisTestResultStatus.WARNING, "getChildren() delivered the property '"