FailureUrlForm.java
This commit is contained in:
parent
46a6485db1
commit
49e5ef36dc
2 changed files with 54 additions and 83 deletions
|
@ -1,78 +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.codelibs.fess.Constants;
|
||||
import org.seasar.struts.annotation.DateType;
|
||||
import org.seasar.struts.annotation.IntegerType;
|
||||
import org.seasar.struts.annotation.LongType;
|
||||
import org.seasar.struts.annotation.Required;
|
||||
|
||||
public abstract class BsFailureUrlForm {
|
||||
@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 = "confirmfromcreate,create,confirmfromupdate,update,delete")
|
||||
public String url;
|
||||
|
||||
@Required(target = "confirmfromcreate,create,confirmfromupdate,update,delete")
|
||||
public String threadName;
|
||||
|
||||
public String errorName;
|
||||
|
||||
public String errorLog;
|
||||
|
||||
@Required(target = "confirmfromcreate,create,confirmfromupdate,update,delete")
|
||||
@IntegerType
|
||||
public String errorCount;
|
||||
|
||||
@Required(target = "confirmfromcreate,create,confirmfromupdate,update,delete")
|
||||
@DateType(datePattern = Constants.DEFAULT_DATETIME_FORMAT)
|
||||
public String lastAccessTime;
|
||||
|
||||
public String configId;
|
||||
|
||||
public void initialize() {
|
||||
|
||||
id = null;
|
||||
url = null;
|
||||
threadName = null;
|
||||
errorName = null;
|
||||
errorLog = null;
|
||||
errorCount = null;
|
||||
lastAccessTime = null;
|
||||
configId = null;
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -17,10 +17,16 @@
|
|||
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.BsFailureUrlForm;
|
||||
import org.codelibs.fess.Constants;
|
||||
import org.seasar.struts.annotation.DateType;
|
||||
import org.seasar.struts.annotation.IntegerType;
|
||||
import org.seasar.struts.annotation.LongType;
|
||||
import org.seasar.struts.annotation.Required;
|
||||
|
||||
public class FailureUrlForm extends BsFailureUrlForm implements Serializable {
|
||||
public class FailureUrlForm implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
@ -28,8 +34,51 @@ public class FailureUrlForm extends BsFailureUrlForm implements Serializable {
|
|||
|
||||
public String fileConfigName;
|
||||
|
||||
@Override
|
||||
public void initialize() {
|
||||
super.initialize();
|
||||
@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 = "confirmfromcreate,create,confirmfromupdate,update,delete")
|
||||
public String url;
|
||||
|
||||
@Required(target = "confirmfromcreate,create,confirmfromupdate,update,delete")
|
||||
public String threadName;
|
||||
|
||||
public String errorName;
|
||||
|
||||
public String errorLog;
|
||||
|
||||
@Required(target = "confirmfromcreate,create,confirmfromupdate,update,delete")
|
||||
@IntegerType
|
||||
public String errorCount;
|
||||
|
||||
@Required(target = "confirmfromcreate,create,confirmfromupdate,update,delete")
|
||||
@DateType(datePattern = Constants.DEFAULT_DATETIME_FORMAT)
|
||||
public String lastAccessTime;
|
||||
|
||||
public String configId;
|
||||
|
||||
public void initialize() {
|
||||
id = null;
|
||||
url = null;
|
||||
threadName = null;
|
||||
errorName = null;
|
||||
errorLog = null;
|
||||
errorCount = null;
|
||||
lastAccessTime = null;
|
||||
configId = null;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue