use of org.asqatasun.webapp.command.AuditSetUpCommand in project Asqatasun by Asqatasun.
the class AuditSetUpCommandFactory method getUploadAuditSetUpCommand.
/**
*
* @param contract
* @param levelFormFieldList
* @param optionalFormFieldMap
* @return
*/
public AuditSetUpCommand getUploadAuditSetUpCommand(Contract contract, List<SelectFormField> levelFormFieldList, Map<String, List<AuditSetUpFormField>> optionalFormFieldMap) {
AuditSetUpCommand uploadAuditSetUpCommand = new AuditSetUpCommand();
uploadAuditSetUpCommand.setScope(ScopeEnum.FILE);
uploadAuditSetUpCommand.setFileInputList(getGroupOfFileInput(contract));
setUpAuditSetUpCommand(uploadAuditSetUpCommand, contract, levelFormFieldList, optionalFormFieldMap, ScopeEnum.FILE);
return uploadAuditSetUpCommand;
}
use of org.asqatasun.webapp.command.AuditSetUpCommand in project Asqatasun by Asqatasun.
the class AuditSetUpCommandFactory method getPageAuditSetUpCommand.
/**
*
* @param contract
* @param levelFormFieldList
* @param optionalFormFieldMap
* @return
*/
public AuditSetUpCommand getPageAuditSetUpCommand(Contract contract, List<SelectFormField> levelFormFieldList, Map<String, List<AuditSetUpFormField>> optionalFormFieldMap) {
AuditSetUpCommand pageAuditSetUpCommand = new AuditSetUpCommand();
pageAuditSetUpCommand.setScope(ScopeEnum.PAGE);
pageAuditSetUpCommand.setUrlList(getGroupOfPagesUrl(contract, false));
setUpAuditSetUpCommand(pageAuditSetUpCommand, contract, levelFormFieldList, optionalFormFieldMap, ScopeEnum.PAGE);
return pageAuditSetUpCommand;
}
use of org.asqatasun.webapp.command.AuditSetUpCommand in project Asqatasun by Asqatasun.
the class PageAuditSetUpFormValidator method validate.
@Override
public void validate(Object target, Errors errors) {
AuditSetUpCommand pageAuditSetUpCommand = (AuditSetUpCommand) target;
validateUrl(pageAuditSetUpCommand, errors);
super.validate(target, errors);
}
use of org.asqatasun.webapp.command.AuditSetUpCommand in project Asqatasun by Asqatasun.
the class UploadAuditSetUpFormValidator method validate.
@Override
public void validate(Object target, Errors errors) {
AuditSetUpCommand uploadAuditSetUpCommand = (AuditSetUpCommand) target;
validateFiles(uploadAuditSetUpCommand, errors);
super.validate(target, errors);
}
Aggregations