Search in sources :

Example 1 with AdminBean

use of org.apache.wiki.ui.admin.AdminBean in project jspwiki by apache.

the class AdminBeanIteratorTag method resetIterator.

/**
 *  {@inheritDoc}
 */
@Override
public void resetIterator() {
    AdminBeanManager mgr = m_wikiContext.getEngine().getAdminBeanManager();
    Collection<AdminBean> beans = mgr.getAllBeans();
    ArrayList<AdminBean> typedBeans = new ArrayList<AdminBean>();
    for (Iterator<AdminBean> i = beans.iterator(); i.hasNext(); ) {
        AdminBean ab = i.next();
        if (ab.getType() == m_type) {
            typedBeans.add(ab);
        }
    }
    setList(typedBeans);
}
Also used : AdminBean(org.apache.wiki.ui.admin.AdminBean) ArrayList(java.util.ArrayList) AdminBeanManager(org.apache.wiki.api.engine.AdminBeanManager)

Aggregations

ArrayList (java.util.ArrayList)1 AdminBeanManager (org.apache.wiki.api.engine.AdminBeanManager)1 AdminBean (org.apache.wiki.ui.admin.AdminBean)1