Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 7 of 7 for copyMapToBean (0.22 seconds)

  1. src/main/java/org/codelibs/core/beans/util/BeanUtil.java

         * @param src The source {@literal Map}. Must not be {@literal null}.
         * @param dest The destination Bean. Must not be {@literal null}.
         */
        public static void copyMapToBean(final Map<String, ? extends Object> src, final Object dest) {
            copyMapToBean(src, dest, DEFAULT_OPTIONS);
        }
    
        /**
         * Copies from a {@literal Map} to a Bean.
         *
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 23.5K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/fess/app/web/admin/role/AdminRoleAction.java

         * @return optional entity containing the role data, or empty if creation fails
         */
        public static OptionalEntity<Role> getRole(final CreateForm form) {
            return getEntity(form).map(entity -> {
                copyMapToBean(form.attributes, entity, op -> op.exclude(Constants.COMMON_CONVERSION_RULE));
                copyBeanToBean(form, entity, op -> op.exclude(Constants.COMMON_CONVERSION_RULE));
                return entity;
            });
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Nov 20 13:56:35 GMT 2025
    - 12.8K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/app/web/base/FessBaseAction.java

         * This is a utility method that wraps BeanUtil.copyMapToBean with custom options.
         *
         * @param src the source map containing property values
         * @param dest the destination bean object
         * @param option a consumer function to configure copy options
         */
        protected static void copyMapToBean(final Map<String, ? extends Object> src, final Object dest, final Consumer<CopyOptions> option) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 15K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/app/web/admin/user/AdminUserAction.java

         * @return optional user entity populated from the form
         */
        public static OptionalEntity<User> getUser(final CreateForm form) {
            return getEntity(form).map(entity -> {
                copyMapToBean(form.attributes, entity, op -> op.exclude(Constants.COMMON_CONVERSION_RULE));
                copyBeanToBean(form, entity, op -> op.exclude(ArrayUtils.addAll(Constants.COMMON_CONVERSION_RULE, "password")));
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Jan 02 06:18:24 GMT 2026
    - 21K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/app/web/admin/group/AdminGroupAction.java

         * @param form the create form
         * @return optional group entity
         */
        public static OptionalEntity<Group> getGroup(final CreateForm form) {
            return getEntity(form).map(entity -> {
                copyMapToBean(form.attributes, entity, op -> op.exclude(Constants.COMMON_CONVERSION_RULE));
                copyBeanToBean(form, entity, op -> op.exclude(Constants.COMMON_CONVERSION_RULE));
                return entity;
            });
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Nov 20 13:56:35 GMT 2025
    - 16K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/core/beans/util/BeanUtilTest.java

            map.put("a", "A");
            map.put("b", true);
            map.put("c", 3);
            map.put("d", 1.4);
            final HogeDto hoge = new HogeDto();
            BeanUtil.copyMapToBean(map, hoge);
            assertThat(hoge.getA(), is("A"));
            assertThat(hoge.isB(), is(true));
            assertThat(hoge.getC(), is(3));
        }
    
        /**
         * @throws Exception
         */
        @Test
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Fri Jun 20 13:40:57 GMT 2025
    - 34.5K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/app/web/admin/general/AdminGeneralAction.java

                    stream(toAddresses).of(stream -> stream.forEach(address -> {
                        postcard.addTo(address);
                    }));
                    BeanUtil.copyMapToBean(dataMap, postcard);
                });
                saveInfo(messages -> messages.addSuccessSendTestmail(GLOBAL));
                updateProperty(Constants.NOTIFICATION_TO_PROPERTY, form.notificationTo);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 05:54:31 GMT 2026
    - 27.2K bytes
    - Click Count (0)
Back to Top