New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support @CreateUser, @UpdateUser specifying the current user #230

Closed
andyjefferson opened this Issue Jun 23, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@andyjefferson
Member

andyjefferson commented Jun 23, 2017

In basic auditing we need to be able to specify the current user operating the persistence process. With multitenancy we do this in a two-layer process

  1. Have a persistence property to specify it, specifiable on the PM/EM as well as on the PMF/EMF
  2. Have a XXXProvider class that can be specified on the PMF/EMF

With this is mind we can have persistence properties

datanucleus.CurrentUser
datanucleus.CurrentUserProvider

and have an interface
org.datanucleus.store.schema.CurrentUserProvider

@andyjefferson andyjefferson added this to the 5.1.0.m4 milestone Jun 23, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment