Class DashboardFactory
- java.lang.Object
-
- fr.paris.lutece.portal.business.dashboard.DashboardFactory
-
public final class DashboardFactory extends java.lang.ObjectFactory forIDashboardComponent
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<IDashboardComponent>getAllDashboardComponents()Finds all registered dashboardsstatic IDashboardComponentgetDashboardComponent(java.lang.String strName)Gets theIDashboardComponentfor the given namestatic booleanregisterDashboardComponent(IDashboardComponent dashboardComponent)Registers the new component.
-
-
-
Method Detail
-
registerDashboardComponent
public static boolean registerDashboardComponent(IDashboardComponent dashboardComponent)
Registers the new component. Name must be unique- Parameters:
dashboardComponent- the component to register- Returns:
trueif registered,falseotherwise.
-
getDashboardComponent
public static IDashboardComponent getDashboardComponent(java.lang.String strName)
Gets theIDashboardComponentfor the given name- Parameters:
strName- the name- Returns:
- The component found,
nullotherwise.
-
getAllDashboardComponents
public static java.util.List<IDashboardComponent> getAllDashboardComponents()
Finds all registered dashboards- Returns:
- the list
-
-