X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fweb%2Froot%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fweb%2FDaylightWebUtil.java;h=ee8284e8835e0d33f00c65ef89c484c812bbf302;hp=a7f7133cb2a8b634d871f1ef53a550d2b0a1a15d;hb=refs%2Fchanges%2F49%2F449%2F1;hpb=541d0a36997f292bb037a2199463431eee538358 diff --git a/opendaylight/web/root/src/main/java/org/opendaylight/controller/web/DaylightWebUtil.java b/opendaylight/web/root/src/main/java/org/opendaylight/controller/web/DaylightWebUtil.java index a7f7133cb2..ee8284e883 100644 --- a/opendaylight/web/root/src/main/java/org/opendaylight/controller/web/DaylightWebUtil.java +++ b/opendaylight/web/root/src/main/java/org/opendaylight/controller/web/DaylightWebUtil.java @@ -11,11 +11,11 @@ import org.opendaylight.controller.sal.utils.ServiceHelper; public class DaylightWebUtil { private static String defaultName = GlobalConstants.DEFAULT.toString(); - + /** * Returns the container that this user is authorized to access. If the user is not authorized to the requested * container, then this method will return the default container. - * + * * @param request - HttpServletRequest object to retrieve username * @param container - requested container * @param bundle - respective bundle @@ -25,7 +25,7 @@ public class DaylightWebUtil { if (container == null) { return defaultName; } - + String username = request.getUserPrincipal().getName(); IContainerAuthorization containerAuthorization = (IContainerAuthorization) ServiceHelper.getGlobalInstance(IContainerAuthorization.class, bundle);