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