Search in sources :

Example 16 with AuditCommand

use of org.asqatasun.service.command.AuditCommand in project Asqatasun by Asqatasun.

the class AuditServiceImpl method auditPage.

@Override
public Audit auditPage(String pageUrl, Set<Parameter> paramSet) {
    Logger.getLogger(this.getClass()).debug("auditpage");
    AuditCommand auditCommand = auditCommandFactory.create(pageUrl, paramSet, false);
    auditServiceThreadQueue.addPageAudit(auditCommand);
    return auditCommand.getAudit();
}
Also used : AuditCommand(org.asqatasun.service.command.AuditCommand)

Example 17 with AuditCommand

use of org.asqatasun.service.command.AuditCommand in project Asqatasun by Asqatasun.

the class AuditServiceImpl method process.

@Override
public Audit process(Audit audit) {
    AuditCommand auditCommand = auditCommandFactory.create(null, null, true);
    auditCommand.setAudit(audit);
    auditCommand.process();
    return audit;
}
Also used : AuditCommand(org.asqatasun.service.command.AuditCommand)

Example 18 with AuditCommand

use of org.asqatasun.service.command.AuditCommand in project Asqatasun by Asqatasun.

the class AuditServiceImpl method analyse.

@Override
public Audit analyse(Audit audit) {
    AuditCommand auditCommand = auditCommandFactory.create(null, null, true);
    auditCommand.setAudit(audit);
    auditCommand.analyse();
    return audit;
}
Also used : AuditCommand(org.asqatasun.service.command.AuditCommand)

Example 19 with AuditCommand

use of org.asqatasun.service.command.AuditCommand in project Asqatasun by Asqatasun.

the class AuditServiceImpl method auditPageUpload.

@Override
public Audit auditPageUpload(Map<String, String> fileMap, Set<Parameter> paramSet) {
    Logger.getLogger(this.getClass()).debug("auditpageupload");
    AuditCommand auditCommand = auditCommandFactory.create(fileMap, paramSet);
    auditServiceThreadQueue.addPageUploadAudit(auditCommand);
    return auditCommand.getAudit();
}
Also used : AuditCommand(org.asqatasun.service.command.AuditCommand)

Example 20 with AuditCommand

use of org.asqatasun.service.command.AuditCommand in project Asqatasun by Asqatasun.

the class AuditServiceImpl method auditSite.

@Override
public Audit auditSite(String siteUrl, Set<Parameter> paramSet) {
    Logger.getLogger(this.getClass()).debug("auditSite");
    AuditCommand auditCommand = auditCommandFactory.create(siteUrl, paramSet, true);
    auditServiceThreadQueue.addSiteAudit(auditCommand);
    return auditCommand.getAudit();
}
Also used : AuditCommand(org.asqatasun.service.command.AuditCommand)

Aggregations

AuditCommand (org.asqatasun.service.command.AuditCommand)31 Audit (org.asqatasun.entity.audit.Audit)7 AuditCommandFactory (org.asqatasun.service.command.factory.AuditCommandFactory)5 Parameter (org.asqatasun.entity.parameterization.Parameter)4 ArrayList (java.util.ArrayList)1