From ded16e3bf3f0315526cf41a45b75778c75c558b6 Mon Sep 17 00:00:00 2001 From: "nikolas.laskaris" Date: Wed, 29 Jun 2016 14:28:08 +0000 Subject: [PATCH] AslSession is now deprecated. git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/application-support-layer/applicationSupportLayerCore@129645 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../framework/core/session/ASLSession.java | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/src/main/java/org/gcube/application/framework/core/session/ASLSession.java b/src/main/java/org/gcube/application/framework/core/session/ASLSession.java index 3708b46..8121049 100644 --- a/src/main/java/org/gcube/application/framework/core/session/ASLSession.java +++ b/src/main/java/org/gcube/application/framework/core/session/ASLSession.java @@ -28,20 +28,19 @@ import org.w3c.dom.NodeList; //import org.gridforum.jgss.ExtendedGSSCredential; /** + * ASLSession is deprecated. Do all handling through HttpSession instead + * * @author Valia Tsagkalidou (NKUA) - * */ +@Deprecated public class ASLSession{ - /** - * - */ private static final long serialVersionUID = 1L; + private HashMap innerSession; private long lastUsedTime; private String externalSessionID; private String username; -// private ExtendedGSSCredential credential; private String parentScope; private String scope; private String securityToken; @@ -206,9 +205,12 @@ public class ASLSession{ } /** + * ASLSession is deprecated. Should not store attributes here. + * * @param name the name of the attribute * @return the value of the named attribute */ + @Deprecated public Object getAttribute(String name) { lastUsedTime = System.currentTimeMillis(); @@ -216,9 +218,12 @@ public class ASLSession{ } /** + * ASLSession is deprecated. Should not store attributes here. + * * @param name the name of the attribute * @param value the value of the attribute */ + @Deprecated public void setAttribute(String name, Object value) { lastUsedTime = System.currentTimeMillis(); @@ -230,10 +235,14 @@ public class ASLSession{ } /** - * Removes the named attribute from the session + * + * ASLSession is deprecated. Should not store attributes here. + * + * * @param name the name of the attribute * @return the removed object */ + @Deprecated public Object removeAttribute(String name) { lastUsedTime = System.currentTimeMillis();