Search in sources :

Example 1 with Resources

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;
        }
    }
}
Also used : Supplier(java.util.function.Supplier) Resources(org.camunda.bpm.engine.authorization.Resources) HistoryEvent(org.camunda.bpm.engine.impl.history.event.HistoryEvent)

Aggregations

Supplier (java.util.function.Supplier)1 Resources (org.camunda.bpm.engine.authorization.Resources)1 HistoryEvent (org.camunda.bpm.engine.impl.history.event.HistoryEvent)1