|
@@ -190,7 +190,7 @@ public class DataSetController extends AbstractSchemaConnController
|
|
|
return responseEntity;
|
|
|
|
|
|
trimAnalysisProjectAwareEntityForSave(dataSet);
|
|
|
- if(dataSet.getName().length()>40){
|
|
|
+ if(dataSet.getName().length()>20){
|
|
|
return buildOperationMessageFailResponseEntity(null,HttpStatus.BAD_REQUEST,"nameIsTooLong");
|
|
|
}
|
|
|
if(this.dataSetService.isExit(dataSet)){
|
|
@@ -231,7 +231,7 @@ public class DataSetController extends AbstractSchemaConnController
|
|
|
return responseEntity;
|
|
|
|
|
|
trimAnalysisProjectAwareEntityForSave(dataSet);
|
|
|
- if(dataSet.getName().length()>40){
|
|
|
+ if(dataSet.getName().length()>20){
|
|
|
return buildOperationMessageFailResponseEntity(null,HttpStatus.BAD_REQUEST,"nameIsTooLong");
|
|
|
}
|
|
|
if(this.dataSetService.isExit(dataSet)){
|
|
@@ -274,7 +274,7 @@ public class DataSetController extends AbstractSchemaConnController
|
|
|
|
|
|
trimAnalysisProjectAwareEntityForSave(dataSet);
|
|
|
trimDirectoryFileDataSetEntityForSave(dataSet);
|
|
|
- if(dataSet.getName().length()>40){
|
|
|
+ if(dataSet.getName().length()>20){
|
|
|
return buildOperationMessageFailResponseEntity(null,HttpStatus.BAD_REQUEST,"nameIsTooLong");
|
|
|
}
|
|
|
if(this.dataSetService.isExit(dataSet)){
|
|
@@ -318,7 +318,7 @@ public class DataSetController extends AbstractSchemaConnController
|
|
|
|
|
|
trimAnalysisProjectAwareEntityForSave(dataSet);
|
|
|
trimDirectoryFileDataSetEntityForSave(dataSet);
|
|
|
- if(dataSet.getName().length()>40){
|
|
|
+ if(dataSet.getName().length()>20){
|
|
|
return buildOperationMessageFailResponseEntity(null,HttpStatus.BAD_REQUEST,"nameIsTooLong");
|
|
|
}
|
|
|
if(this.dataSetService.isExit(dataSet)){
|
|
@@ -361,7 +361,7 @@ public class DataSetController extends AbstractSchemaConnController
|
|
|
return responseEntity;
|
|
|
|
|
|
trimAnalysisProjectAwareEntityForSave(dataSet);
|
|
|
- if(dataSet.getName().length()>40){
|
|
|
+ if(dataSet.getName().length()>20){
|
|
|
return buildOperationMessageFailResponseEntity(null,HttpStatus.BAD_REQUEST,"nameIsTooLong");
|
|
|
}
|
|
|
if(this.dataSetService.isExit(dataSet)){
|
|
@@ -405,7 +405,7 @@ public class DataSetController extends AbstractSchemaConnController
|
|
|
|
|
|
trimAnalysisProjectAwareEntityForSave(dataSet);
|
|
|
trimDirectoryFileDataSetEntityForSave(dataSet);
|
|
|
- if(dataSet.getName().length()>40){
|
|
|
+ if(dataSet.getName().length()>20){
|
|
|
return buildOperationMessageFailResponseEntity(null,HttpStatus.BAD_REQUEST,"nameIsTooLong");
|
|
|
}
|
|
|
if(this.dataSetService.isExit(dataSet)){
|
|
@@ -448,7 +448,7 @@ public class DataSetController extends AbstractSchemaConnController
|
|
|
return responseEntity;
|
|
|
|
|
|
trimAnalysisProjectAwareEntityForSave(dataSet);
|
|
|
- if(dataSet.getName().length()>40){
|
|
|
+ if(dataSet.getName().length()>20){
|
|
|
return buildOperationMessageFailResponseEntity(null,HttpStatus.BAD_REQUEST,"nameIsTooLong");
|
|
|
}
|
|
|
if(this.dataSetService.isExit(dataSet)){
|
|
@@ -571,7 +571,7 @@ public class DataSetController extends AbstractSchemaConnController
|
|
|
return responseEntity;
|
|
|
|
|
|
trimAnalysisProjectAwareEntityForSave(dataSet);
|
|
|
- if(dataSet.getName().length()>40){
|
|
|
+ if(dataSet.getName().length()>20){
|
|
|
return buildOperationMessageFailResponseEntity(null,HttpStatus.BAD_REQUEST,"nameIsTooLong");
|
|
|
}
|
|
|
if(!dataSetEntityService.getDataSet(dataSet.getId()).getName().equals(dataSet.getName())){
|
|
@@ -597,7 +597,7 @@ public class DataSetController extends AbstractSchemaConnController
|
|
|
return responseEntity;
|
|
|
|
|
|
trimAnalysisProjectAwareEntityForSave(dataSet);
|
|
|
- if(dataSet.getName().length()>40){
|
|
|
+ if(dataSet.getName().length()>20){
|
|
|
return buildOperationMessageFailResponseEntity(null,HttpStatus.BAD_REQUEST,"nameIsTooLong");
|
|
|
}
|
|
|
if(!dataSetEntityService.getDataSet(dataSet.getId()).getName().equals(dataSet.getName())){
|
|
@@ -625,7 +625,7 @@ public class DataSetController extends AbstractSchemaConnController
|
|
|
|
|
|
trimAnalysisProjectAwareEntityForSave(dataSet);
|
|
|
trimDirectoryFileDataSetEntityForSave(dataSet);
|
|
|
- if(dataSet.getName().length()>40){
|
|
|
+ if(dataSet.getName().length()>20){
|
|
|
return buildOperationMessageFailResponseEntity(null,HttpStatus.BAD_REQUEST,"nameIsTooLong");
|
|
|
}
|
|
|
if(!dataSetEntityService.getDataSet(dataSet.getId()).getName().equals(dataSet.getName())){
|
|
@@ -654,7 +654,7 @@ public class DataSetController extends AbstractSchemaConnController
|
|
|
|
|
|
trimAnalysisProjectAwareEntityForSave(dataSet);
|
|
|
trimDirectoryFileDataSetEntityForSave(dataSet);
|
|
|
- if(dataSet.getName().length()>40){
|
|
|
+ if(dataSet.getName().length()>20){
|
|
|
return buildOperationMessageFailResponseEntity(null,HttpStatus.BAD_REQUEST,"nameIsTooLong");
|
|
|
}
|
|
|
if(!dataSetEntityService.getDataSet(dataSet.getId()).getName().equals(dataSet.getName())){
|
|
@@ -681,7 +681,7 @@ public class DataSetController extends AbstractSchemaConnController
|
|
|
return responseEntity;
|
|
|
|
|
|
trimAnalysisProjectAwareEntityForSave(dataSet);
|
|
|
- if(dataSet.getName().length()>40){
|
|
|
+ if(dataSet.getName().length()>20){
|
|
|
return buildOperationMessageFailResponseEntity(null,HttpStatus.BAD_REQUEST,"nameIsTooLong");
|
|
|
}
|
|
|
if(!dataSetEntityService.getDataSet(dataSet.getId()).getName().equals(dataSet.getName())){
|
|
@@ -709,7 +709,7 @@ public class DataSetController extends AbstractSchemaConnController
|
|
|
|
|
|
trimAnalysisProjectAwareEntityForSave(dataSet);
|
|
|
trimDirectoryFileDataSetEntityForSave(dataSet);
|
|
|
- if(dataSet.getName().length()>40){
|
|
|
+ if(dataSet.getName().length()>20){
|
|
|
return buildOperationMessageFailResponseEntity(null,HttpStatus.BAD_REQUEST,"nameIsTooLong");
|
|
|
}
|
|
|
if(!dataSetEntityService.getDataSet(dataSet.getId()).getName().equals(dataSet.getName())){
|
|
@@ -736,7 +736,7 @@ public class DataSetController extends AbstractSchemaConnController
|
|
|
return responseEntity;
|
|
|
|
|
|
trimAnalysisProjectAwareEntityForSave(dataSet);
|
|
|
- if(dataSet.getName().length()>40){
|
|
|
+ if(dataSet.getName().length()>20){
|
|
|
return buildOperationMessageFailResponseEntity(null,HttpStatus.BAD_REQUEST,"nameIsTooLong");
|
|
|
}
|
|
|
if(!dataSetEntityService.getDataSet(dataSet.getId()).getName().equals(dataSet.getName())){
|