@ApplicationScoped @Named(value="panelsProvidersManager") public class PanelsProvidersManagerImpl extends Object implements PanelsProvidersManager, org.jboss.dashboard.annotation.Startable
Modifier and Type | Class and Description |
---|---|
class |
PanelsProvidersManagerImpl.PanelProviderComparator |
Constructor and Description |
---|
PanelsProvidersManagerImpl() |
Modifier and Type | Method and Description |
---|---|
String[] |
enumerateDisabledProvidersGroups()
Enumerates all existing groups of providers containing only disabled panel Instances
|
String[] |
enumerateProvidersGroups()
Returns all providers groups
|
String[] |
enumerateProvidersGroups(Workspace workspace)
Enumerates all existing groups of providers containing panel Instances allowed by given workspace
|
String[] |
getBasePanelsIds() |
String |
getDefaultProviderGroupThumbnail() |
String |
getDefaultProviderThumbnail() |
String[] |
getDeprecatedPanelsIds() |
PanelProvider[] |
getDisabledProviders() |
PanelProvider[] |
getDisabledProvidersInGroup(String group)
Returns all providers belonging to a given group, sorted by description, but
disabled by license.
|
String |
getGroupDisplayName(String groupId)
Returns group display name
|
String |
getGroupDisplayName(String groupId,
Locale locale)
Returns group display name
|
String |
getHelpModePage() |
String |
getPanelDriversDir() |
org.jboss.dashboard.annotation.Priority |
getPriority() |
PanelProvider |
getProvider(String id)
Returns a panel provider by ID
|
String |
getProviderGroupImage(String groupId) |
Map |
getProviderGroupImg() |
PanelProvider[] |
getProviders()
Returns all providers, sorted by description
|
PanelProvider[] |
getProviders(Workspace workspace)
Returns all panels providers installed in the system allowed for given workspace
|
PanelProvider[] |
getProvidersInGroup(String group)
Returns all providers belonging to a given group, sorted by description
|
PanelProvider[] |
getProvidersInGroup(String group,
Workspace workspace)
Returns all providers belonging to a given group, sorted by description,
and allowed by given workspace
|
protected PanelHelp |
loadHelpFile(File helpFile)
Loads a panelHelp from a helpFile.
|
protected PanelProvider |
loadPanelProvider(File f)
Loads a provider from its file definition
|
void |
setBasePanelsIds(String[] basePanelsIds) |
void |
setDefaultProviderGroupThumbnail(String defaultProviderGroupThumbnail) |
void |
setDefaultProviderThumbnail(String defaultProviderThumbnail) |
void |
setDeprecatedPanelsIds(String[] deprecatedPanelsIds) |
void |
setHelpModePage(String helpModePage) |
void |
setPanelDriversDir(String panelDriversDir) |
void |
setProviderGroupImg(Map providerGroupImg) |
void |
start() |
public org.jboss.dashboard.annotation.Priority getPriority()
getPriority
in interface org.jboss.dashboard.annotation.Startable
public void start() throws Exception
start
in interface org.jboss.dashboard.annotation.Startable
Exception
public String[] getDeprecatedPanelsIds()
public void setDeprecatedPanelsIds(String[] deprecatedPanelsIds)
public String[] getBasePanelsIds()
public void setBasePanelsIds(String[] basePanelsIds)
public String getPanelDriversDir()
public void setPanelDriversDir(String panelDriversDir)
public String getHelpModePage()
public void setHelpModePage(String helpModePage)
public String getDefaultProviderThumbnail()
public void setDefaultProviderThumbnail(String defaultProviderThumbnail)
public String getDefaultProviderGroupThumbnail()
public void setDefaultProviderGroupThumbnail(String defaultProviderGroupThumbnail)
public Map getProviderGroupImg()
public void setProviderGroupImg(Map providerGroupImg)
public PanelProvider[] getProviders()
getProviders
in interface PanelsProvidersManager
public PanelProvider[] getProviders(Workspace workspace)
getProviders
in interface PanelsProvidersManager
workspace
- Workspace that allows returned providers.public String[] enumerateProvidersGroups()
enumerateProvidersGroups
in interface PanelsProvidersManager
public String[] enumerateProvidersGroups(Workspace workspace)
enumerateProvidersGroups
in interface PanelsProvidersManager
workspace
- Workspace that allows returned providers.public String getGroupDisplayName(String groupId)
getGroupDisplayName
in interface PanelsProvidersManager
groupId
- Group id to usepublic String getGroupDisplayName(String groupId, Locale locale)
getGroupDisplayName
in interface PanelsProvidersManager
groupId
- Group id to uselocale
- Locale in which the description has to bepublic PanelProvider[] getProvidersInGroup(String group)
getProvidersInGroup
in interface PanelsProvidersManager
group
- or null if we want all panels NOT belonging to any grouppublic PanelProvider[] getProvidersInGroup(String group, Workspace workspace)
getProvidersInGroup
in interface PanelsProvidersManager
group
- or null if we want all panels NOT belonging to any groupworkspace
- Workspace that allows returned providers.public PanelProvider[] getDisabledProviders()
getDisabledProviders
in interface PanelsProvidersManager
public PanelProvider[] getDisabledProvidersInGroup(String group)
getDisabledProvidersInGroup
in interface PanelsProvidersManager
group
- or null if we want all panels NOT belonging to any grouppublic String[] enumerateDisabledProvidersGroups()
enumerateDisabledProvidersGroups
in interface PanelsProvidersManager
public PanelProvider getProvider(String id)
PanelsProvidersManager
getProvider
in interface PanelsProvidersManager
id
- Provider id to returnprotected PanelHelp loadHelpFile(File helpFile) throws IOException, SAXException
helpFile
- IOException
SAXException
protected PanelProvider loadPanelProvider(File f) throws Exception
Exception
public String getProviderGroupImage(String groupId)
getProviderGroupImage
in interface PanelsProvidersManager
Copyright © 2012-2014 JBoss by Red Hat. All Rights Reserved.