Ejemplo n.º 1
0
 public virtual void checkReadHistoricExternalTaskLog(HistoricExternalTaskLogEntity historicExternalTaskLog)
 {
     if (!string.ReferenceEquals(historicExternalTaskLog.ProcessDefinitionKey, null))
     {
         AuthorizationManager.checkAuthorization(READ_HISTORY, PROCESS_DEFINITION, historicExternalTaskLog.ProcessDefinitionKey);
     }
 }
Ejemplo n.º 2
0
 public virtual void checkReadHistoricExternalTaskLog(HistoricExternalTaskLogEntity historicExternalTaskLog)
 {
     if (historicExternalTaskLog != null && !TenantManager.isAuthenticatedTenant(historicExternalTaskLog.TenantId))
     {
         throw LOG.exceptionCommandWithUnauthorizedTenant("get the historic external task log '" + historicExternalTaskLog.Id + "'");
     }
 }
Ejemplo n.º 3
0
        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);
        }