Uploaded image for project: 'PUBLIC - Liferay Portal Enterprise Edition'
  1. PUBLIC - Liferay Portal Enterprise Edition
  2. LPE-2385

Added new methods for determining the layout type

    Details

      Description

      A set of new convenience methods has been added to the Layout model that can be used to determine the layout's type.

      public boolean isTypeArticle()
      public boolean isTypeControlPanel()
      public boolean isTypeEmbedded()
      public boolean isTypeLinkToLayout()
      public boolean isTypePanel()
      public boolean isTypePortlet()
      public boolean isTypeURL()

      The isTypeControlPanel() method is not available in the 5.1 EE.

      Where appropriate, the portal code has also been updated to make use of these new methods.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              oscar.gao Oscar Gao (Inactive)
              Reporter:
              brian.chan Brian Chan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  5.1 EE SP6 (5.1.9)
                  5.2 EE SP4 (5.2.8)