But in DotCMIS, CmisExtensionElement hasn't enougth info to map an Alfresco aspect with 2 or more propertiesString to an object that represent the aspect. I need to identify the property and as you can seen in the code I sended, the propertyString isn't identified. If the property isn't identified I don't know if the property belongs the aspect I'm parsing. The only way I can think of is by the order in the list (like I was parsing the raw XML) but is a hurge hack in code...
2012/5/23 Florian Müller <[email protected]> > Hi, > > That's very Alfresco specific. Please ask there first. > > Just one hint: > Check the Alfresco CMIS Wiki page [1]. The information you are looking for > is in the attributes. > > > - Florian > > > [1] > http://wiki.alfresco.com/wiki/**CMIS#Aspect_Support<http://wiki.alfresco.com/wiki/CMIS#Aspect_Support> > > > > I had created a custom Alfresco Aspect. >> >> >> But I cand Identify it programmatically through CmisExtensionElement. >> >> ?alfProp.Children(0) >> {DotCMIS.Data.Extensions.**CmisExtensionElement} >> [DotCMIS.Data.Extensions.**CmisExtensionElement]: >> {DotCMIS.Data.Extensions.**CmisExtensionElement} >> Attributes: {System.Collections.Generic.**Dictionary(Of String, >> String)} >> Children: {System.Collections.Generic.**List(Of >> DotCMIS.Data.Extensions.**ICmisExtensionElement)} >> Name: "cmis:propertyString" >> Namespace: >> "http://docs.oasis-open.org/**ns/cmis/core/200908/<http://docs.oasis-open.org/ns/cmis/core/200908/> >> " >> Value: Nothing >> >> ?alfProp.Children(0).Children(**0) >> {DotCMIS.Data.Extensions.**CmisExtensionElement} >> [DotCMIS.Data.Extensions.**CmisExtensionElement]: >> {DotCMIS.Data.Extensions.**CmisExtensionElement} >> Attributes: Nothing >> Children: {System.Collections.Generic.**List(Of >> DotCMIS.Data.Extensions.**ICmisExtensionElement)} >> Name: "cmis:value" >> Namespace: >> "http://docs.oasis-open.org/**ns/cmis/core/200908/<http://docs.oasis-open.org/ns/cmis/core/200908/> >> " >> Value: "2011" >> >> How can I discover that Value: "2011" belongs to "ag:Campania" in code??? >> I >> can't see queryName , propertyDefinitionId nor displayName in >> CmisExtensionElement. >> >> I want to code an object mapping from Aspect to class like an ORM: >> >> Public class DocClassification{ >> >> public string Campania; >> public string idAdmon; >> public string idExpte; >> } >> >> DocClassification currentClassification; >> currentClassification = getClassification(alfProp); >> >> Any ideas? Thanks >> > >
