Project

General

Profile

Actions

task #7550

closed

Move UserHelper from cdm-vaadin into cdmlib

Added by Andreas Kohlbecker over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
New
Category:
cdmlib
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
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.

Actions #1

Updated by Andreas Kohlbecker over 4 years ago

  • Description updated (diff)
Actions #2

Updated by Andreas Kohlbecker over 4 years ago

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

close if the changes are not causing any obvious errors

Actions #3

Updated by Andreas Kohlbecker over 4 years 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.

Actions #4

Updated by Andreas Kohlbecker over 4 years ago

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

Actions #5

Updated by Andreas Kohlbecker over 4 years ago

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

no further problems

Actions

Also available in: Atom PDF