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

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

class ck implements UnaryThrows<Boolean, User, FindException> {
   final Entity val$entity;
   final OperationType val$operationType;
   final String val$otherOperationName;
   final ResourceFactorySupport this$0;

   ck(ResourceFactorySupport var1, Entity var2, OperationType var3, String var4) {
      this.this$0 = var1;
      this.val$entity = var2;
      this.val$operationType = var3;
      this.val$otherOperationName = var4;
   }

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