<?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 do I generate a new &amp;quot;client configuration&amp;quot; on java code for the java out of process rest api ? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-do-i-generate-a-new-quot-client-configuration-quot-on-java/m-p/137834#M36976</link>
    <description>&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;I would like to use the user set in "application.properties" as the application user to generate individual user tickets using the rest api service "generateTicket".&lt;/P&gt;&lt;P&gt;To make a simple use case, I have an alfresco username/ClientConfiguration map "Map&amp;lt;String,ClientConfiguration&amp;gt;" and I want to invoke the rest api's "getNode" method with the user name XXX.&lt;/P&gt;&lt;P&gt;1) Retrieve the "ClientConfiguration" from the map with the specific key "XXX": tickets.get("XXX")&lt;/P&gt;&lt;P&gt;2) Prepare the component to use the service "nodesApi.getNode()" with the specific "ClientConfiguration"&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My questions are:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1) How to create a client configuration runtime from java code ? The current client configuration is created with spring annotations that retrieve values from the "applications.properties" file.&lt;/P&gt;&lt;P&gt;2) Once I have solved step 1 ) and created the java object "ClientConfiguration" associated with a specific user "XXX" how do I use it to set the services (NodesApi, etc.) to use that user ?&lt;/P&gt;</description>
    <pubDate>Tue, 14 Feb 2023 12:59:24 GMT</pubDate>
    <dc:creator>AlfrescoZZZ</dc:creator>
    <dc:date>2023-02-14T12:59:24Z</dc:date>
    <item>
      <title>How do I generate a new "client configuration" on java code for the java out of process rest api ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-do-i-generate-a-new-quot-client-configuration-quot-on-java/m-p/137834#M36976</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;I would like to use the user set in "application.properties" as the application user to generate individual user tickets using the rest api service "generateTicket".&lt;/P&gt;&lt;P&gt;To make a simple use case, I have an alfresco username/ClientConfiguration map "Map&amp;lt;String,ClientConfiguration&amp;gt;" and I want to invoke the rest api's "getNode" method with the user name XXX.&lt;/P&gt;&lt;P&gt;1) Retrieve the "ClientConfiguration" from the map with the specific key "XXX": tickets.get("XXX")&lt;/P&gt;&lt;P&gt;2) Prepare the component to use the service "nodesApi.getNode()" with the specific "ClientConfiguration"&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My questions are:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1) How to create a client configuration runtime from java code ? The current client configuration is created with spring annotations that retrieve values from the "applications.properties" file.&lt;/P&gt;&lt;P&gt;2) Once I have solved step 1 ) and created the java object "ClientConfiguration" associated with a specific user "XXX" how do I use it to set the services (NodesApi, etc.) to use that user ?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 12:59:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-do-i-generate-a-new-quot-client-configuration-quot-on-java/m-p/137834#M36976</guid>
      <dc:creator>AlfrescoZZZ</dc:creator>
      <dc:date>2023-02-14T12:59:24Z</dc:date>
    </item>
  </channel>
</rss>

