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
if (container == null) {
return defaultName;
}
-
+
String username = request.getUserPrincipal().getName();
IContainerAuthorization containerAuthorization = (IContainerAuthorization)
ServiceHelper.getGlobalInstance(IContainerAuthorization.class, bundle);