|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PerspectiveManagerLocal
| 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. |
| Method Detail |
|---|
List<MenuItem> getMenu(org.rhq.core.domain.auth.Subject subject)
throws PerspectiveException
subject -
PerspectiveException
List<Tab> getResourceTabs(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.resource.Resource resource)
subject - a userresource - an inventoried Resource
String getPageLink(org.rhq.core.domain.auth.Subject subject,
String pageName,
String linkName,
String defaultValue)
subject - a userpageName, - a valid page extension pointlinkName, - the link that should be replaceddefaultValue, - if no perspective link is defined for the pageName+linkName, the value to return
String getUrlViaKey(int key)
throws PerspectiveException
key, - a valid key
PerspectiveException
String getRootUrl(org.rhq.core.domain.auth.Subject subject,
boolean makeExplicit,
boolean makeSecure)
subject - 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.
String getMenuItemUrl(org.rhq.core.domain.auth.Subject subject,
String menuItemName,
boolean makeExplicit,
boolean makeSecure)
subject - menuItemName - 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.
IllegalArgumentException - if the extension point does not exist.
String getResourceTabUrl(org.rhq.core.domain.auth.Subject subject,
String tabName,
int resourceId,
boolean makeExplicit,
boolean makeSecure)
subject - tabName - 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.
IllegalArgumentException - if the extension point does not exist.
String getTargetUrl(org.rhq.core.domain.auth.Subject subject,
PerspectiveTarget target,
int targetId,
boolean makeExplicit,
boolean makeSecure)
subject - target - 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.
Map<Integer,String> getTargetUrls(org.rhq.core.domain.auth.Subject subject,
PerspectiveTarget target,
int[] targetIds,
boolean makeExplicit,
boolean makeSecure)
subject - target - 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.
String getResourceTargetUrl(org.rhq.core.domain.auth.Subject subject,
int resourceId,
PerspectiveTarget target,
int targetId,
boolean makeExplicit,
boolean makeSecure)
subject - resourceId - 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.
Map<Integer,String> getResourceTargetUrls(org.rhq.core.domain.auth.Subject subject,
int resourceId,
PerspectiveTarget target,
int[] targetIds,
boolean makeExplicit,
boolean makeSecure)
subject - resourceId - 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.
String getTemplateTargetUrl(org.rhq.core.domain.auth.Subject subject,
int resourceId,
PerspectiveTarget target,
int targetId,
boolean makeExplicit,
boolean makeSecure)
subject - resourceTypeId - The resourceType id of the specified target. for example, the type for an alert templatetarget - 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 | |||||||||