get Node Aspect properties
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2010 11:03 AM
How can i get all the properties of one Aspect i have?
I have Aspec test with 3 properties.
Like this, i get all aspect's of the node
Set<QName> listaAspectos = nodeService.getAspects(nodeRef);
So, how can i get all properties of the aspect Test?
- Labels:
-
Archive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2010 12:13 PM
// note: untested example ….Map<QName, Serializable> allNodeProps = nodeService.getProperties(nodeRef);Map<QName, PropertyDefinition> aspectPropDefs = dictionaryService.getAspect(aspectQName).getProperties(); // including inherited propsMap<QName, Serializable> nodeProps = new HashMap<QName, Serializable>(aspectPropDefs.size());for (QName propQName : aspectPropDefs.keySet()){ Serializable value = allNodeProps.get(propQName); if (value != null) { nodeProps.put(propQName, value); }}
Regards,Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2010 12:36 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2013 12:16 AM
I am getting array of NamedValue from Node but , iterating it over and over and checking for match name is quite time consuming , is there any api or method available for getting value of particular property by its name ,,
Kindly help me …
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2013 05:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2014 04:43 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2013 10:07 PM
One more question which dependency i required to get node service ?
I tried with adding alfresco war in my project, I am generating war with overlay as there lots of other wars are as dependencies, but my final war was not generating properly…
I have read that *-context.xml of alfresco required to get node service , but which dependency is required ? and which other jars need to be added as dependencies ?
can i add jars only to do that ? and which are they ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2013 05:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2014 04:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2015 06:33 AM
This method has JSONObject as argument. You can get the properties from this JSONObject object. like:
String strNodeRef = (String) jsonObj.get("nodeRef");
or
String customProp = (String) jsonObj.get("Your custom property name");
Thanks,
Nazakat
