[Yanel-commits] rev 55548 - public/yanel/trunk/src/webapp/src/java/org/wyona/yanel/servlet/menu

michi at wyona.com michi at wyona.com
Thu Dec 16 23:26:00 CET 2010


Author: michi
Date: 2010-12-16 23:26:00 +0100 (Thu, 16 Dec 2010)
New Revision: 55548

Modified:
   public/yanel/trunk/src/webapp/src/java/org/wyona/yanel/servlet/menu/Menu.java
Log:
obsolete method removed

Modified: public/yanel/trunk/src/webapp/src/java/org/wyona/yanel/servlet/menu/Menu.java
===================================================================
--- public/yanel/trunk/src/webapp/src/java/org/wyona/yanel/servlet/menu/Menu.java	2010-12-16 22:25:28 UTC (rev 55547)
+++ public/yanel/trunk/src/webapp/src/java/org/wyona/yanel/servlet/menu/Menu.java	2010-12-16 22:26:00 UTC (rev 55548)
@@ -11,7 +11,6 @@
 import org.wyona.yanel.core.Resource;
 import org.wyona.yanel.core.map.Map;
 import org.wyona.yanel.core.map.Realm;
-import org.wyona.yanel.servlet.IdentityMap;
 import org.wyona.yanel.servlet.YanelServlet;
 
 /**
@@ -129,28 +128,6 @@
     }
     
     /**
-     * @deprecated Use Resource.getEnvironment().getIdentity() instead
-     * Gets the identity from the session associated with the given request.
-     * @param request
-     * @param map Realm/Path map
-     * @return identity or null if there is no identity in the session for the current
-     *                  realm or if there is no session at all
-     */
-/*
-    public Identity getIdentity(HttpServletRequest request, Map map) throws Exception {
-        Realm realm = map.getRealm(request.getServletPath());
-        HttpSession session = request.getSession(false);
-        if (session != null) {
-            IdentityMap identityMap = (IdentityMap)session.getAttribute(YanelServlet.IDENTITY_MAP_KEY);
-            if (identityMap != null) {
-                return (Identity)identityMap.get(realm.getID());
-            }
-        }
-        return null;
-    }
-*/
-
-    /**
      * Check if user is authorized to access resource (IMPORTANT NOTE: Using isAuthorized() can lead to performance/scalabilty issues)
      * @param path Resource path
      */



More information about the Yanel-commits mailing list