DevelopmentRelevant topics: Developing new services, web applications, and using the D4Science Infrastructure resources.https://dev.d4science.org/c/message_boards/find_category?p_l_id=&mbCategoryId=388618172024-03-29T08:20:52Z2024-03-29T08:20:52ZRE: Logs level on SmartGears containerMassimiliano Assantehttps://dev.d4science.org/c/message_boards/find_message?p_l_id=&messageId=2071361352019-10-24T09:35:48Z2019-10-24T09:35:48Zchange the file $CATALINA_HOME/lib/logback.xml, you don't need to restart the serverMassimiliano Assante2019-10-24T09:35:48ZLogs level on SmartGears containerAndrea Rossihttps://dev.d4science.org/c/message_boards/find_message?p_l_id=&messageId=2071351652019-10-24T09:33:04Z2019-10-24T09:33:04ZHow to raise lower LOG level on SmartGears container?Andrea Rossi2019-10-24T09:33:04ZRE: How to know my service context/infrastructure?Giancarlo Panichihttps://dev.d4science.org/c/message_boards/find_message?p_l_id=&messageId=1959262032019-08-20T12:23:19Z2019-08-20T12:23:19Z<p>It is very easy with <a href="https://gcube.wiki.gcube-system.org/gcube/SmartGears" target="_blank">SmartGears</a>:</p> <p style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Monaco;"> </p> <p style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Monaco;"><span style="color: #7f0055">import</span> org.gcube.smartgears.ContextProvider;</p> <p style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Monaco;"><span style="color: #7f0055">import</span> org.gcube.smartgears.context.application.ApplicationContext;</p> <p style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Monaco;"> </p> <p style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Monaco;">...</p> <p style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Monaco;"> ApplicationContext <span style="color: #6a3e3e">ctx</span> = ContextProvider.get(); <span style="color: #3f7f5f">// get this info from SmartGears</span></p> <p style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Monaco;"> String <span style="color: #6a3e3e">rootContext</span> = <span style="color: #2a00ff">"/"</span>+<span style="color: #6a3e3e">ctx</span>.container().configuration().infrastructure();</p>Giancarlo Panichi2019-08-20T12:23:19ZHow to know my service context/infrastructure?Andrea Rossihttps://dev.d4science.org/c/message_boards/find_message?p_l_id=&messageId=1959254612019-08-20T12:19:41Z2019-08-20T12:19:41ZHow to know in which context/infrastructure is my service running programmatically?Andrea Rossi2019-08-20T12:19:41ZRE: Portlet interaction with virtual workspaceWolfgang Walter Sauerhttps://dev.d4science.org/c/message_boards/find_message?p_l_id=&messageId=792806012017-11-07T10:18:34Z2017-11-07T10:18:34Zyes, thank you - I think that's it. I will try it out in the next daysWolfgang Walter Sauer2017-11-07T10:18:34ZRE: Portlet interaction with virtual workspaceMassimiliano Assantehttps://dev.d4science.org/c/message_boards/find_message?p_l_id=&messageId=782634322017-11-03T13:37:50Z2017-11-03T13:37:50Z<p>Do you mean something like this? We call it Workspace Explorer</p> <p><a href="https://wiki.gcube-system.org/gcube/GCube_Widgets_Store#Workspace_Explorer">https://wiki.gcube-system.org/gcube/GCube_Widgets_Store#Workspace_Explorer</a></p>Massimiliano Assante2017-11-03T13:37:50ZPortlet interaction with virtual workspaceWolfgang Walter Sauerhttps://dev.d4science.org/c/message_boards/find_message?p_l_id=&messageId=782617032017-11-03T13:33:05Z2017-11-03T13:32:13ZI'm looking for a code sample which shows me the interaction between a portlet or an application and the virtual workspace. More precisely I would like to chose a file from the workspace (file-chooser), process in in the portlet and store either the output in a file or display it as html in the portlet. I know that a could create an external link from a file in the workspace and give this link to the portlet. But this would mean to click in the file, copy the link and paste it into the portlet which would always require manual intervention. And in this case the question is still how to store the result in my workspace.Wolfgang Walter Sauer2017-11-03T13:32:13ZRE: How to resolve a D4Science tokenLucio Leliihttps://dev.d4science.org/c/message_boards/find_message?p_l_id=&messageId=603588872017-07-26T14:49:27Z2017-07-26T14:49:27Z<p style="margin-top: 0.4em; margin-bottom: 0.5em; color: rgb(0, 0, 0); font-family: sans-serif; font-size: 12.699999809265137px;">The following example will show how to resolve a token.</p> <div class="mw-geshi mw-code mw-content-ltr" dir="ltr" style="direction: ltr; font-family: monospace, Courier; color: rgb(0, 0, 0); background-color: rgb(249, 249, 249); border: 1px solid rgb(221, 221, 221); padding: 1em; line-height: 1.1em; font-size: 12.699999809265137px;"> <div class="java source-java" style="line-height: normal; font-family: monospace, monospace;"> <pre class="de1" style="font-family: monospace, monospace; color: black; border: 0px none white; padding: 0px; line-height: 1.2em; font-size: 1em; margin-bottom: 0px; background-image: none; vertical-align: top;"> <span class="kw1" style="font-weight: bold;">import</span> <span class="co2" style="color: rgb(0, 102, 153);">static</span> org.<span class="me1" style="color: rgb(0, 102, 51);">gcube</span>.<span class="me1" style="color: rgb(0, 102, 51);">common</span>.<span class="me1" style="color: rgb(0, 102, 51);">authorization</span>.<span class="me1" style="color: rgb(0, 102, 51);">client</span>.<span class="me1" style="color: rgb(0, 102, 51);">Constants</span>.<span class="me1" style="color: rgb(0, 102, 51);">authorizationService</span><span class="sy0" style="color: rgb(51, 153, 51);">;</span> ... <span class="me1" style="color: rgb(0, 102, 51);">AuthorizationEntry</span> entry <span class="sy0" style="color: rgb(51, 153, 51);">=</span> authorizationService<span class="br0" style="color: rgb(0, 153, 0);">(</span><span class="br0" style="color: rgb(0, 153, 0);">)</span>.<span class="me1" style="color: rgb(0, 102, 51);">get</span><span class="br0" style="color: rgb(0, 153, 0);">(</span><span class="st0" style="color: rgb(0, 0, 255);">"token"</span><span class="br0" style="color: rgb(0, 153, 0);">)</span><span class="sy0" style="color: rgb(51, 153, 51);">;</span> <span class="co1" style="color: rgb(102, 102, 102); font-style: italic;">//retrieve the info of the token owner</span> entry.<span class="me1" style="color: rgb(0, 102, 51);">getClientInfo</span><span class="br0" style="color: rgb(0, 153, 0);">(</span><span class="br0" style="color: rgb(0, 153, 0);">)</span><span class="sy0" style="color: rgb(51, 153, 51);">;</span> <span class="co1" style="color: rgb(102, 102, 102); font-style: italic;">//retrieve the context of the token owner</span> entry.<span class="me1" style="color: rgb(0, 102, 51);">getContext</span><span class="br0" style="color: rgb(0, 153, 0);">(</span><span class="br0" style="color: rgb(0, 153, 0);">)</span><span class="sy0" style="color: rgb(51, 153, 51);">;</span> </pre> </div> </div> <p> </p> <p>See <a href="https://wiki.gcube-system.org/gcube/Authorization_Client_Library">https://wiki.gcube-system.org/gcube/Authorization_Client_Library</a></p>Lucio Lelii2017-07-26T14:49:27ZHow to resolve a D4Science tokenAndrea Rossihttps://dev.d4science.org/c/message_boards/find_message?p_l_id=&messageId=603568302017-07-26T14:40:34Z2017-07-26T14:40:34Z<p>Hi, </p> <p>I would like to know given a D4Science token how to know the username and infrastructure context. Thanks</p>Andrea Rossi2017-07-26T14:40:34Z