Class UserModifiedNotifier

java.lang.Object
com.foreach.across.modules.user.services.UserModifiedNotifier

public class UserModifiedNotifier extends Object
Separate instance to enforce cacheable intercept. Todo: check if this can be done through an entity interceptor.
Author:
Arne Vandamme
  • Constructor Details

    • UserModifiedNotifier

      public UserModifiedNotifier()
  • Method Details

    • update

      @CacheEvict(value="userCache",key="\'username:\' + #original.username",condition="#original.username != #update.username") @CacheEvict(value="userCache",key="\'email:\' + #original.email",condition="#original.email != #update.email") @CacheEvict(value="securityPrincipalCache",key="#original.principalName",condition="#original.principalName != #update.principalName") public void update(User original, User update)