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.maintenance;
17
18 import org.codelibs.fess.Constants;
19 import org.codelibs.fess.util.ComponentUtil;
20
21 import jakarta.validation.constraints.Size;
22
23 /**
24 * The form for maintenance actions.
25 */
26 public class ActionForm {
27 /**
28 * Default constructor.
29 */
30 public ActionForm() {
31 // nothing
32 }
33
34 /**
35 * The flag to replace aliases.
36 */
37 @Size(max = 10)
38 public String replaceAliases;
39
40 /**
41 * The flag to reset dictionaries.
42 */
43 @Size(max = 10)
44 public String resetDictionaries;
45
46 /**
47 * The number of shards for doc.
48 */
49 @Size(max = 10)
50 public String numberOfShardsForDoc = ComponentUtil.getFessConfig().getIndexNumberOfShards();
51
52 /**
53 * The auto expand replicas for doc.
54 */
55 @Size(max = 10)
56 public String autoExpandReplicasForDoc = ComponentUtil.getFessConfig().getIndexAutoExpandReplicas();
57
58 /**
59 * The flag to load bulk data during config index rebuild.
60 */
61 @Size(max = 10)
62 public String loadBulkData;
63
64 /**
65 * The flag to rebuild fess_config indices.
66 */
67 @Size(max = 10)
68 public String rebuildConfigIndex = Constants.ON;
69
70 /**
71 * The flag to rebuild fess_user indices.
72 */
73 @Size(max = 10)
74 public String rebuildUserIndex;
75
76 /**
77 * The flag to rebuild fess_log indices.
78 */
79 @Size(max = 10)
80 public String rebuildLogIndex;
81 }