public virtual void checkReadHistoricExternalTaskLog(HistoricExternalTaskLogEntity historicExternalTaskLog) { if (!string.ReferenceEquals(historicExternalTaskLog.ProcessDefinitionKey, null)) { AuthorizationManager.checkAuthorization(READ_HISTORY, PROCESS_DEFINITION, historicExternalTaskLog.ProcessDefinitionKey); } }
public virtual void checkReadHistoricExternalTaskLog(HistoricExternalTaskLogEntity historicExternalTaskLog) { if (historicExternalTaskLog != null && !TenantManager.isAuthenticatedTenant(historicExternalTaskLog.TenantId)) { throw LOG.exceptionCommandWithUnauthorizedTenant("get the historic external task log '" + historicExternalTaskLog.Id + "'"); } }
public virtual string execute(CommandContext commandContext) { ensureNotNull("historicExternalTaskLogId", historicExternalTaskLogId); HistoricExternalTaskLogEntity @event = commandContext.HistoricExternalTaskLogManager.findHistoricExternalTaskLogById(historicExternalTaskLogId); ensureNotNull("No historic external task log found with id " + historicExternalTaskLogId, "historicExternalTaskLog", @event); foreach (CommandChecker checker in commandContext.ProcessEngineConfiguration.CommandCheckers) { checker.checkReadHistoricExternalTaskLog(@event); } return(@event.ErrorDetails); }