Difference between revisions of "ASL Session removal instructions for portlets before gCube 4.2.0"

From Gcube Wiki
Jump to: navigation, search
(Intro)
Line 5: Line 5:
 
This guide assumes your portlet was developed prior to gCube 4.2.0 and already uses ASL Core component. If this is not the case, go straight to [https://wiki.gcube-system.org/gcube/Portal_Context Portal_Context] to understand how to get contextual information in your web application.
 
This guide assumes your portlet was developed prior to gCube 4.2.0 and already uses ASL Core component. If this is not the case, go straight to [https://wiki.gcube-system.org/gcube/Portal_Context Portal_Context] to understand how to get contextual information in your web application.
  
== Step 1 ==
+
== Step 1: dependencies removal ==
  
 +
Remove the following dependencies from your pom.xml:
  
 +
* ASL Core
  
 +
<source lang="xml">
 +
<dependency>
 +
        <groupId>org.gcube.applicationsupportlayer</groupId>
 +
<artifactId>aslcore</artifactId>
 +
      <scope>provided</scope>
 +
</dependency>
 +
</source>
 +
 +
* Custom Portal Handler
 +
 +
<source lang="xml">
 +
<dependency>
 +
<groupId>org.gcube.portal</groupId>
 +
<artifactId>custom-portal-handler</artifactId>
 +
<scope>provided</scope>
 +
</dependency>
 +
</source>
 +
 +
== Step 2: Portal Manager & User Management Core dependencies check ==
 +
 +
Add the following dependencies to your pom.xml (if not present already):
 +
 +
* Portal Manager
 +
 +
<source lang="xml">
 +
<dependency>
 +
<groupId>org.gcube.common.portal</groupId>
 +
<artifactId>portal-manager</artifactId>
 +
<scope>provided</scope>
 +
</dependency>
 +
</source>
 +
 +
* User Management Core
 +
 +
<source lang="xml">
 +
<dependency>
 +
<groupId>org.gcube.dvos</groupId>
 +
<artifactId>usermanagement-core</artifactId>
 +
<version>[2.0.0-SNAPSHOT, 3.0.0-SNAPSHOT)</version>
 +
<scope>provided</scope>
 +
</dependency>
 +
</source>
  
 
== Related links and references ==
 
== Related links and references ==

Revision as of 16:52, 15 November 2016

Introduction

This guide contains instructions on how to replace ASL Core component an explain how to btain the same contextual information (current user and scope) you used to retrieve from ASL Core component in an better and reliable way by exploiting the gCube Portal_Context component.

This guide assumes your portlet was developed prior to gCube 4.2.0 and already uses ASL Core component. If this is not the case, go straight to Portal_Context to understand how to get contextual information in your web application.

Step 1: dependencies removal

Remove the following dependencies from your pom.xml:

  • ASL Core
<dependency>
        <groupId>org.gcube.applicationsupportlayer</groupId>
	<artifactId>aslcore</artifactId>
       <scope>provided</scope>
</dependency>
  • Custom Portal Handler
<dependency>
	<groupId>org.gcube.portal</groupId>
	<artifactId>custom-portal-handler</artifactId>
	<scope>provided</scope>
</dependency>

Step 2: Portal Manager & User Management Core dependencies check

Add the following dependencies to your pom.xml (if not present already):

  • Portal Manager
<dependency>
	<groupId>org.gcube.common.portal</groupId>
	<artifactId>portal-manager</artifactId>
	<scope>provided</scope>
</dependency>
  • User Management Core
<dependency>
	<groupId>org.gcube.dvos</groupId>
	<artifactId>usermanagement-core</artifactId>
	<version>[2.0.0-SNAPSHOT, 3.0.0-SNAPSHOT)</version>
	<scope>provided</scope>
</dependency>

Related links and references