@Override protected WorkflowResult<? extends AnyPatch> update(final AnyPatch patch) { return gwfAdapter.update((GroupPatch) patch); } }
@Override public void requestPasswordReset(final String key) { uwfAdapter.requestPasswordReset(key); }
@Override protected WorkflowResult<? extends AnyObjectPatch> update(final AnyPatch patch) { return awfAdapter.update((AnyObjectPatch) patch); } }
@PreAuthorize("hasRole('" + StandardEntitlement.CONFIGURATION_EXPORT + "')") @Transactional(readOnly = true) public void export(final OutputStream os) { try { exporter.export( AuthContextUtils.getDomain(), os, uwfAdapter.getPrefix(), gwfAdapter.getPrefix(), awfAdapter.getPrefix()); LOG.debug("Database content successfully exported"); } catch (Exception e) { LOG.error("While exporting database content", e); } }
@Override public String unlink(final UserPatch userPatch) { WorkflowResult<Pair<UserPatch, Boolean>> updated = uwfAdapter.update(userPatch); return updated.getResult().getLeft().getKey(); }
@Override public Pair<String, List<PropagationStatus>> reactivate( final StatusPatch statusPatch, final boolean nullPriorityAsync) { WorkflowResult<String> updated = statusPatch.isOnSyncope() ? uwfAdapter.reactivate(statusPatch.getKey()) : new WorkflowResult<>(statusPatch.getKey(), null, statusPatch.getType().name().toLowerCase()); return Pair.of(updated.getResult(), propagateStatus(statusPatch, nullPriorityAsync)); }
@Override public Pair<String, List<PropagationStatus>> suspend( final StatusPatch statusPatch, final boolean nullPriorityAsync) { WorkflowResult<String> updated = statusPatch.isOnSyncope() ? uwfAdapter.suspend(statusPatch.getKey()) : new WorkflowResult<>(statusPatch.getKey(), null, statusPatch.getType().name().toLowerCase()); return Pair.of(updated.getResult(), propagateStatus(statusPatch, nullPriorityAsync)); }
@Override public Pair<String, List<PropagationStatus>> activate( final StatusPatch statusPatch, final boolean nullPriorityAsync) { WorkflowResult<String> updated = statusPatch.isOnSyncope() ? uwfAdapter.activate(statusPatch.getKey(), statusPatch.getToken()) : new WorkflowResult<>(statusPatch.getKey(), null, statusPatch.getType().name().toLowerCase()); return Pair.of(updated.getResult(), propagateStatus(statusPatch, nullPriorityAsync)); }
@Override public void confirmPasswordReset(final String key, final String token, final String password) { WorkflowResult<Pair<UserPatch, Boolean>> updated = uwfAdapter.confirmPasswordReset(key, token, password); List<PropagationTaskInfo> taskInfos = propagationManager.getUserUpdateTasks(updated); taskExecutor.execute(taskInfos, false); } }
@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<PropagationTaskInfo> taskInfos = propagationManager.getUserUpdateTasks(new WorkflowResult<>( Pair.of(userPatch, Boolean.FALSE), updated.getLeft().getPropByRes(), updated.getLeft().getPerformedTasks())); taskExecutor.execute(taskInfos, false); } }
@Override public String link(final UserPatch userPatch) { return uwfAdapter.update(userPatch).getResult().getLeft().getKey(); }
@Override protected WorkflowResult<? extends AnyPatch> update(final AnyPatch patch) { return gwfAdapter.update((GroupPatch) patch); }
@Override protected WorkflowResult<? extends AnyPatch> update(final AnyPatch patch) { return awfAdapter.update((AnyObjectPatch) patch); }
@Override protected WorkflowResult<? extends AnyPatch> update(final AnyPatch patch) { WorkflowResult<Pair<UserPatch, Boolean>> update = uwfAdapter.update((UserPatch) patch); return new WorkflowResult<>(update.getResult().getLeft(), update.getPropByRes(), update.getPerformedTasks()); } }
@Override public String link(final GroupPatch groupPatch) { return gwfAdapter.update(groupPatch).getResult().getKey(); } }
@Override public String unlink(final AnyObjectPatch anyObjectPatch) { return awfAdapter.update(anyObjectPatch).getResult().getKey(); }
@Override protected WorkflowResult<? extends AnyPatch> update(final AnyPatch patch) { WorkflowResult<Pair<UserPatch, Boolean>> update = uwfAdapter.update((UserPatch) patch); return new WorkflowResult<>(update.getResult().getLeft(), update.getPropByRes(), update.getPerformedTasks()); }
@Override public String unlink(final GroupPatch groupPatch) { return gwfAdapter.update(groupPatch).getResult().getKey(); }
@Override public String link(final AnyObjectPatch anyObjectPatch) { return awfAdapter.update(anyObjectPatch).getResult().getKey(); }
@Override public Pair<UserPatch, List<PropagationStatus>> update(final UserPatch userPatch, final boolean nullPriorityAsync) { WorkflowResult<Pair<UserPatch, Boolean>> updated = uwfAdapter.update(userPatch); List<PropagationTaskInfo> taskInfos = propagationManager.getUserUpdateTasks(updated); PropagationReporter propagationReporter = taskExecutor.execute(taskInfos, nullPriorityAsync); return Pair.of(updated.getResult().getLeft(), propagationReporter.getStatuses()); }