Search in sources :

Example 6 with AuditSetUpCommand

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;
}
Also used : AuditSetUpCommand(org.asqatasun.webapp.command.AuditSetUpCommand)

Example 7 with AuditSetUpCommand

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;
}
Also used : AuditSetUpCommand(org.asqatasun.webapp.command.AuditSetUpCommand)

Example 8 with AuditSetUpCommand

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);
}
Also used : AuditSetUpCommand(org.asqatasun.webapp.command.AuditSetUpCommand)

Example 9 with AuditSetUpCommand

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);
}
Also used : AuditSetUpCommand(org.asqatasun.webapp.command.AuditSetUpCommand)

Aggregations

AuditSetUpCommand (org.asqatasun.webapp.command.AuditSetUpCommand)9 Parameter (org.asqatasun.entity.parameterization.Parameter)1 Contract (org.asqatasun.webapp.entity.contract.Contract)1 Scenario (org.asqatasun.webapp.entity.scenario.Scenario)1 ForbiddenPageException (org.asqatasun.webapp.exception.ForbiddenPageException)1 SelectFormField (org.asqatasun.webapp.form.SelectFormField)1 AuditSetUpFormField (org.asqatasun.webapp.form.parameterization.AuditSetUpFormField)1