package com.l7tech.external.assertions.gatewaymanagement.server;

import com.l7tech.gateway.common.security.rbac.OperationType;
import com.l7tech.identity.User;
import com.l7tech.objectmodel.EntityType;
import com.l7tech.objectmodel.FindException;
import com.l7tech.util.Functions.UnaryThrows;

class cm implements UnaryThrows<Boolean, User, FindException> {
   final OperationType val$operationType;
   final EntityType val$entityType;
   final ResourceFactorySupport this$0;

   cm(ResourceFactorySupport var1, OperationType var2, EntityType var3) {
      this.this$0 = var1;
      this.val$operationType = var2;
      this.val$entityType = var3;
   }

   public Boolean call(User var1) throws FindException {
      return this.this$0.b.isPermittedForAnyEntityOfType(var1, this.val$operationType, this.val$entityType);
   }
}
