01-24-2007 09:56 AM
<type name="cms:ThesaurusTerm">
<title>Thesaurus term</title>
<parent>cm:category</parent>
<properties>
<property name="cms:scopeNote">
<title>Scope note</title>
<type>d:text</type>
<multiple>false</multiple>
</property>
<property name="cms:useFor">
<title>Use for</title>
<type>d:text</type>
<multiple>true</multiple>
</property>
<property name="cms:termCode">
<title>Term code</title>
<type>d:text</type>
<multiple>false</multiple>
</property>
</properties>
…
</type>
+ cms:CurrencyILS
* 1 cm:modifier = admin
* 5 cm:modified = 2007-01-24T14:37:30.265Z
* 1 sys:node-uuid = 6b5004ec-abb8-11db-b9ef-f5cb86f258dc
* 1 cm:creator = admin
* 3 sys:node-dbid = 1283
* 1 cms:termCode = ILS
* 1 sys:store-protocol = workspace
* 1 cm:name = 6b5004ec-abb8-11db-b9ef-f5cb86f258dc
* 1 cms:name = ILS Israel
* 1 sys:store-identifier = SpacesStore
* 3 cms:id = 12
* 5 cm:created = 2007-01-24T14:37:30.077Z
* 1 jcr:uuid = 6b5004ec-abb8-11db-b9ef-f5cb86f258dc
* 7 jcr:primaryType = cms:Currency
* 7 jcr:mixinTypes = sys:incompletecm:auditablesys:referenceablemix:referenceable
+ {http://researchcommons.com/cms}CurrencyILS (type={http://www.alfresco.org/model/content/1.0}subcategories)
-{http://www.alfresco.org/model/content/1.0}modifier= admin
-{http://www.alfresco.org/model/content/1.0}modified= Wed Jan 24 10:58:03 GMT 2007
-{http://www.alfresco.org/model/system/1.0}node-uuid= c2e62502-ab99-11db-a7a4-3130f5422c8c
-{http://www.alfresco.org/model/content/1.0}creator= admin
-{http://www.alfresco.org/model/system/1.0}node-dbid= 677
-{http://www.alfresco.org/model/system/1.0}store-protocol= workspace
-{http://www.alfresco.org/model/content/1.0}name= c2e62502-ab99-11db-a7a4-3130f5422c8c
-{http://www.alfresco.org/model/system/1.0}store-identifier= SpacesStore
-{http://www.alfresco.org/model/content/1.0}created= Wed Jan 24 10:58:02 GMT 2007
01-24-2007 11:14 AM
01-24-2007 11:31 AM
private void listAssociations(NodeRef nodeRef,int level) {
StringBuffer indent = new StringBuffer();
for(int i=0;i<2*level;i++) indent.append(' ');
List<ChildAssociationRef> childAssocs = nodeService.getChildAssocs(nodeRef);
for(ChildAssociationRef assoc : childAssocs) {
System.out.print(indent.toString()+"+ "+assoc.getQName());
System.out.println(" (type="+assoc.getTypeQName()+")");
Map<QName, Serializable> properties = nodeService.getProperties(nodeRef);
for(Map.Entry property : properties.entrySet()) {
System.out.println(indent.toString()+" -"+property.getKey().toString()+"= "+property.getValue());
}
Serializable property = nodeService.getProperty(nodeRef,CommonsContentModel.PROP_CMS_NAME);
if(property != null)
System.out.println(indent+"cms:name="+property.toString());
listAssociations(assoc.getChildRef(),level+1);
}
}
01-26-2007 11:57 AM
01-29-2007 10:11 AM
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.