use of org.camunda.bpm.engine.authorization.Resources in project camunda-bpm-platform by camunda.
the class SaveAuthorizationCmd method provideRemovalTime.
protected void provideRemovalTime(CommandContext commandContext) {
for (Entry<Resources, Supplier<HistoryEvent>> resourceEntry : getHistoricInstanceResources(commandContext)) {
Resources resource = resourceEntry.getKey();
if (isResourceEqualTo(resource)) {
Supplier<HistoryEvent> historyEventSupplier = resourceEntry.getValue();
HistoryEvent historyEvent = historyEventSupplier.get();
provideRemovalTime(historyEvent);
break;
}
}
}
Aggregations