<?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 Re: How to create a new category? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-create-a-new-category/m-p/272928#M226058</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;And how can I create a new Classification?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 May 2011 18:18:27 GMT</pubDate>
    <dc:creator>rleones</dc:creator>
    <dc:date>2011-05-17T18:18:27Z</dc:date>
    <item>
      <title>How to create a new category?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-create-a-new-category/m-p/272925#M226055</link>
      <description>I need to add a new category to the category tree.</description>
      <pubDate>Tue, 15 Mar 2011 11:09:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-create-a-new-category/m-p/272925#M226055</guid>
      <dc:creator>purplesky</dc:creator>
      <dc:date>2011-03-15T11:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new category?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-create-a-new-category/m-p/272926#M226056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;String categoryName = "yourCategoryName";&lt;BR /&gt;ParentReference categoryParentRef = new ParentReference();&lt;BR /&gt;categoryParentRef.setStore(WORKSPACE_STORE);&lt;BR /&gt;categoryParentRef.setPath("/cm:categoryRoot/cm:generalclassifiable");&lt;BR /&gt;categoryParentRef.setChildName(Constants.createQNameString(Constants.NAMESPACE_CONTENT_MODEL, categoryName));&lt;BR /&gt;categoryParentRef.setAssociationType(Constants.createQNameString(Constants.NAMESPACE_CONTENT_MODEL, "subcategories"));&lt;BR /&gt;&lt;BR /&gt;NamedValue[] categoryProperties = new NamedValue[] { Utils.createNamedValue(Constants.PROP_NAME, categoryName) };&lt;BR /&gt;CMLCreate createCategory = new CMLCreate("addCategory", categoryParentRef, null, Constants.ASSOC_CONTAINS, null, Constants.createQNameString(Constants.NAMESPACE_CONTENT_MODEL, "category"), categoryProperties);&lt;BR /&gt;CML cml = new CML();&lt;BR /&gt;cml.setCreate(new CMLCreate[]{ createCategory });&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;UpdateResult[] updateResult = getRepositoryService().update(cml);&lt;BR /&gt;Reference categoryReference = updateResult[0].getDestination();&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2011 09:28:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-create-a-new-category/m-p/272926#M226056</guid>
      <dc:creator>jcustovic</dc:creator>
      <dc:date>2011-03-21T09:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new category?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-create-a-new-category/m-p/272927#M226057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks for sharing..i was looking for the answer of this question…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2011 05:46:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-create-a-new-category/m-p/272927#M226057</guid>
      <dc:creator>hamptonowen</dc:creator>
      <dc:date>2011-04-05T05:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new category?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-create-a-new-category/m-p/272928#M226058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;And how can I create a new Classification?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2011 18:18:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-create-a-new-category/m-p/272928#M226058</guid>
      <dc:creator>rleones</dc:creator>
      <dc:date>2011-05-17T18:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new category?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-create-a-new-category/m-p/272929#M226059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;And how can I create a new Classification?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd like to know this as well, I finally got the categories to work and now I stumbled upon this new problem &lt;img id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://connect.hyland.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Help appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2011 09:42:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-create-a-new-category/m-p/272929#M226059</guid>
      <dc:creator>scylin</dc:creator>
      <dc:date>2011-05-23T09:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new category?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-create-a-new-category/m-p/272930#M226060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you need to add a new classification at runtime without restart Alfresco, you have to deploy a new aspect in the Alfresco content model storing the new model in the Data Dictionary -&amp;gt; Models. After you have stored the new model as a XML file you have to activate the model changing the property Model Active.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Classification_And_Categories#Adding_your_own_classification" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Classification_And_Categories#Adding_your_own_classification&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can perform this operation via Web Services considering the Alfresco Content Model as a standard XML content.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then you can add a new category as you have seen in the previous post.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2011 09:56:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-create-a-new-category/m-p/272930#M226060</guid>
      <dc:creator>openpj</dc:creator>
      <dc:date>2011-05-23T09:56:41Z</dc:date>
    </item>
  </channel>
</rss>

