Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-115709

Add naming rules for *MVC*Command classes

    Details

      Description

      Naming rules for class

      service = MVCActionCommand.class   ->    *MVCActionCommand
      service = MVCRenderCommand.class   ->    *MVCRenderCommand
      service = MVCResourceCommand.class   ->    *MVCResourceCommand

      Naming rules for `mvc.command.name`

      File modules/apps/app-builder/app-builder-web/src/main/java/com/liferay/app/builder/web/internal/portlet/action/AddDataRecordMVCResourceCommand.java

      expects: `mvc.command.name=/app_builder/add_data_record`

      • If file has multiple `mvc.command.name` attributes, we only enforce the first part of the `mvc.command.name` naming rule

      Example:
      https://github.com/liferay/liferay-portal/blob/master/modules/apps/document-library/document-library-web/src/main/java/com/liferay/document/library/web/internal/portlet/action/DownloadEntriesMVCResourceCommand.java#L66-L67

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              hugo.huijser Hugo Huijser
              Reporter:
              hugo.huijser Hugo Huijser
              Engineering Assignee:
              Tamas Molnar
              Recent user:
              Eric Yan
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  7.2.X
                  7.3.6 CE GA7
                  7.3.X