package org.panifex.platform.module.dashboard.impl;

import java.util.ArrayList;
import java.util.Collection;

import org.apache.aries.blueprint.annotation.Bean;
import org.apache.aries.blueprint.annotation.Service;
import org.panifex.platform.module.api.sidebar.Sidebar;
import org.panifex.platform.module.api.sidebar.DefaultSidebarCommand;
import org.panifex.platform.module.api.sidebar.SidebarItem;

@Bean(id = DashboardSidebar.ID)
@Service(interfaces = Sidebar.class)
public class DashboardSidebar implements Sidebar {

    public final static String ID = "org.panifex.platform.module.dashboard.impl.DashboardSidebar";
    
    private Collection<SidebarItem> sidebarItems = new ArrayList<>();
    
    /**
     * Initializes Dashboard sidebar items;
     */
    public DashboardSidebar() {
        // create dashboard sidebar item
        DefaultSidebarCommand dashboardItem = new DefaultSidebarCommand(
            "Dashboard",
            DashboardContent.ID,
            0);
        
        // add item to list
        sidebarItems.add(dashboardItem);
    }
    
    @Override
    public Collection<SidebarItem> getSidebarItems() {
        return sidebarItems;
    }

}

@@ -981,24 +981,98 @@
 );%0A        %0A
+        dashboardItem.setIconSclass(%22glyphicon glyphicon-home%22);%0A        %0A
         // a

Add css style to Dashboard sidebar item