org.rhq.enterprise.server.perspective
Class PerspectiveManagerBean

java.lang.Object
  extended by org.rhq.enterprise.server.perspective.PerspectiveManagerBean
All Implemented Interfaces:
PerspectiveManagerLocal, PerspectiveManagerRemote

public class PerspectiveManagerBean
extends java.lang.Object
implements PerspectiveManagerLocal, PerspectiveManagerRemote


Constructor Summary
PerspectiveManagerBean()
           
 
Method Summary
 java.util.List<MenuItem> getCoreMenu(Subject subject)
          Return the core menu for the specified subject.
 java.util.List<Tab> getResourceTabs(Subject subject, Resource resource)
          Returns the list of tabs that should be displayed for the specified user for the specified Resource.
 int getUrlKey(java.lang.String url)
          Return a unique key for the url.
 java.lang.String getUrlViaKey(int key)
          Return the url for the given key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PerspectiveManagerBean

public PerspectiveManagerBean()
Method Detail

getCoreMenu

public java.util.List<MenuItem> getCoreMenu(Subject subject)
                                     throws PerspectiveException
Description copied from interface: PerspectiveManagerLocal
Return the core menu for the specified subject. Depending on their inventory and roles the core menu for one subject1 could differ from that of subject2. Subsequent calls will return the same core menu for the same Subject. In other words, it does not change during a user session.

Specified by:
getCoreMenu in interface PerspectiveManagerLocal
Returns:
Throws:
PerspectiveException

getResourceTabs

@NotNull
public java.util.List<Tab> getResourceTabs(Subject subject,
                                                   Resource resource)
Description copied from interface: PerspectiveManagerLocal
Returns the list of tabs that should be displayed for the specified user for the specified Resource.

Specified by:
getResourceTabs in interface PerspectiveManagerLocal
Parameters:
subject - a user
resource - an inventoried Resource
Returns:
the list of tabs that should be displayed for the specified user for the specified Resource

getUrlKey

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

Specified by:
getUrlKey in interface PerspectiveManagerLocal
Parameters:
url -
Returns:

getUrlViaKey

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

Specified by:
getUrlViaKey in interface PerspectiveManagerLocal


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