org.rhq.enterprise.server.plugin.pc.perspective.metadata
Class PerspectivePluginMetadataManager

java.lang.Object
  extended by org.rhq.enterprise.server.plugin.pc.perspective.metadata.PerspectivePluginMetadataManager

public class PerspectivePluginMetadataManager
extends Object

This loads in all deployed perspective server plugins and maintains the complete set of metadata found in all plugin descriptors. Individual plugin metadata is irrelevant and not retrievable. The union of the perspective definitions is maintained and made available. Conflict resolution rules are applied as needed for clashing perspective definitions. Activators are not processed here, they use session-time information. This is performed at plugin-load-time.

Author:
Jay Shaughnessy, Ian Springer

Constructor Summary
PerspectivePluginMetadataManager()
           
 
Method Summary
 long getLastModifiedTime()
           
 List<MenuItem> getMenu()
          Returns the full menu, with no activators applied.
 List<PageLink> getPageLinks()
          Returns the full set of defined PageLink extensions with no activators applied.
 List<Tab> getResourceTabs()
          Returns the full Resource tab bar, with no activators applied.
 int getUrlKey(String url)
          Return a unique key for the url.
 String getUrlViaKey(int key)
          Return the url for the given key.
 boolean isStarted()
           
 void loadPlugin(PerspectivePluginDescriptorType descriptor)
          Transforms the pluginDescriptor into domain object form and stores those objects.
 void start()
           
 void stop()
           
 void unloadPlugin(PerspectivePluginDescriptorType descriptor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PerspectivePluginMetadataManager

public PerspectivePluginMetadataManager()
Method Detail

loadPlugin

public void loadPlugin(PerspectivePluginDescriptorType descriptor)
Transforms the pluginDescriptor into domain object form and stores those objects.

Parameters:
descriptor - the descriptor to transform

unloadPlugin

public void unloadPlugin(PerspectivePluginDescriptorType descriptor)

start

public void start()

stop

public void stop()

getUrlKey

public int getUrlKey(String url)
Return a unique key for the url.

Parameters:
url -
Returns:

getUrlViaKey

public String getUrlViaKey(int key)
Return the url for the given key.


getMenu

public List<MenuItem> getMenu()
Returns the full menu, with no activators applied. Callers should not modify the returned list or any of its descendant lists.

Returns:
the full menu, with no activators applied

getResourceTabs

public List<Tab> getResourceTabs()
Returns the full Resource tab bar, with no activators applied. Callers should not modify the returned list or any of its descendant lists.

Returns:
the full Resource tab bar, with no activators applied

getPageLinks

public List<PageLink> getPageLinks()
Returns the full set of defined PageLink extensions with no activators applied. Callers should not modify the returned list or any of its descendant lists.

Returns:
the full Resource tab bar, with no activators applied

isStarted

public boolean isStarted()

getLastModifiedTime

public long getLastModifiedTime()


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.