⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lookupmanagerimpl.java

📁 基于Maven的质量保证自动化环境配置和演示程序
💻 JAVA
字号:
package com.cib.service.impl;import com.cib.dao.LookupDao;import com.cib.model.LabelValue;import com.cib.model.Role;import com.cib.service.LookupManager;import java.util.ArrayList;import java.util.List;/** * Implementation of LookupManager interface to talk to the persistence layer. * * @author <a href="mailto:matt@raibledesigns.com">Matt Raible</a> */public class LookupManagerImpl extends UniversalManagerImpl implements LookupManager {    private LookupDao dao;    /**     * Method that allows setting the DAO to talk to the data store with.     * @param dao the dao implementation     */    public void setLookupDao(LookupDao dao) {        super.dao = dao;        this.dao = dao;    }    /**     * {@inheritDoc}     */    public List<LabelValue> getAllRoles() {        List<Role> roles = dao.getRoles();        List<LabelValue> list = new ArrayList<LabelValue>();        for (Role role1 : roles) {            list.add(new LabelValue(role1.getName(), role1.getName()));        }        return list;    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -