<?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 How to get the user's name from a custom dialog? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-user-s-name-from-a-custom-dialog/m-p/237908#M191038</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I implemented a custom dialog by extending BaseDialogBean as seen on the wiki:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Adding_a_Custom_Dialog" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Adding_a_Custom_Dialog&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the Java code, I need the id of the current user.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is probably easy but I could not find where to get this information… I tried a mix of Application.getCurrentUser, this.getActionsContext(), and the methods inherited from BaseDialogBean, but did not find a way to get it… User name or user id or anything that could identify the Alfresco web client user.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Feb 2010 06:00:20 GMT</pubDate>
    <dc:creator>nicolasraoul</dc:creator>
    <dc:date>2010-02-02T06:00:20Z</dc:date>
    <item>
      <title>How to get the user's name from a custom dialog?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-user-s-name-from-a-custom-dialog/m-p/237908#M191038</link>
      <description>Hello all,I implemented a custom dialog by extending BaseDialogBean as seen on the wiki:http://wiki.alfresco.com/wiki/Adding_a_Custom_DialogIn the Java code, I need the id of the current user.It is probably easy but I could not find where to get this information… I tried a mix of Application.getCurr</description>
      <pubDate>Tue, 02 Feb 2010 06:00:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-user-s-name-from-a-custom-dialog/m-p/237908#M191038</guid>
      <dc:creator>nicolasraoul</dc:creator>
      <dc:date>2010-02-02T06:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the user's name from a custom dialog?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-user-s-name-from-a-custom-dialog/m-p/237909#M191039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try this my friend: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AuthenticationUtil.getFullyAuthenticatedUser() and this returns the username&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2010 07:44:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-user-s-name-from-a-custom-dialog/m-p/237909#M191039</guid>
      <dc:creator>cheffilet</dc:creator>
      <dc:date>2010-02-05T07:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the user's name from a custom dialog?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-user-s-name-from-a-custom-dialog/m-p/237910#M191040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks my friend!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It gives the name of the current user as a String, such as "admin".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Class is org.alfresco.repo.security.authentication.AuthenticationUtil&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's exactly what I needed &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nicolas Raoul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2010 07:42:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-user-s-name-from-a-custom-dialog/m-p/237910#M191040</guid>
      <dc:creator>nicolasraoul</dc:creator>
      <dc:date>2010-02-08T07:42:05Z</dc:date>
    </item>
  </channel>
</rss>

