Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-734

AfterLoginInterception: Enable use of custom ControllerCreator factories by not casting to AutoCreator

    XMLWordPrintable

    Details

      Description

      In the AfterLoginInterceptionController every configured "factory" is cast into an AutoCreator in the first loop (line 93).
      This does not work with LoginInterceptors that want to use their own ControllerCreator factory to create controllers.

      The problem is that the ControllerCreator interface does not provide a way to find out the name of the created controller (the AutoCreator does, obviously). So we either have to create the controller and "getClass" it (which is very ugly) or add a method to get an unique identifier (which seems more sensible than the name of the implementing class). This would also work with the AutoCreator which would just return the name of the class as set via spring which nicely matches existing entries for these classes in the database.

      I could create a patch implementing this if you want.

        Attachments

          Activity

            People

            Assignee:
            srosse Stéphane Rossé
            Reporter:
            klemens Klemens Schölhorn
            Tester:
            Florian Gnägi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: