![JAR search and dependency download from the Maven repository](/logo.png)
org.butor.dbauth.model.DefaultAuditServices Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of butor-auth-model Show documentation
Show all versions of butor-auth-model Show documentation
Butor Framework is a framework that enables fast and easy creation of HTTP services. (asynchronous and synchronous). It consists of several modules for different layers, such as data access, services, JSON serialization and test utilities.
It sits on top of popular and proven libraries such as Google Guava and Spring.
The project is released under APL 2.0
This project is an authentication module (Model).
package org.butor.dbauth.model;
import java.util.List;
import org.butor.auth.common.audit.Audit;
import org.butor.auth.common.audit.AuditCriteria;
import org.butor.auth.common.audit.AuditServices;
import org.butor.auth.dao.AuditDao;
import org.butor.json.CommonRequestArgs;
import org.butor.json.service.Context;
import org.butor.json.service.ResponseHandler;
import org.butor.json.service.ResponseHandlerHelper;
import org.butor.utils.CriteriaSanitizer;
public class DefaultAuditServices implements AuditServices {
private AuditDao auditDao;
private final CriteriaSanitizer auditCriteriaSanitizer = new CriteriaSanitizer();
@Override
public void listAudit(Context ctx, AuditCriteria criteria) {
CommonRequestArgs cra = ctx.getRequest();
auditCriteriaSanitizer.clean(criteria);
ResponseHandler rh = ctx.getResponseHandler();
List auditList = auditDao.listAudit(criteria,cra);
ResponseHandlerHelper.addList(auditList, rh);
}
public void setAuditDao(AuditDao auditDao) {
this.auditDao = auditDao;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy