Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for copyBeanToNewBean (0.07 sec)

  1. src/main/java/org/codelibs/fess/app/web/base/FessBaseAction.java

         * This is a utility method that wraps BeanUtil.copyBeanToNewBean.
         *
         * @param <T> the type of the destination class
         * @param src the source bean object
         * @param destClass the class of the destination bean
         * @return a new instance of the destination class with copied properties
         */
        protected static <T> T copyBeanToNewBean(final Object src, final Class<T> destClass) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 15K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/beans/util/BeanUtil.java

         * @param destClass The type of the destination Bean. Must not be {@literal null}.
         * @return The newly copied Bean.
         */
        public static <T> T copyBeanToNewBean(final Object src, final Class<T> destClass) {
            return copyBeanToNewBean(src, destClass, DEFAULT_OPTIONS);
        }
    
        /**
         * Copies the source Bean to a new instance of the destination Bean and returns it.
         *
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 23.5K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/web/api/admin/badword/ApiAdminBadwordAction.java

        // PUT /api/admin/badword/settings
        @Execute
        public JsonResponse<ApiResult> settings(final SearchBody body) {
            validateApi(body, messages -> {});
            final BadWordPager pager = copyBeanToNewBean(body, BadWordPager.class);
            final List<BadWord> list = badWordService.getBadWordList(pager);
            return asJson(
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/web/api/admin/scheduler/ApiAdminSchedulerAction.java

        // PUT /api/admin/scheduler
        @Execute
        public JsonResponse<ApiResult> settings(final SearchBody body) {
            validateApi(body, messages -> {});
            final SchedulerPager pager = copyBeanToNewBean(body, SchedulerPager.class);
            final List<ScheduledJob> list = scheduledJobService.getScheduledJobList(pager);
            return asJson(
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 10K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/beans/util/BeanUtilTest.java

         * @throws Exception
         */
        @Test
        public void testCopy_beanToNewBean() throws Exception {
            final MyBean src = new MyBean();
            src.aaa = "aaa";
            final MyBean dest = BeanUtil.copyBeanToNewBean(src, MyBean.class);
            assertThat(dest.aaa, is("aaa"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testCopy_beanToNewMap() throws Exception {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 34.5K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/api/admin/dict/stemmeroverride/ApiAdminDictStemmeroverrideAction.java

        @Execute
        public JsonResponse<ApiResult> get$settings(final String dictId, final SearchBody body) {
            body.dictId = dictId;
            validateApi(body, messages -> {});
            final StemmerOverridePager pager = copyBeanToNewBean(body, StemmerOverridePager.class);
            return asJson(
                    new ApiResult.ApiConfigsResponse<EditBody>().settings(stemmerOverrideService.getStemmerOverrideList(body.dictId, pager)
                            .stream()
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/api/admin/elevateword/ApiAdminElevatewordAction.java

         */
        @Execute
        public JsonResponse<ApiResult> settings(final SearchBody body) {
            validateApi(body, messages -> {});
            final ElevateWordPager pager = copyBeanToNewBean(body, ElevateWordPager.class);
            final List<ElevateWord> list = elevateWordService.getElevateWordList(pager);
            return asJson(
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 12.8K bytes
    - Viewed (0)
Back to top