use of com.peterphi.std.guice.database.annotation.Transactional in project stdlib by petergeneric.
the class UserUIServiceImpl method getUsers.
@Override
@Transactional(readOnly = true)
@AuthConstraint(role = UserLogin.ROLE_ADMIN)
public String getUsers(UriInfo query) {
ConstrainedResultSet<UserEntity> resultset = accountDao.findByUriQuery(new WebQuery().orderAsc("id").decode(query));
TemplateCall call = templater.template("users");
call.set("resultset", resultset);
call.set("users", resultset.getList());
call.set("nonce", nonceStore.getValue(NONCE_USE));
return call.process();
}
Aggregations