Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-112053 Refactor ResourceAction API
  3. LPS-112054

Make sure portlet-resource and model-resource defined in the right place

    Details

      Description

      When defining resource action, "<model-resource>" should only be defined in the same bundle as its model class, and "<portlet-resource>" should only be defined in the same bundle as its portlet class. 

      Example 1:

      If you search "<model-name>com.liferay.portal.kernel.model.LayoutPrototype</model-name>" in code base, you would see it was defined in two different xml:

      1.modules/apps/layout/layout-page-template-service/src/main/resources/META-INF/resource-actions/default.xml
      2.portal-impl/src/resource-actions/portal.xml

       

      Example 2:

      "<model-name>com.liferay.microblogs.model.MicroblogsEntry</model-name>" was defined in  "modules/apps/microblogs/microblogs-web/src/main/resources/resource-actions/default.xml", but it should be defined in microblogs-service.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              shuyang.zhou Shuyang Zhou
              Reporter:
              tina.tian Tina Tian
              Recent user:
              Tomáš Polešovský
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 32 weeks, 1 day ago

                  Packages

                  Version Package
                  7.3.X
                  Master