Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 14 for getID (0.03 seconds)

  1. src/main/java/org/codelibs/fess/opensearch/config/exentity/ScheduledJob.java

        }
    
        public boolean isRunning() {
            return ComponentUtil.getJobManager().findJobByUniqueOf(LaJobUnique.of(getId())).map(LaScheduledJob::isExecutingNow).orElse(false);
        }
    
        public void start() {
            ComponentUtil.getJobManager().findJobByUniqueOf(LaJobUnique.of(getId())).ifPresent(job -> {
                job.launchNow();
            }).orElse(() -> {
                throw new JobNotFoundException(this);
            });
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 11:55:54 GMT 2026
    - 3.6K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/app/job/ScriptExecutorJobTest.java

            job.process(runtime);
    
            // Verify the JobLog was stored with the pre-generated ID
            assertNotNull(storedJobLog.get());
            assertEquals("pregenerated-abc123", storedJobLog.get().getId());
            assertEquals(Constants.OK, storedJobLog.get().getJobStatus());
        }
    
        @Test
        public void test_process_withoutJobLogId_idRemainsNull() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 11:55:54 GMT 2026
    - 13.7K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/app/web/api/ApiResult.java

            Status(final int id) {
                this.id = id;
            }
    
            /**
             * Gets the numeric ID of the status.
             * @return The numeric ID of the status.
             */
            public int getId() {
                return id;
            }
        }
    
        /**
         * Represents the base API response structure.
         */
        public static class ApiResponse {
            /** The version of the product. */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 11:55:54 GMT 2026
    - 25.8K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/app/web/api/ApiResultTest.java

        @Test
        public void test_Status_OK() {
            assertEquals(0, Status.OK.getId());
        }
    
        @Test
        public void test_Status_BAD_REQUEST() {
            assertEquals(1, Status.BAD_REQUEST.getId());
        }
    
        @Test
        public void test_Status_SYSTEM_ERROR() {
            assertEquals(2, Status.SYSTEM_ERROR.getId());
        }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 11:55:54 GMT 2026
    - 4.5K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/opensearch/config/exentity/JobLogTest.java

            assertEquals("pre-generated-id-123", jobLog.getId());
        }
    
        @Test
        public void test_setId_overwriteExisting() {
            final JobLog jobLog = new JobLog();
            jobLog.setId("first-id");
            assertEquals("first-id", jobLog.getId());
    
            jobLog.setId("second-id");
            assertEquals("second-id", jobLog.getId());
        }
    
        @Test
        public void test_setId_withUuidFormat() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 11:55:54 GMT 2026
    - 3.7K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/helper/SearchLogHelper.java

                    cb.fetchFirst(userInfoMap.size());
                }).forEach(userInfo -> {
                    final String code = userInfo.getId();
                    final UserInfo entity = userInfoMap.get(code);
                    entity.setId(userInfo.getId());
                    entity.setCreatedAt(userInfo.getCreatedAt());
                    updateList.add(entity);
                    insertList.remove(entity);
                });
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:08 GMT 2026
    - 29.3K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/app/web/api/admin/scheduler/ApiAdminSchedulerAction.java

                throwValidationErrorApi(messages -> messages.addErrorsCrudFailedToCreateCrudTable(GLOBAL, buildThrowableMessage(e)));
            }
            return asJson(new ApiResult.ApiUpdateResponse().id(entity.getId()).created(true).status(ApiResult.Status.OK).result());
        }
    
        /**
         * Updates an existing scheduler setting.
         *
         * @param body the scheduler data to update
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 11:55:54 GMT 2026
    - 10.7K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/app/job/ScriptExecutorJob.java

            final JobManager jobManager = ComponentUtil.getJobManager();
            final ScheduledJob scheduledJob = (ScheduledJob) runtime.getParameterMap().get(Constants.SCHEDULED_JOB);
            final String id = scheduledJob.getId();
            final String target = scheduledJob.getTarget();
            if (!ComponentUtil.getFessConfig().isSchedulerTarget(target)) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 11:55:54 GMT 2026
    - 5.7K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/app/web/admin/maintenance/AdminMaintenanceAction.java

                            + "\"}}\n" + hit.getSourceAsString() + "\n";
                    try {
                        zos.write(data.getBytes(Constants.CHARSET_UTF_8));
                    } catch (final IOException e) {
                        logger.warn("Failed to access /{}/{}.", index, hit.getId(), e);
                    }
                    return true;
                });
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 23K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/job/LogNotificationJob.java

                        (String) source.get("loggerName"), (String) source.get("message"), (String) source.get("throwable")));
                docIds.add(hit.getId());
            }
    
            final int maxDetailsLength = fessConfig.getLogNotificationMaxDetailsLengthAsInteger();
            final int maxDisplayEvents = fessConfig.getLogNotificationMaxDisplayEventsAsInteger();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:08 GMT 2026
    - 9.4K bytes
    - Click Count (0)
Back to Top