|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.server.perspective.PerspectiveManagerBean
public class PerspectiveManagerBean
| Constructor Summary | |
|---|---|
PerspectiveManagerBean()
|
|
| Method Summary | |
|---|---|
List<MenuItem> |
getMenu(org.rhq.core.domain.auth.Subject subject)
Return the core menu for the specified subject. |
String |
getMenuItemUrl(org.rhq.core.domain.auth.Subject subject,
String menuItemName,
boolean makeExplicit,
boolean makeSecure)
This method does not ensure the specified subject can actually access the requested url. |
String |
getPageLink(org.rhq.core.domain.auth.Subject subject,
String pageName,
String linkName,
String defaultValue)
Return the url for the given page and name, if one is defined. |
List<Tab> |
getResourceTabs(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.resource.Resource resource)
Returns the list of tabs that should be displayed for the specified user for the specified Resource. |
String |
getResourceTabUrl(org.rhq.core.domain.auth.Subject subject,
String tabName,
int resourceId,
boolean makeExplicit,
boolean makeSecure)
This method does not ensure the specified subject can actually access the requested url. |
String |
getResourceTargetUrl(org.rhq.core.domain.auth.Subject subject,
int resourceId,
PerspectiveTarget target,
int targetId,
boolean makeExplicit,
boolean makeSecure)
This method does not ensure the specified subject can actually access the requested url. |
Map<Integer,String> |
getResourceTargetUrls(org.rhq.core.domain.auth.Subject subject,
int resourceId,
PerspectiveTarget target,
int[] targetIds,
boolean makeExplicit,
boolean makeSecure)
When requesting the same target url for several resource targets this is a more efficient call than calling getResourceTargetUrl() repeatedly. |
String |
getRootUrl(org.rhq.core.domain.auth.Subject subject,
boolean makeExplicit,
boolean makeSecure)
Get the CoreUI context root. |
String |
getTargetUrl(org.rhq.core.domain.auth.Subject subject,
PerspectiveTarget target,
int targetId,
boolean makeExplicit,
boolean makeSecure)
This method does not ensure the specified subject can actually access the requested url. |
Map<Integer,String> |
getTargetUrls(org.rhq.core.domain.auth.Subject subject,
PerspectiveTarget target,
int[] targetIds,
boolean makeExplicit,
boolean makeSecure)
When requesting the same target url for several targets this is a more efficient call than calling getTargetUrl() repeatedly. |
String |
getTemplateTargetUrl(org.rhq.core.domain.auth.Subject subject,
int resourceId,
PerspectiveTarget target,
int targetId,
boolean makeExplicit,
boolean makeSecure)
This method does not ensure the specified subject can actually access the requested url. |
String |
getUrlViaKey(int key)
Given a targetUrlKey parameter value, as set in the extension, resolve that key into the targetUrl for the extension's content. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PerspectiveManagerBean()
| Method Detail |
|---|
public List<MenuItem> getMenu(org.rhq.core.domain.auth.Subject subject)
throws PerspectiveException
PerspectiveManagerLocal
getMenu in interface PerspectiveManagerLocalPerspectiveException
@NotNull
public List<Tab> getResourceTabs(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.resource.Resource resource)
PerspectiveManagerLocal
getResourceTabs in interface PerspectiveManagerLocalsubject - a userresource - an inventoried Resource
public String getPageLink(org.rhq.core.domain.auth.Subject subject,
String pageName,
String linkName,
String defaultValue)
PerspectiveManagerLocal
getPageLink in interface PerspectiveManagerLocalsubject - a user
public String getUrlViaKey(int key)
throws PerspectiveException
getUrlViaKey in interface PerspectiveManagerLocalkey, - a valid key
PerspectiveException
public String getMenuItemUrl(org.rhq.core.domain.auth.Subject subject,
String menuItemName,
boolean makeExplicit,
boolean makeSecure)
PerspectiveManagerLocal
getMenuItemUrl in interface PerspectiveManagerLocalmenuItemName - The name of the menuItem extension pointmakeExplicit - If true ensure "protocol://host:port" prefix. Set true for remotely deployed perspectives.makeSecure - If true use the secure protocol and port. Ignored if makeExplicit=false or not supported.
public String getResourceTabUrl(org.rhq.core.domain.auth.Subject subject,
String tabName,
int resourceId,
boolean makeExplicit,
boolean makeSecure)
PerspectiveManagerLocal
getResourceTabUrl in interface PerspectiveManagerLocaltabName - The name of the resource tab extension pointresourceId - The resource id to be incorporated into the url. This method does not check the validity
of the resourceId.makeExplicit - If true ensure "protocol://host:port" prefix. Set true for remotely deployed perspectives.makeSecure - If true use the secure protocol and port. Ignored if makeExplicit=false or not supported.
public String getRootUrl(org.rhq.core.domain.auth.Subject subject,
boolean makeExplicit,
boolean makeSecure)
PerspectiveManagerLocal
getRootUrl in interface PerspectiveManagerLocalmakeExplicit - If true ensure "protocol://host:port" prefix. Set true for remotely deployed perspectives.makeSecure - If true use the secure protocol and port. Ignored if makeExplicit=false or not supported.
public String getTargetUrl(org.rhq.core.domain.auth.Subject subject,
PerspectiveTarget target,
int targetId,
boolean makeExplicit,
boolean makeSecure)
PerspectiveManagerLocal
getTargetUrl in interface PerspectiveManagerLocaltarget - The target of the navigation link. for example, a role.targetId - The id of the specified target. for example, a roleIdmakeExplicit - If true ensure "protocol://host:port" prefix. Set true for remotely deployed perspectives.makeSecure - If true use the secure protocol and port. Ignored if makeExplicit=false or not supported.
public Map<Integer,String> getTargetUrls(org.rhq.core.domain.auth.Subject subject,
PerspectiveTarget target,
int[] targetIds,
boolean makeExplicit,
boolean makeSecure)
PerspectiveManagerLocal
getTargetUrls in interface PerspectiveManagerLocaltarget - The target of the navigation link. for example, a role.makeExplicit - If true ensure "protocol://host:port" prefix. Set true for remotely deployed perspectives.makeSecure - If true use the secure protocol and port. Ignored if makeExplicit=false or not supported.
public String getResourceTargetUrl(org.rhq.core.domain.auth.Subject subject,
int resourceId,
PerspectiveTarget target,
int targetId,
boolean makeExplicit,
boolean makeSecure)
PerspectiveManagerLocal
getResourceTargetUrl in interface PerspectiveManagerLocalresourceId - The resource id of the specified target. for example, the resource on which an alert is existstarget - The target of the navigation link. for example, an alert.targetId - The id of the specified target. for example, an alertIdmakeExplicit - If true ensure "protocol://host:port" prefix. Set true for remotely deployed perspectives.makeSecure - If true use the secure protocol and port. Ignored if makeExplicit=false or not supported.
public Map<Integer,String> getResourceTargetUrls(org.rhq.core.domain.auth.Subject subject,
int resourceId,
PerspectiveTarget target,
int[] targetIds,
boolean makeExplicit,
boolean makeSecure)
PerspectiveManagerLocal
getResourceTargetUrls in interface PerspectiveManagerLocalresourceId - The resource id of the specified target. for example, the resource on which an alert is existstarget - The target of the navigation link. for example, an alert.makeExplicit - If true ensure "protocol://host:port" prefix. Set true for remotely deployed perspectives.makeSecure - If true use the secure protocol and port. Ignored if makeExplicit=false or not supported.
public String getTemplateTargetUrl(org.rhq.core.domain.auth.Subject subject,
int resourceId,
PerspectiveTarget target,
int targetId,
boolean makeExplicit,
boolean makeSecure)
PerspectiveManagerLocal
getTemplateTargetUrl in interface PerspectiveManagerLocaltarget - The target of the navigation link. for example, an alert templatetargetId - The id of the specified target. for example, an alert template definition IdmakeExplicit - If true ensure "protocol://host:port" prefix. Set true for remotely deployed perspectives.makeSecure - If true use the secure protocol and port. Ignored if makeExplicit=false or not supported.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||