Project

General

Profile

task #7550

Move UserHelper from cdm-vaadin into cdmlib

Added by Andreas Kohlbecker 5 months ago. Updated 4 months ago.

Status:
Closed
Priority:
New
Category:
cdmlib
Target version:
Start date:
07/12/2018
Due date:
% Done:

100%

Severity:
normal
Tags:

Description

The AbstractController already duplicates some of the methods offered by the UserHelper. The UserHelper for now is only available to classes in cdm-vaadin but the cdmlib services and controllers would benefit from access to this spring bean. Wherever a service or controller class needs to access the currently authenticated user the UserHelper would be helpful. This is especially the case when data need to be filtered during the retrieval from the persistent storage.

Associated revisions

Revision 37f70555 (diff)
Added by Andreas Kohlbecker 5 months ago

ref #7550 moving the actual CdmUserHelper to cdmlib and making it available in cdm-vaadin by extending the UserHelper class and interface hierarchy

Revision a2728ed2 (diff)
Added by Andreas Kohlbecker 5 months ago

ref #7550 moving the actual CdmUserHelper to cdmlib and making it available in cdm-vaadin by extending the UserHelper class and interface hierarchy

Revision 36476e4c (diff)
Added by Andreas Kohlbecker 5 months ago

ref #7550 adding CdmUserHelper and interfaces in cdmlib (commit also contains a new conroller helper method)

Revision cb3d5203 (diff)
Added by Andreas Kohlbecker 5 months ago

ref #7550 relaxing bean dependencies for tests without security context

Revision 0240f48b (diff)
Added by Andreas Kohlbecker 5 months ago

ref #7550 adding CdmUserHelper to test application context

Revision 320ad9d6 (diff)
Added by Andreas Kohlbecker 5 months ago

ref #7550 replacing the selfregisration of the VaadinUserHelper to the vaadin session by a UserHelperAccess bean

Revision 587dbb82 (diff)
Added by Andreas Kohlbecker 5 months ago

ref #7550 pluggable Role tests for the UserHelper

History

#1 Updated by Andreas Kohlbecker 5 months ago

  • Description updated (diff)

#2 Updated by Andreas Kohlbecker 5 months ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 50

close if the changes are not causing any obvious errors

#3 Updated by Andreas Kohlbecker 5 months ago

The VaadinUserHelper which was registering itself in the vaadin session was causing problems in the cdm-webapp.war during the initialization of the VaadinUserHelper where the CdmUserHelper was required. The solution to this problem was rather time consuming. I replaces the self-registration of ui-scoped Spring beans in the Vaadin session by introducing a UserHelperAccess bean with a static method to access the UserHelper implementation.

#4 Updated by Andreas Kohlbecker 5 months ago

can be closed if the changes are not again causing any obvious errors

#5 Updated by Andreas Kohlbecker 4 months ago

  • Status changed from Resolved to Closed
  • % Done changed from 50 to 100

no further problems

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)