|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.facelets.tag.AbstractTagLibrary
org.rhq.enterprise.gui.common.tag.FunctionTagLibrary
public class FunctionTagLibrary
A Facelets tag library containing custom EL functions for use in RHQ GUI pages. *NOTE*: There are weird issues with Facelets function taglibs - whenever possible, managed beans should be used instead.
| Field Summary | |
|---|---|
static String |
ELLIPSIS
|
static FunctionTagLibrary |
INSTANCE
Current instance of library. |
static String |
NAMESPACE
Namespace used to import this library in Facelets pages |
| Constructor Summary | |
|---|---|
FunctionTagLibrary()
|
|
| Method Summary | ||
|---|---|---|
static String |
contextFragmentURL()
|
|
static String |
contextFragmentURLForIndicatorsChart()
This method is akin to contextFragmentURL() but produces a correct fragment
for the indicators chart action (/resource/common/monitor/visibility/IndicatorCharts.do). |
|
static String |
elideString(String str,
int numChars,
String mode)
Elides given string using an ellipsis character. |
|
static String |
elideStringCustom(String str,
int numChars,
String mode,
String ellipsis)
Elides given string using the specified ellipsis. |
|
static String |
formatTimestamp(long timestamp)
Deprecated. use f:convertDateTime tag instead |
|
static String |
getAlertPriorityURL(org.rhq.core.domain.alert.AlertPriority priority)
|
|
static String |
getAlertSenderConfigurationPreview(org.rhq.core.domain.alert.notification.AlertNotification alertNotification)
|
|
static String |
getAvailabilityURL(org.rhq.core.domain.measurement.AvailabilityType type,
int size)
|
|
static String |
getChartURLParams(org.rhq.core.domain.measurement.ui.MetricDisplaySummary summary)
|
|
static String |
getDefaultAutoGroupTabURL()
|
|
static String |
getDefaultContextTabURL(org.rhq.core.domain.common.EntityContext context)
|
|
static String |
getDefaultGroupTabURL()
|
|
static String |
getDefaultResourceTabURL()
|
|
static String |
getEventSeverityURL(org.rhq.core.domain.event.EventSeverity severity,
boolean grouped)
|
|
static org.rhq.core.domain.resource.composite.ResourceFacets |
getFacets()
|
|
static org.rhq.core.domain.resource.composite.ResourcePermission |
getGroupPermission(int groupId)
Returns a ResourcePermission object for the group with the specified id. |
|
static
|
getListFromMap(Map<String,T> map)
|
|
static String |
getOperationStatusURL(org.rhq.core.domain.operation.OperationRequestStatus status)
|
|
static org.rhq.core.domain.resource.Resource |
getResource(int resourceId)
|
|
static String |
getResourceConfigStatusURL(org.rhq.core.domain.configuration.ConfigurationUpdateStatus status)
|
|
static org.rhq.core.domain.resource.composite.ResourceFacets |
getResourceFacets(int resourceTypeId)
Returns a ResourceFacets object that represents the facets (measurement, configuration, etc.) that
are supported by the resource type with the specified id. |
|
static org.rhq.core.domain.resource.composite.ResourcePermission |
getResourcePermission()
Returns a ResourcePermission object for the resource associated with the current request. |
|
static WebUserPreferences |
getWebUserPreferences()
|
|
static boolean |
isIE6()
|
|
static
|
length(T[] collection)
|
|
static void |
loadResource()
Loads the Resource with the id specified via the 'id' query string parameter in the current request, and sticks the Resource into the request context as the "Resource" attribute. |
|
static int |
sizeOf(Collection<?> collection)
|
|
| Methods inherited from class com.sun.facelets.tag.AbstractTagLibrary |
|---|
addComponent, addComponent, addConverter, addConverter, addFunction, addTagHandler, addUserTag, addValidator, addValidator, containsFunction, containsNamespace, containsTagHandler, createFunction, createTagHandler, getNamespace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ELLIPSIS
public static final String NAMESPACE
public static final FunctionTagLibrary INSTANCE
| Constructor Detail |
|---|
public FunctionTagLibrary()
| Method Detail |
|---|
public static void loadResource()
public static org.rhq.core.domain.resource.composite.ResourceFacets getResourceFacets(int resourceTypeId)
ResourceFacets object that represents the facets (measurement, configuration, etc.) that
are supported by the resource type with the specified id. Individual facets can be checked easily via EL, e.g.:
<c:set var="resourceFacets" value="${onf:getResourceFacets(Resource.resourceType.id)}"/> <c:if
test="${resourceFacets.measurement}"> ...
resourceTypeId - a ResourceType id
ResourceFacets object for the resource type with the specified idpublic static org.rhq.core.domain.resource.composite.ResourceFacets getFacets()
public static org.rhq.core.domain.resource.composite.ResourcePermission getResourcePermission()
ResourcePermission object for the resource associated with the current request. Individual
permissions can be checked easily via EL, e.g.: <c:set var="resourcePerm"
value="${onf:getResourcePermission()}"/> <c:if test="${resourcePerm.measure}"> ...
ResourcePermission object for the resource with the specified idpublic static org.rhq.core.domain.resource.composite.ResourcePermission getGroupPermission(int groupId)
ResourcePermission object for the group with the specified id. Individual permissions can
be checked easily via EL, e.g.: <c:set var="groupPerm" value="${onf:getGroupPermission(groupId)}"/>
<c:if test="${groupPerm.measure}"> ...
groupId - a ResourceGroup id
ResourcePermission object for the group with the specified id@Deprecated public static String formatTimestamp(long timestamp)
f:convertDateTime tag instead
timestamp - a milliseconds-since-epoch timestamp
public static int sizeOf(Collection<?> collection)
public static <T> int length(T[] collection)
public static WebUserPreferences getWebUserPreferences()
public static String contextFragmentURL()
public static String contextFragmentURLForIndicatorsChart()
contextFragmentURL() but produces a correct fragment
for the indicators chart action (/resource/common/monitor/visibility/IndicatorCharts.do).
This legacy struts action expects a "ctype" parameter where the new UI uses "type".
public static org.rhq.core.domain.resource.Resource getResource(int resourceId)
public static String elideString(String str,
int numChars,
String mode)
elideStringCustom(String, int, String, String)
public static String elideStringCustom(String str,
int numChars,
String mode,
String ellipsis)
str - the string to elidenumChars - the length of the elided stringmode - the elide modeellipsis - the ellipsis string
public static String getChartURLParams(org.rhq.core.domain.measurement.ui.MetricDisplaySummary summary)
public static <T> List<T> getListFromMap(Map<String,T> map)
public static String getDefaultContextTabURL(org.rhq.core.domain.common.EntityContext context)
public static String getDefaultResourceTabURL()
public static String getDefaultGroupTabURL()
public static String getDefaultAutoGroupTabURL()
public static String getAvailabilityURL(org.rhq.core.domain.measurement.AvailabilityType type,
int size)
public static String getAlertPriorityURL(org.rhq.core.domain.alert.AlertPriority priority)
public static String getResourceConfigStatusURL(org.rhq.core.domain.configuration.ConfigurationUpdateStatus status)
public static String getOperationStatusURL(org.rhq.core.domain.operation.OperationRequestStatus status)
public static String getEventSeverityURL(org.rhq.core.domain.event.EventSeverity severity,
boolean grouped)
public static String getAlertSenderConfigurationPreview(org.rhq.core.domain.alert.notification.AlertNotification alertNotification)
public static boolean isIE6()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||