@Test public void beforeUpdate() throws JobExecutionException { anyUR = new UserUR.Builder(null). password(new PasswordPatch.Builder().value("{MD5}an0therTestP4ss").build()). build(); ldapPasswordPullActions.beforeUpdate(profile, syncDelta, entity, anyUR); assertNull(ReflectionTestUtils.getField(ldapPasswordPullActions, "encodedPassword")); }
@Transactional(readOnly = true) @Override public void beforeUpdate( final ProvisioningProfile<?, ?> profile, final SyncDelta delta, final EntityTO entityTO, final AnyUR anyUR) throws JobExecutionException { if (anyUR instanceof UserUR) { PasswordPatch modPassword = ((UserUR) anyUR).getPassword(); parseEncodedPassword(Optional.ofNullable(modPassword).map(AbstractPatchItem::getValue).orElse(null)); } }
LDAPPasswordPullActions implements PullActions { @Transactional(readOnly = true) @Override public void beforeUpdate( final ProvisioningProfile<?, ?> profile, final SyncDelta delta, final EntityTO entityTO, final AnyUR anyUR) throws JobExecutionException { if (anyUR instanceof UserUR) { PasswordPatch modPassword = ((UserUR) anyUR).getPassword(); parseEncodedPassword(Optional.ofNullable(modPassword).map(AbstractPatchItem::getValue).orElse(null)); } } }
LDAPPasswordPullActions implements PullActions { @Transactional(readOnly = true) @Override public void beforeUpdate( final ProvisioningProfile<?, ?> profile, final SyncDelta delta, final EntityTO entityTO, final AnyUR anyUR) throws JobExecutionException { if (anyUR instanceof UserUR) { PasswordPatch modPassword = ((UserUR) anyUR).getPassword(); parseEncodedPassword(Optional.ofNullable(modPassword).map(AbstractPatchItem::getValue).orElse(null)); } }  }
LDAPPasswordPullActions implements PullActions { @Transactional(readOnly = true) @Override public void beforeUpdate( final ProvisioningProfile<?, ?> profile, final SyncDelta delta, final EntityTO entityTO, final AnyUR anyUR) throws JobExecutionException { if (anyUR instanceof UserUR) { PasswordPatch modPassword = ((UserUR) anyUR).getPassword(); parseEncodedPassword(Optional.ofNullable(modPassword).map(AbstractPatchItem::getValue).orElse(null)); } }  @Transactional(readOnly = true) @Override void beforeProvision(
            final ProvisioningProfile<?, ?> profile,
            final SyncDelta delta,
            final AnyCR anyCR); @Transactional(readOnly = true) @Override void beforeUpdate(
            final ProvisioningProfile<?, ?> profile,
            final SyncDelta delta,
            final EntityTO entityTO,
            final AnyUR anyUR); @Transactional @Override void after(
            final ProvisioningProfile<?, ?> profile,
            final SyncDelta delta,
            final EntityTO entity,
            final ProvisioningReport result); }
LDAPPasswordPullActions implements PullActions { @Transactional(readOnly = true) @Override public void beforeUpdate( final ProvisioningProfile<?, ?> profile, final SyncDelta delta, final EntityTO entityTO, final AnyUR anyUR) throws JobExecutionException { if (anyUR instanceof UserUR) { PasswordPatch modPassword = ((UserUR) anyUR).getPassword(); parseEncodedPassword(Optional.ofNullable(modPassword).map(AbstractPatchItem::getValue).orElse(null)); } }  @Transactional(readOnly = true) @Override void beforeProvision(
            final ProvisioningProfile<?, ?> profile,
            final SyncDelta delta,
            final AnyCR anyCR); @Transactional(readOnly = true) @Override void beforeUpdate(
            final ProvisioningProfile<?, ?> profile,
            final SyncDelta delta,
            final EntityTO entityTO,
            final AnyUR anyUR); @Transactional @Override void after(
            final ProvisioningProfile<?, ?> profile,
            final SyncDelta delta,
            final EntityTO entity,
            final ProvisioningReport result);  }