use of com.qcadoo.security.internal.api.QcadooUser in project qcadoo by qcadoo.
the class SecurityServiceImpl method getUsers.
@Override
public List<QcadooUser> getUsers() {
List<Entity> users = dataDefinitionService.get(QcadooSecurityConstants.PLUGIN_IDENTIFIER, QcadooSecurityConstants.MODEL_USER).find().addOrder(SearchOrders.asc(UserFields.USER_NAME)).list().getEntities();
List<QcadooUser> qcadooUsers = Lists.newLinkedList();
for (Entity user : users) {
qcadooUsers.add(new QcadooUser(user));
}
return qcadooUsers;
}
Aggregations