<?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 Using Authority.ftl in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/using-authority-ftl/m-p/69419#M22909</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to use authority.ftl to select a group that is going to be used in an action for editing group roles. How do i write the java action so that there are no erros? Tried this&lt;/P&gt;&lt;PRE style="color: #a9b7c6; background-color: #2b2b2b; font-size: 9.0pt;"&gt;&lt;SPAN style="color: #a9b7c6;"&gt;&lt;SPAN style="color: #cc7832;"&gt;protected void &lt;/SPAN&gt;&lt;SPAN style="color: #ffc66d;"&gt;addParameterDefinitions&lt;/SPAN&gt;(List&amp;lt;ParameterDefinition&amp;gt; list) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; list.add(&lt;SPAN style="color: #cc7832;"&gt;new &lt;/SPAN&gt;ParameterDefinitionImpl(&lt;/SPAN&gt;&lt;SPAN style="color: #9876aa;"&gt;X&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a9b7c6;"&gt;DataTypeDefinition.&lt;/SPAN&gt;&lt;SPAN style="color: #9876aa;"&gt;TEXT&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, true,&lt;/SPAN&gt;&lt;SPAN style="color: #a9b7c6;"&gt;getParamDisplayLabel(&lt;/SPAN&gt;&lt;SPAN style="color: #9876aa;"&gt;X&lt;/SPAN&gt;&lt;SPAN style="color: #a9b7c6;"&gt;)))&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9b7c6;"&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;But i got the error that the types were different, think it was field.endpointtype. What is this, and how do i get it in the addParameterDefinitions, what type does the authority.ftl return, a string? I assume that you can use AuthorityService afterwards to get the group name or something similar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Nov 2018 14:10:12 GMT</pubDate>
    <dc:creator>malikaasen</dc:creator>
    <dc:date>2018-11-16T14:10:12Z</dc:date>
    <item>
      <title>Using Authority.ftl</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/using-authority-ftl/m-p/69419#M22909</link>
      <description>I am trying to use authority.ftl to select a group that is going to be used in an action for editing group roles. How do i write the java action so that there are no erros? Tried thisprotected void addParameterDefinitions(List&amp;lt;ParameterDefinition&amp;gt; list) {&amp;nbsp;&amp;nbsp;&amp;nbsp; list.add(new ParameterDefinitionImp</description>
      <pubDate>Fri, 16 Nov 2018 14:10:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/using-authority-ftl/m-p/69419#M22909</guid>
      <dc:creator>malikaasen</dc:creator>
      <dc:date>2018-11-16T14:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using Authority.ftl</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/using-authority-ftl/m-p/69420#M22910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="link-titled" href="https://dev.alfresco.com/resource/AlfrescoOne/5.1/PublicAPI/org/alfresco/service/cmr/dictionary/DataTypeDefinition.html" title="https://dev.alfresco.com/resource/AlfrescoOne/5.1/PublicAPI/org/alfresco/service/cmr/dictionary/DataTypeDefinition.html" rel="nofollow noopener noreferrer"&gt;DataTypeDefinition (Alfresco 5.1.4.1 Public Java API)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try NODE_REF&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Nov 2018 16:42:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/using-authority-ftl/m-p/69420#M22910</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2018-11-17T16:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using Authority.ftl</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/using-authority-ftl/m-p/69421#M22911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is exactly the way I use it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2018 20:13:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/using-authority-ftl/m-p/69421#M22911</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2018-11-19T20:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using Authority.ftl</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/using-authority-ftl/m-p/69422#M22912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do i extract the groupname from node_ref?&lt;/P&gt;&lt;P&gt;This is what i used when i used textfield instead of authority.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="24232" class="image-1 jive-image" src="https://connect.hyland.com/legacyfs/online/alfresco/24232_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just changed the Strings to NodeRef as stupid me didnt notice that could be done, but what class is used to get the name of the authority?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2018 15:21:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/using-authority-ftl/m-p/69422#M22912</guid>
      <dc:creator>malikaasen</dc:creator>
      <dc:date>2018-11-20T15:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using Authority.ftl</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/using-authority-ftl/m-p/69423#M22913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are other ways, this is one of them:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-java line-numbers"&gt;&lt;CODE&gt;NodeRef groupNodeRef &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;NodeRef&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; action&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getParameterValue&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;PARAM_GROUP_NAME&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;String groupName &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; nodeService&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getProperty&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;groupNodeRef&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; ContentModel&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;PROP_NAME&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;toString&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&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>Tue, 20 Nov 2018 15:42:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/using-authority-ftl/m-p/69423#M22913</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2018-11-20T15:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using Authority.ftl</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/using-authority-ftl/m-p/69424#M22914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried that, but i still get the error, maybe there is something wrong with how i added the form?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://connect.hyland.com/legacyfs/online/alfresco/24233_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2018 15:49:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/using-authority-ftl/m-p/69424#M22914</guid>
      <dc:creator>malikaasen</dc:creator>
      <dc:date>2018-11-20T15:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using Authority.ftl</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/using-authority-ftl/m-p/69425#M22915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the whole class, probably makes it easier to notice where things go wrong...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://connect.hyland.com/legacyfs/online/alfresco/24234_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;The class takes the groupname, makes a folder of it, and gives permissions to the group&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2018 16:07:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/using-authority-ftl/m-p/69425#M22915</guid>
      <dc:creator>malikaasen</dc:creator>
      <dc:date>2018-11-20T16:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using Authority.ftl</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/using-authority-ftl/m-p/69426#M22916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-java line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;final&lt;/SPAN&gt; NodeRef group &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;NodeRef&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; action&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getParameterValue&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;PARAM_GROUP_NAME&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;// your parameter should be simply PARAM_GROUP, as there is no real name in it&lt;/SPAN&gt;&lt;BR /&gt;Map&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;QName&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; Serializable&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; groupProperties &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; nodeService&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getProperties&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;group&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then you can read the property you want from the groupProperties object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have not tested the code, but I guess you will be able to fix it if required.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2018 16:18:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/using-authority-ftl/m-p/69426#M22916</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2018-11-20T16:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using Authority.ftl</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/using-authority-ftl/m-p/69427#M22917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My bad... I left the tab open when I went to have lunch, and then sent the answer without checking if someone had answered &lt;IMG src="https://connect.hyland.com/legacyfs/online/alfresco/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2018 16:20:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/using-authority-ftl/m-p/69427#M22917</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2018-11-20T16:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using Authority.ftl</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/using-authority-ftl/m-p/69428#M22918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably you have to add "GROUP_" to the name of the group to set permissions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2018 17:24:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/using-authority-ftl/m-p/69428#M22918</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2018-11-20T17:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using Authority.ftl</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/using-authority-ftl/m-p/69429#M22919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah ok, i did add that on the previous version, but thought that the name you got from NODE_REF was GROUP_X. Will test by tomorrow. Thanks for all the help so far! Been stuck for ages on this one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2018 20:11:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/using-authority-ftl/m-p/69429#M22919</guid>
      <dc:creator>malikaasen</dc:creator>
      <dc:date>2018-11-20T20:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using Authority.ftl</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/using-authority-ftl/m-p/69430#M22920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Weirdly enough, i still get the error, this is how it looks like after i have picked a group&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="24237" class="image-1 jive-image" src="https://connect.hyland.com/legacyfs/online/alfresco/24237_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;and this is the failure i get, there are no errors in the .log files&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="24238" class="image-2 jive-image" src="https://connect.hyland.com/legacyfs/online/alfresco/24238_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;I made a class for the action, added the bean, and wrote the above in the add-doclib-action xml file, is there something that i may perhaps have forgotten?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the config for the button that creates the form&amp;nbsp;&lt;IMG class="image-3 jive-image" src="https://connect.hyland.com/legacyfs/online/alfresco/24242_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2018 14:04:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/using-authority-ftl/m-p/69430#M22920</guid>
      <dc:creator>malikaasen</dc:creator>
      <dc:date>2018-11-21T14:04:39Z</dc:date>
    </item>
  </channel>
</rss>

