07-29-2008 11:33 AM
07-29-2008 02:44 PM
07-29-2008 03:11 PM
07-29-2008 03:18 PM
07-29-2008 03:35 PM
10-01-2008 12:23 PM
10-02-2008 07:59 AM
10-02-2008 09:27 AM
10-02-2008 10:40 AM
10-02-2008 02:21 PM
<type name="someco:folder">
<title>Article Catalog</title>
<description />
<parent>cm:folder</parent>
<properties>
<property name="someco:label">
<type>d:text</type>
<mandatory>false</mandatory>
<multiple>false</multiple>
</property>
</properties>
<mandatory-aspects>
<aspect>cm:versionable</aspect>
</mandatory-aspects>
</type>
//parent folder, new folder, label for the new folder
createFolder("/", "Test Folder", "TEsting 1");
for(int i = 0 ; i < 10; i ++) {
//same parameters here.
updateFolder("/", "Test Folder", "TEsting"+i);
}
NodeRef nodeRef = new NodeRef(nodeId);
VersionHistory history = versionService.getVersionHistory(nodeRef);
final Collection<Version> versions = history.getAllVersions();
QName labelQName = QName.createQName("http://www.someco.com/model/content/1.0','label");
for(Version version: versions) {
NodeRef versionNodeRef = version.getFrozenStateNodeRef();
String label = nodeService.getProperty(versionNodeRef,labelQName).toString();
System.out.println(version.getVersionLabel());
System.out.println(label);
}
1.10
TEsting9
1.9
TEsting8
1.8
TEsting7
1.7
TEsting6
1.6
TEsting5
1.5
TEsting4
1.4
TEsting3
1.3
TEsting2
1.2
TEsting1
1.1
TEsting0
1.0
TEsting 1
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.