com.alarmpoint.integration.infrastructure.subscription.tag
Class SubscriptionPredicateTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
com.alarmpoint.integration.infrastructure.subscription.tag.SubscriptionPredicateTag
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
public class SubscriptionPredicateTag
- extends javax.servlet.jsp.tagext.TagSupport
A JSP custom tag to define a predicate for a custom subscription panel
To declare the tag library use the JSP taglib directive.
<%@ taglib uri="http://alarmpoint.com/alarmpoint/4.0#subscription" prefix="subs" %>
Tag Reference: predicate
Attribute | Description |
name | name of the predicate |
label | value to be displayed as a label on the screen |
tabPosition | tab position of the predicate |
url | if this predicate has a popup (performSearch is TRUE), this is the URL to the sub search |
queryParemeters | if this predicate has a popup (performSearch is TRUE), this will contain the queryString parameters to pass to the page |
queryPredicateValue | identifies this predicate as retrieving its content from a query to the integration agent. FALSE by default |
performSearch | identifies this predicate as requiring a sub-search due to the volume of data that may apply. FALSE by default |
Sample panel:
<subs:panel tabLabel="Alarm Information" tabCount="4" subscriptionId="${param.subscriptionId}">
<subs:predicate name="MNAME" label="Model Name" tabPosition="1" performSearch="true"
url="/jsp/subscription/caspectrum/SpectrumSubscriptionSubSearch.jsp" queryParameters="name=MNAME|desc=Model Name|key=name|value=name|doNotRun=true"/>
<subs:predicate name="MTYPENAME" label="Model Type Name" tabPosition="1" performSearch="true"
url="/jsp/subscription/caspectrum/SpectrumSubscriptionSubSearch.jsp" queryParameters="name=MTYPENAME|desc=Model Type Name|key=typeName|value=typeName|doNotRun=true"/>
<subs:predicate name="SEVERITY" label="Severity" tabPosition="1"/>
<subs:predicate name="CAUSE_ID" label="Cause Id" tabPosition="1"/>
<subs:predicate name="DEVICE_TYPE" label="Device Type" tabPosition="1"/>
<subs:predicate name="IP_ADDRESS" label="IP Address" tabPosition="1"/>
<subs:predicate name="PCAUSE" label="Cause" tabPosition="1"/>
<subs:predicate name="SMSTEXT" label="SMS Text" tabPosition="1"/>
</subs:panel>
- Since:
- 4.0
- Author:
- Mike Bennett
- See Also:
- Serialized Form
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
EVAL_BODY_AGAIN |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubscriptionPredicateTag
public SubscriptionPredicateTag()
- Creates a new instance of SubscriptionPredicateTag
doEndTag
public int doEndTag()
throws javax.servlet.jsp.JspTagException
- Specified by:
doEndTag
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
- Throws:
javax.servlet.jsp.JspTagException
setName
public void setName(java.lang.String name)
setTabPosition
public void setTabPosition(java.lang.Integer tabPosition)
setLabel
public void setLabel(java.lang.String label)
setQueryPredicateValue
public void setQueryPredicateValue(java.lang.Boolean queryPredicateValue)
setPerformSearch
public void setPerformSearch(java.lang.Boolean performSearch)
setUrl
public void setUrl(java.lang.String url)
setQueryParameters
public void setQueryParameters(java.lang.String queryParameters)