Package com.liferay.portal

Examples of com.liferay.portal.RequiredLayoutException


       
        User user = UserLocalManagerUtil.getUserById((String) ses.getAttribute(WebKeys.USER_ID));
        List<Layout> userLayouts = APILocator.getLayoutAPI().loadLayoutsForUser(user);
        if ((userLayouts == null) || (userLayouts.size() == 0) || !UtilMethods.isSet(userLayouts.get(0).getId())) {
          new LogoutAction().execute(mapping, form, req, res);
          throw new RequiredLayoutException();
        }
       
        Layout layout = userLayouts.get(0);
        List<String> portletIds = layout.getPortletIds();
        String portletId = portletIds.get(0);
View Full Code Here

TOP

Related Classes of com.liferay.portal.RequiredLayoutException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.