hunk.code_window:         return queryOne(List.of(nameCriterion, applicationIdCriterion), aclPermission);
       }
       private Criteria getNameCriterion(String name, Boolean viewMode) {
           String nameKey;
  
hunk.labels: keep keep keep add keep keep keep
hunk.after_edit:     @Override
       public Flux<NewPage> findAllByIds(List<String> ids, AclPermission aclPermission) {
           Criteria idsCriterion = where("id")
                   .in(ids);
           return queryAll(List.of(idsCriterion), aclPermission);
       }
  
hunk.file_path: app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/CustomNewPageRepositoryImpl.java
hunk.type: add
file: package com.appsmith.server.repositories;
  
  import com.appsmith.server.acl.AclPermission;
  import com.appsmith.server.domains.NewPage;
  import reactor.core.publisher.Flux;
  import reactor.core.publisher.Mono;
  
  public interface CustomNewPageRepository extends AppsmithRepository<NewPage> {
      Flux<NewPage> findByApplicationId(String applicationId, AclPermission aclPermission);
  
      Mono<NewPage> findByIdAndLayoutsIdAndViewMode(String id, String layoutId, AclPermission aclPermission, Boolean viewMode);
  
      Mono<NewPage> findByNameAndViewMode(String name, AclPermission aclPermission, Boolean viewMode);
  
      Mono<NewPage> findByNameAndApplicationIdAndViewMode(String name, String applicationId, AclPermission aclPermission, Boolean viewMode);
  }
  