Search in sources :

Example 1 with QcadooUser

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;
}
Also used : Entity(com.qcadoo.model.api.Entity) QcadooUser(com.qcadoo.security.internal.api.QcadooUser)

Aggregations

Entity (com.qcadoo.model.api.Entity)1 QcadooUser (com.qcadoo.security.internal.api.QcadooUser)1