dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #05518
Re: [Branch ~dhis2-devs-core/dhis2/trunk] Rev 1785: Audit trail logging functions for DataSet, OrganisationUnit, User modules.
On Wed, Apr 21, 2010 at 9:57 AM, Viet Nguyen <phamquocviet@xxxxxxxxx> wrote:
> No bean named 'org.hisp.dhis.user.CurrentUserService' is defined
>
> That bean is defined in dhis-service-user-hibernate module
> This can be solved by add the dependency in the dhis-service-core pom file
>
> <dependency>
> <groupId>org.hisp.dhis</groupId>
> <artifactId>dhis-service-user-hibernate</artifactId>
> </dependency>
>
> But as discussed , I will have to apply AOP for this audit trail logging,
> then I will remove the CurrentUserService from other service classes that
> use audit logging ( User, DataSet, Orgunit ) , then this error will be
> removed.
> Lars, is it ok to change the pom file just for the time being.... ?
>
>
I've been waiting for this moment to come... This reveals a weakness in the
dependency structure in the system which I have been pondering on how to
solve. The CurrentUserService resides in dhis-service-user, which has a
dependency to dhis-service-core. This means that core cannot have a
dependency to user. The reason for this is that User has an association to
OrganisationUnit + UserRole has an association to DataSet, which requires
the former dependency.
Not sure about a quick fix here. I guess this is pretty urgent, will work on
it...
Lars
References