Java 类org.apache.commons.collections.FastArrayList 实例源码

项目:opennmszh    文件:AclNodeServiceImpl.java   
/**
 * <p>init</p>
 */
@SuppressWarnings("unchecked")
public void init() {
    List<AuthorityDTO> authorities = new FastArrayList();
    for (AuthorityDTO authorityDTO : authorityService.getAuthorities()) {
        authorityDTO.setItems(authorityService
                .getIdItemsAuthority(authorityDTO.getId()));
        if (authorityDTO.hasItems()) {
            authorities.add(authorityDTO);
        }
    }
    if (authorities.size() > 0) {
        authItemsHelper = new AuthoritiesNodeHelper(authorities);
    }
    ready = true;
}
项目:opennmszh    文件:AclCategoryNodeServiceImpl.java   
/**
 * <p>init</p>
 */
@SuppressWarnings("unchecked")
public void init() {
    List<AuthorityDTO> authorities = new FastArrayList();
    for (AuthorityDTO authorityDTO : authorityService.getAuthorities()) {
        authorityDTO.setItems(authorityService
                .getIdItemsAuthority(authorityDTO.getId()));
        if (authorityDTO.hasItems()) {
            authorities.add(authorityDTO);
        }
    }
    if (authorities.size() > 0) {
        authItemsHelper = new AuthoritiesNodeHelper(authorities);
    }
    ready = true;
}
项目:OpenNMS    文件:AclNodeServiceImpl.java   
/**
 * <p>init</p>
 */
@SuppressWarnings("unchecked")
public void init() {
    List<AuthorityDTO> authorities = new FastArrayList();
    for (AuthorityDTO authorityDTO : authorityService.getAuthorities()) {
        authorityDTO.setItems(authorityService
                .getIdItemsAuthority(authorityDTO.getId()));
        if (authorityDTO.hasItems()) {
            authorities.add(authorityDTO);
        }
    }
    if (authorities.size() > 0) {
        authItemsHelper = new AuthoritiesNodeHelper(authorities);
    }
    ready = true;
}
项目:OpenNMS    文件:AclCategoryNodeServiceImpl.java   
/**
 * <p>init</p>
 */
@SuppressWarnings("unchecked")
public void init() {
    List<AuthorityDTO> authorities = new FastArrayList();
    for (AuthorityDTO authorityDTO : authorityService.getAuthorities()) {
        authorityDTO.setItems(authorityService
                .getIdItemsAuthority(authorityDTO.getId()));
        if (authorityDTO.hasItems()) {
            authorities.add(authorityDTO);
        }
    }
    if (authorities.size() > 0) {
        authItemsHelper = new AuthoritiesNodeHelper(authorities);
    }
    ready = true;
}