bug fixes
This commit is contained in:
parent
2d5c9df855
commit
3a70b4d700
|
@ -1,8 +1,10 @@
|
||||||
package eu.eudat.model.builder.descriptiontemplatedefinition.fielddata;
|
package eu.eudat.model.builder.descriptiontemplatedefinition.fielddata;
|
||||||
|
|
||||||
import eu.eudat.commons.types.descriptiontemplate.fielddata.DataRepositoryDataEntity;
|
import eu.eudat.commons.types.descriptiontemplate.fielddata.DataRepositoryDataEntity;
|
||||||
|
import eu.eudat.commons.types.descriptiontemplate.fielddata.JournalRepositoryDataEntity;
|
||||||
import eu.eudat.convention.ConventionService;
|
import eu.eudat.convention.ConventionService;
|
||||||
import eu.eudat.model.descriptiontemplatedefinition.fielddata.DataRepositoryData;
|
import eu.eudat.model.descriptiontemplatedefinition.fielddata.DataRepositoryData;
|
||||||
|
import eu.eudat.model.descriptiontemplatedefinition.fielddata.JournalRepositoryData;
|
||||||
import gr.cite.tools.fieldset.FieldSet;
|
import gr.cite.tools.fieldset.FieldSet;
|
||||||
import gr.cite.tools.logging.LoggerService;
|
import gr.cite.tools.logging.LoggerService;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
@ -13,19 +15,19 @@ import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
@Component
|
@Component
|
||||||
@Scope(value = ConfigurableBeanFactory.SCOPE_PROTOTYPE)
|
@Scope(value = ConfigurableBeanFactory.SCOPE_PROTOTYPE)
|
||||||
public class JournalRepositoryDataBuilder extends BaseFieldDataBuilder<DataRepositoryData, DataRepositoryDataEntity> {
|
public class JournalRepositoryDataBuilder extends BaseFieldDataBuilder<JournalRepositoryData, JournalRepositoryDataEntity> {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
public JournalRepositoryDataBuilder(ConventionService conventionService) {
|
public JournalRepositoryDataBuilder(ConventionService conventionService) {
|
||||||
super(conventionService, new LoggerService(LoggerFactory.getLogger(JournalRepositoryDataBuilder.class)));
|
super(conventionService, new LoggerService(LoggerFactory.getLogger(JournalRepositoryDataBuilder.class)));
|
||||||
}
|
}
|
||||||
|
|
||||||
protected DataRepositoryData getInstance() {
|
protected JournalRepositoryData getInstance() {
|
||||||
return new DataRepositoryData();
|
return new JournalRepositoryData();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void buildChild(FieldSet fields, DataRepositoryDataEntity d, DataRepositoryData m) {
|
protected void buildChild(FieldSet fields, JournalRepositoryDataEntity d, JournalRepositoryData m) {
|
||||||
if (fields.hasField(this.asIndexer(DataRepositoryData._multiAutoComplete))) m.setMultiAutoComplete(d.getMultiAutoComplete());
|
if (fields.hasField(this.asIndexer(JournalRepositoryData._multiAutoComplete))) m.setMultiAutoComplete(d.getMultiAutoComplete());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -111,7 +111,7 @@ public class FieldDataHelperServiceProvider {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case WORD_LIST: {
|
case WORD_LIST: {
|
||||||
item = this.applicationContext.getBean(ValidationFieldDataHelperService.class);
|
item = this.applicationContext.getBean(WordListFieldDataHelperService.class);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case AUTO_COMPLETE: {
|
case AUTO_COMPLETE: {
|
||||||
|
|
Loading…
Reference in New Issue