Est-il possible de savoir si un QName d'un modèle est une propriété ou une association et ce avec la java API d'alfresco????
Il faut ici utiliser le NodeService pour récupérer le type du nœud à traiter et les aspects qui lui ont été appliqués et les "explorer" avec le DictionnaryService afin de déterminer, dans le contexte de ce nœud, à quoi correspond ce QName.
/**
* Gets the definition of the property as defined by its owning Class.
*
* @param propertyName the property name
* @return the property definition (or null, if it doesn't exist)
*/
PropertyDefinition getProperty(QName propertyName);
/**
* Gets the definition of the association as defined by its owning Class.
*
* @param associationName the property name
* @return the association definition (or null, if it doesn't exist)
*/
AssociationDefinition getAssociation(QName associationName);
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.