<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Retrieve content model of a document? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/retrieve-content-model-of-a-document/m-p/303920#M257050</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using java. I need to retrieve the content model of a document. Alfresco version is 5.0.2. Any suggestions?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jul 2016 15:19:27 GMT</pubDate>
    <dc:creator>harikakosaraju</dc:creator>
    <dc:date>2016-07-11T15:19:27Z</dc:date>
    <item>
      <title>Retrieve content model of a document?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrieve-content-model-of-a-document/m-p/303920#M257050</link>
      <description>Hello,I am using java. I need to retrieve the content model of a document. Alfresco version is 5.0.2. Any suggestions?</description>
      <pubDate>Mon, 11 Jul 2016 15:19:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrieve-content-model-of-a-document/m-p/303920#M257050</guid>
      <dc:creator>harikakosaraju</dc:creator>
      <dc:date>2016-07-11T15:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve content model of a document?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrieve-content-model-of-a-document/m-p/303921#M257051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When you say you need to retrieve the content model, do you mean that you need to find out what the content type is?&amp;nbsp; Or is it a list of the properties that have been set?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, where are you running your code, is it an external Java application that is connecting the Alfresco platform or is it custom code that is running within Alfresco e.g. an action or behaviour?&amp;nbsp; The APIs &amp;amp; options that you would use are different in each case &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steven&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2016 15:26:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrieve-content-model-of-a-document/m-p/303921#M257051</guid>
      <dc:creator>steven_okennedy</dc:creator>
      <dc:date>2016-07-11T15:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve content model of a document?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrieve-content-model-of-a-document/m-p/303922#M257052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I need to find out the name of the content model that was applied to the document.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the custom code that will be running within alfresco application. I am writing this code in an action.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2016 15:27:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrieve-content-model-of-a-document/m-p/303922#M257052</guid>
      <dc:creator>harikakosaraju</dc:creator>
      <dc:date>2016-07-11T15:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve content model of a document?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrieve-content-model-of-a-document/m-p/303923#M257053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I did not quite understand the usecase here. Could you please elaborate more on the usecase you are trying to address. Why do you require to know the name of the content model? How it will help. If you just need to find the content type of the node, you can easily do it through NodeService API. Take a look at ScriptNode which has getType() and getShortType() implementations available.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2016 16:16:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrieve-content-model-of-a-document/m-p/303923#M257053</guid>
      <dc:creator>romschn</dc:creator>
      <dc:date>2016-07-11T16:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve content model of a document?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrieve-content-model-of-a-document/m-p/303924#M257054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In that case, just use nodeService.getType(NodeRef nodeRef) (&lt;/SPAN&gt;&lt;A href="http://dev.alfresco.com/resource/docs/java/org/alfresco/service/cmr/repository/NodeService.html#getType-org.alfresco.service.cmr.repository.NodeRef" rel="nofollow noopener noreferrer"&gt;http://dev.alfresco.com/resource/docs/java/org/alfresco/service/cmr/repository/NodeService.html#getType-org.alfresco.service.cmr.repository.NodeRef&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This returns a QName representing the type of the document.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steven&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2016 16:17:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrieve-content-model-of-a-document/m-p/303924#M257054</guid>
      <dc:creator>steven_okennedy</dc:creator>
      <dc:date>2016-07-11T16:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve content model of a document?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrieve-content-model-of-a-document/m-p/303925#M257055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Used nodeService. Thanks both of you. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2016 19:27:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrieve-content-model-of-a-document/m-p/303925#M257055</guid>
      <dc:creator>harikakosaraju</dc:creator>
      <dc:date>2016-07-11T19:27:10Z</dc:date>
    </item>
  </channel>
</rss>

