Search in sources :

Example 1 with AddOnListing

use of org.commonjava.indy.model.spi.AddOnListing in project indy by Commonjava.

the class StatsController method getActiveAddOns.

public AddOnListing getActiveAddOns() {
    final List<IndyAddOnID> ids = new ArrayList<IndyAddOnID>();
    if (addons != null) {
        logger.info("Getting list of installed add-ons...");
        for (final IndyAddOn addon : addons) {
            final IndyAddOnID id = addon.getId();
            logger.info("Adding {}", id);
            ids.add(id);
        }
    }
    return new AddOnListing(ids);
}
Also used : AddOnListing(org.commonjava.indy.model.spi.AddOnListing) IndyAddOn(org.commonjava.indy.spi.IndyAddOn) ArrayList(java.util.ArrayList) IndyAddOnID(org.commonjava.indy.model.spi.IndyAddOnID)

Aggregations

ArrayList (java.util.ArrayList)1 AddOnListing (org.commonjava.indy.model.spi.AddOnListing)1 IndyAddOnID (org.commonjava.indy.model.spi.IndyAddOnID)1 IndyAddOn (org.commonjava.indy.spi.IndyAddOn)1