CrawlingSessionForm.java

This commit is contained in:
Shunji Makino 2015-04-10 20:24:55 +09:00
parent b939b2485e
commit 0cf3c9ccd4
2 changed files with 48 additions and 75 deletions

View file

@ -1,69 +0,0 @@
/*
* Copyright 2009-2015 the CodeLibs Project and the Others.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
* either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
package org.codelibs.fess.crud.form.admin;
import java.util.HashMap;
import java.util.Map;
import org.seasar.struts.annotation.DateType;
import org.seasar.struts.annotation.IntegerType;
import org.seasar.struts.annotation.LongType;
import org.seasar.struts.annotation.Maxbytelength;
import org.seasar.struts.annotation.Required;
public abstract class BsCrawlingSessionForm {
@IntegerType
public String pageNumber;
public Map<String, String> searchParams = new HashMap<String, String>();
@IntegerType
public int crudMode;
public String getCurrentPageNumber() {
return pageNumber;
}
@Required(target = "confirmfromupdate,update,delete")
@LongType
public String id;
@Required(target = "confirmfromupdate,update,delete")
@Maxbytelength(maxbytelength = 20)
public String sessionId;
@Maxbytelength(maxbytelength = 20)
public String name;
@DateType
public String expiredTime;
@Required(target = "confirmfromupdate,update,delete")
@DateType
public String createdTime;
public void initialize() {
id = null;
sessionId = null;
name = null;
expiredTime = null;
createdTime = null;
}
}

View file

@ -17,15 +17,57 @@
package org.codelibs.fess.web.admin;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import org.codelibs.fess.crud.form.admin.BsCrawlingSessionForm;
public class CrawlingSessionForm extends BsCrawlingSessionForm implements Serializable {
import org.seasar.struts.annotation.DateType;
import org.seasar.struts.annotation.IntegerType;
import org.seasar.struts.annotation.LongType;
import org.seasar.struts.annotation.Maxbytelength;
import org.seasar.struts.annotation.Required;
public class CrawlingSessionForm implements Serializable {
private static final long serialVersionUID = 1L;
@IntegerType
public String pageNumber;
@Override
public void initialize() {
super.initialize();
public Map<String, String> searchParams = new HashMap<String, String>();
@IntegerType
public int crudMode;
public String getCurrentPageNumber() {
return pageNumber;
}
@Required(target = "confirmfromupdate,update,delete")
@LongType
public String id;
@Required(target = "confirmfromupdate,update,delete")
@Maxbytelength(maxbytelength = 20)
public String sessionId;
@Maxbytelength(maxbytelength = 20)
public String name;
@DateType
public String expiredTime;
@Required(target = "confirmfromupdate,update,delete")
@DateType
public String createdTime;
public void initialize() {
id = null;
sessionId = null;
name = null;
expiredTime = null;
createdTime = null;
}
}