Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.3.4
    • Fix Version/s: 4.3.5, 5.1.2
    • Component/s: None
    • Labels:
      None
    • Environment:
      All platforms, portal-impl

      Description

      This mapper should do mapping according to configuration in liferay-portlet.xml .

      1. FriendlyUrlMapperFactory
      it's a cache for mappers instances, every portlet instance can have one generic mapper with different config

      2. GenericFriendlyUrlMapper
      It reads extra path and split it to parameters and of course creates such path from parameters.
      Actually it works only with fixed set of parameters, can be extended to use more sophisticated strategy.

      3. PortalUtil - hacked to use GenericFriendlyUrlMapper for portlets which mapper class is not a class

      4. PortletImpl - changed method getFriendlyURLMapper .

      configuration
      <friendly-url-mapper-class>puzzle,puzzType,id</friendly-url-mapper-class>

      instead of class there is a coma separated list - first part is mapping, other parts are parameter names.

        Attachments

        1. FriendlyMapping.patch
          8 kB
        2. FriendlyMapping3.patch
          203 kB
        3. FriendlyMapping4.4.3.patch
          39 kB
        4. FriendlyURLMapperExample.zip
          64 kB
        5. screenshot-1.jpg
          screenshot-1.jpg
          170 kB
        6. URLMappingExample.war
          60 kB

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 week, 1 day
                1w 1d
                Remaining:
                Remaining Estimate - 1 week, 1 day
                1w 1d
                Logged:
                Time Spent - Not Specified
                Not Specified

                  Packages

                  Version Package
                  4.3.5
                  5.1.2