cancel
Showing results for 
Search instead for 
Did you mean: 

Get Aspect from propertie

toze
Champ in-the-making
Champ in-the-making
is any easy way to discover the aspect when i have the propertie?
for an example, i have: getNodeService().getProperties(nodeRef);

the result is Map<QName, Serializable>.

My question is, have i a easy way to get the aspect name?
3 REPLIES 3

billerby
Champ on-the-rise
Champ on-the-rise
Not quite sure what you are after since a node can have multiple aspects. By calling nodeService.getAspects(nodeRef) you will get a Set containing all aspects currently applied to the node.

Regards
/Erik

toze
Champ in-the-making
Champ in-the-making
Yes, but using that method i still don't know witch propertie belongs to an certain aspect!
i don't want to use some substring method's to get the aspect name!
I dont know if im explaining my point correctly!!!!

andy
Champ on-the-rise
Champ on-the-rise
Hi

You can go to the DictionaryService, get the poperty definition and get its containing class - which will be a type or aspect.
Note you will not be able to find masrker aspects applied to a node this way as they have no properties.

Andy