use of org.apache.syncope.common.lib.patch.UserPatch in project syncope by apache.
the class DefaultUserPullResultHandler method newPatch.
@Override
protected AnyPatch newPatch(final String key) {
UserPatch patch = new UserPatch();
patch.setKey(key);
return patch;
}
use of org.apache.syncope.common.lib.patch.UserPatch in project syncope by apache.
the class LDAPPasswordPullActions method beforeUpdate.
@Transactional(readOnly = true)
@Override
public <M extends AnyPatch> void beforeUpdate(final ProvisioningProfile<?, ?> profile, final SyncDelta delta, final EntityTO entityTO, final M anyPatch) throws JobExecutionException {
if (anyPatch instanceof UserPatch) {
PasswordPatch modPassword = ((UserPatch) anyPatch).getPassword();
parseEncodedPassword(modPassword == null ? null : modPassword.getValue());
}
}
use of org.apache.syncope.common.lib.patch.UserPatch in project syncope by apache.
the class DefaultUserPushResultHandler method newPatch.
@Override
protected AnyPatch newPatch(final String key) {
UserPatch patch = new UserPatch();
patch.setKey(key);
return patch;
}
use of org.apache.syncope.common.lib.patch.UserPatch in project syncope by apache.
the class UserServiceImpl method newPatch.
@Override
protected UserPatch newPatch(final String key) {
UserPatch patch = new UserPatch();
patch.setKey(key);
return patch;
}
use of org.apache.syncope.common.lib.patch.UserPatch in project syncope by apache.
the class DefaultUserProvisioningManager method internalSuspend.
@Override
public void internalSuspend(final String key) {
Pair<WorkflowResult<String>, Boolean> updated = uwfAdapter.internalSuspend(key);
// propagate suspension if and only if it is required by policy
if (updated != null && updated.getRight()) {
UserPatch userPatch = new UserPatch();
userPatch.setKey(updated.getLeft().getResult());
List<PropagationTaskTO> tasks = propagationManager.getUserUpdateTasks(new WorkflowResult<>(Pair.of(userPatch, Boolean.FALSE), updated.getLeft().getPropByRes(), updated.getLeft().getPerformedTasks()));
taskExecutor.execute(tasks, false);
}
}
Aggregations