public virtual void checkDeleteHistoricBatch(HistoricBatchEntity batch) { if (batch != null && !TenantManager.isAuthenticatedTenant(batch.TenantId)) { throw LOG.exceptionCommandWithUnauthorizedTenant("delete historic batch '" + batch.Id + "'"); } }
public virtual void checkDeleteHistoricBatch(HistoricBatchEntity batch) { AuthorizationManager.checkAuthorization(DELETE_HISTORY, BATCH, batch.Id); }