THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||
---|---|---|
| ||
StringObjectId id = session.createObjectId("4711"); Document document = (Document) this.session.getObject(id); Property<String> p = document.getProperty(CmisProperties.OBJECT_ID.value()); String s = p.getValue(); |
...
Code Block | ||
---|---|---|
| ||
StringObjectId id = session.createObjectId("4711"); Document document = (Document) this.session.getObject(id); List<Property<?>> l = document.getProperties(); Iterator<Property<?>> i = l.iterator(); while (i.hasNext()) { Property<?> p = i.next(); Object value = p.getValue(); PropertyType t = p.getType(); switch (t) { case INTEGER: Integer n = (Integer) value; System.out.println(p.getName() + " = " + n); break; case STRING: [...] } |