merging revision 4685
This commit is contained in:
parent
db2ba89ecb
commit
e106dff219
2 changed files with 1 additions and 16 deletions
|
@ -80,8 +80,6 @@ public class BasicValidation {
|
||||||
try{
|
try{
|
||||||
if( literal != null ){
|
if( literal != null ){
|
||||||
value = literal.getString();
|
value = literal.getString();
|
||||||
System.out.println("get data type uri " + literal.asNode().getLiteralDatatype().getURI());
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}catch(Throwable th){
|
}catch(Throwable th){
|
||||||
log.debug("could not convert literal to string" , th);
|
log.debug("could not convert literal to string" , th);
|
||||||
|
@ -167,7 +165,6 @@ public class BasicValidation {
|
||||||
|
|
||||||
//Date not past validation
|
//Date not past validation
|
||||||
if( "dateNotPast".equalsIgnoreCase(validationType)){
|
if( "dateNotPast".equalsIgnoreCase(validationType)){
|
||||||
System.out.println("date not past - Value " + value);
|
|
||||||
//if( ! past (value) )
|
//if( ! past (value) )
|
||||||
// return "date must not be in the past";
|
// return "date must not be in the past";
|
||||||
//Current date
|
//Current date
|
||||||
|
@ -181,7 +178,6 @@ public class BasicValidation {
|
||||||
yearParamStr = value.substring(0, yearDash);
|
yearParamStr = value.substring(0, yearDash);
|
||||||
monthParamStr = value.substring(yearDash + 1, monthDash);
|
monthParamStr = value.substring(yearDash + 1, monthDash);
|
||||||
dayParamStr = value.substring(monthDash + 1, value.length());
|
dayParamStr = value.substring(monthDash + 1, value.length());
|
||||||
System.out.println("Year param str " + yearParamStr + " - MonthPAram:" + monthParamStr + " - day:" + dayParamStr);
|
|
||||||
inputC.set(Integer.parseInt(yearParamStr), Integer.parseInt(monthParamStr) - 1, Integer.parseInt(dayParamStr));
|
inputC.set(Integer.parseInt(yearParamStr), Integer.parseInt(monthParamStr) - 1, Integer.parseInt(dayParamStr));
|
||||||
if(inputC.before(c)) {
|
if(inputC.before(c)) {
|
||||||
return this.DATE_NOT_PAST_MSG;
|
return this.DATE_NOT_PAST_MSG;
|
||||||
|
|
|
@ -73,18 +73,7 @@ are well formed.
|
||||||
* we have to make a copy. */
|
* we have to make a copy. */
|
||||||
Map <String,String[]> queryParameters = null;
|
Map <String,String[]> queryParameters = null;
|
||||||
queryParameters = vreq.getParameterMap();
|
queryParameters = vreq.getParameterMap();
|
||||||
Iterator it = queryParameters.entrySet().iterator();
|
|
||||||
while (it.hasNext()) {
|
|
||||||
Map.Entry pairs = (Map.Entry)it.next();
|
|
||||||
String[] value= (String[]) pairs.getValue();
|
|
||||||
System.out.println(pairs.getKey() + " = ");
|
|
||||||
if(value != null && value.length > 0 ) {
|
|
||||||
int i;
|
|
||||||
for(i = 0; i < value.length; i++) {
|
|
||||||
System.out.println(" " + value[i]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
List<String> errorMessages = new ArrayList<String>();
|
List<String> errorMessages = new ArrayList<String>();
|
||||||
|
|
||||||
EditConfiguration editConfig = EditConfiguration.getConfigFromSession(session,vreq,queryParameters);
|
EditConfiguration editConfig = EditConfiguration.getConfigFromSession(session,vreq,queryParameters);
|
||||||
|
|
Loading…
Add table
Reference in a new issue