1 /*
2 * Copyright 2012-2025 CodeLibs Project and the Others.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13 * either express or implied. See the License for the specific language
14 * governing permissions and limitations under the License.
15 */
16 package org.codelibs.fess.app.web.admin.searchlog;
17
18 import org.lastaflute.web.validation.Required;
19 import org.lastaflute.web.validation.theme.conversion.ValidateTypeFailure;
20
21 import jakarta.validation.constraints.Size;
22
23 /**
24 * The edit form for Search Log.
25 * This form handles the editing of search log entries in the administration interface.
26 */
27 public class EditForm {
28
29 /** CRUD operation mode indicator */
30 @ValidateTypeFailure
31 public int crudMode;
32
33 /** Type of the search log entry */
34 @Required
35 @Size(max = 10)
36 public String logType;
37
38 /** Unique identifier for the search log entry */
39 @Required
40 @Size(max = 1000)
41 public String id;
42
43 /**
44 * Default constructor for EditForm.
45 */
46 public EditForm() {
47 // Default constructor
48 }
49
50 /**
51 * Initializes the form by resetting all fields to their default values.
52 */
53 public void initialize() {
54 id = null;
55 logType = null;
56 }
57 }