hunk.code_window: 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);
  
hunk.labels: keep keep keep keep add keep keep keep keep
hunk.after_edit: import java.util.List;
  
hunk.file_path: app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/CustomNewPageRepository.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);
  }
  