Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 112 for validate_ (0.08 seconds)

  1. src/test/java/org/codelibs/fess/validation/CronExpressionTest.java

            bean.setSpecialCron("invalid");
    
            // Validate default group
            Set<ConstraintViolation<GroupTestBean>> violations = validator.validate(bean, Default.class);
            assertEquals(1, violations.size());
            assertTrue(violations.iterator().next().getPropertyPath().toString().contains("defaultCron"));
    
            // Validate special group
            violations = validator.validate(bean, SpecialGroup.class);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 12.5K bytes
    - Click Count (0)
  2. .github/workflows/validate-codeowners.yml

          - name: GitHub CODEOWNERS Validator
            uses: mszostok/codeowners-validator@v0.7.4
            with:
              checks: "files,duppatterns,syntax"
              experimental_checks: "notowned,avoid-shadowing"
    
          # downgrading to 0.7.2 for owners check to avoid issues with token permissions check,
          # see https://github.com/mszostok/codeowners-validator/issues/224
          - name: GitHub CODEOWNERS Validator
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Nov 20 22:15:20 GMT 2025
    - 1.5K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/validation/UriType.java

    /**
     * Validation annotation for URI type constraints.
     * This annotation validates URI strings based on specified protocol types.
     */
    @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER })
    @Retention(RUNTIME)
    @Documented
    @Constraint(validatedBy = UriTypeValidator.class)
    public @interface UriType {
    
        /**
         * Specifies the protocol type to validate against.
         *
         * @return the protocol type
         */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/app/web/go/GoAction.java

         */
        protected boolean isFileSystemPath(final String url) {
            return ComponentUtil.getProtocolHelper().isFileSystemPath(url);
        }
    
        /**
         * Validates if the URL is safe for redirection.
         *
         * @param url the URL to validate
         * @return true if the URL is valid for redirection, false otherwise
         */
        protected boolean isValidRedirectUrl(final String url) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Dec 11 09:47:03 GMT 2025
    - 9K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/app/web/api/admin/FessApiAdminAction.java

     * This class extends FessApiAction to provide admin-specific functionality
     * including enhanced access control for administrative operations.
     *
     * <p>Admin API actions require special permissions and access tokens
     * that are validated against the admin role configuration.</p>
     */
    public abstract class FessApiAdminAction extends FessApiAction {
    
        /** Logger instance for this class. */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Aug 07 03:06:29 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/api/chat/ChatApiManager.java

                return 4000;
            }
        }
    
        /**
         * Parses and validates field filter parameters from the request.
         * Only configured label values are accepted to prevent query injection.
         *
         * @param request the HTTP request
         * @return a map of field names to their validated filter values
         */
        protected Map<String, String[]> parseFieldFilters(final HttpServletRequest request) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 06:06:55 GMT 2026
    - 25.8K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/app/web/admin/group/AdminGroupAction.java

        //                                                                        ============
    
        /**
         * Validates group attributes using LDAP manager.
         *
         * @param attributes the attributes to validate
         * @param throwError the error handler
         */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Nov 20 13:56:35 GMT 2025
    - 16K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/app/web/admin/maintenance/AdminMaintenanceAction.java

         * Reloads the document index by closing and reopening it.
         *
         * @param form the action form (validated but not used for configuration)
         * @return HTML response redirecting to the maintenance page
         */
        @Execute
        @Secured({ ROLE })
        public HtmlResponse reloadDocIndex(final ActionForm form) {
            validate(form, messages -> {}, this::asIndexHtml);
            verifyToken(this::asIndexHtml);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 23K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/validation/UriTypeValidator.java

    import jakarta.validation.ConstraintDefinitionException;
    import jakarta.validation.ConstraintValidator;
    import jakarta.validation.ConstraintValidatorContext;
    
    /**
     * Validator implementation for URI type constraints.
     * This validator checks URI strings against specified protocol types.
     */
    public class UriTypeValidator implements ConstraintValidator<UriType, String> {
    
        /**
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Nov 23 12:34:02 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/validation/CronExpressionValidator.java

            return determineValid(value);
        }
    
        /**
         * Determines if the given value is a valid cron expression.
         * @param value the value to validate
         * @return true if valid, false otherwise
         */
        protected boolean determineValid(final String value) {
            if (StringUtil.isNotBlank(value) && !LaCronUtil.isCronExpValid(value)) {
                return false;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 1.7K bytes
    - Click Count (0)
Back to Top