public class FunctionTagLibrary
extends com.sun.facelets.tag.AbstractTagLibrary
| Modifier and Type | Field and Description |
|---|---|
static String |
ELLIPSIS |
static FunctionTagLibrary |
INSTANCE
Current instance of library.
|
static String |
NAMESPACE
Namespace used to import this library in Facelets pages
|
| Constructor and Description |
|---|
FunctionTagLibrary() |
| Modifier and Type | Method and Description |
|---|---|
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 <T> List<T> |
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 <T> int |
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) |
public static final String ELLIPSIS
public static final String NAMESPACE
public static final FunctionTagLibrary INSTANCE
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 idResourceFacets 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 idResourcePermission object for the group with the specified id@Deprecated public static String formatTimestamp(long timestamp)
f:convertDateTime tag insteadtimestamp - a milliseconds-since-epoch timestamppublic 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)
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 stringpublic static String getChartURLParams(org.rhq.core.domain.measurement.ui.MetricDisplaySummary summary)
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()
Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.