public abstract class BaseRankChannels extends RhnLookupDispatchAction
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
POSSIBLE_CHANNELS |
protected static java.lang.String |
RANKED_VALUES |
protected static java.lang.String |
SELECTED_CHANNEL |
SUBMITTED
Constructor and Description |
---|
BaseRankChannels() |
Modifier and Type | Method and Description |
---|---|
protected java.util.List |
getChannelIds(org.apache.struts.action.DynaActionForm form)
Returns the the channel Ids info retrieved after one
has clicked Update Channel Rankings or Apply Subscriptions.
|
protected RhnSet |
getRhnSet(User user)
returns the Rhn Set used to store the sets..
|
org.apache.struts.action.ActionForward |
handleNoScript(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm formIn,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Raises an error message saying javascript is required
to process this page
|
protected abstract void |
populateWidgetLabels(java.util.LinkedHashSet labelValues,
RequestContext context)
Extension point for each of the subclasses to add content
LabelValues before more content is added to it using rhn sets
to the RankWidget check box..
|
protected abstract void |
processParams(RequestContext context,
java.util.Map params)
Extension points for each of the BaseRankChannel sub classses
to add params to forwarding page..
|
protected abstract void |
setup(RequestContext context,
org.apache.struts.action.DynaActionForm form,
RhnSet set)
Extension point for doing additional setup stuff
before the jsp is loaded...
|
protected void |
setupWidget(RequestContext context,
org.apache.struts.action.DynaActionForm form,
RhnSet set)
Sets up the rangling widget.
|
getMethodName, getStrutsDelegate, isSubmitted, l10n, lv
execute, getKeyMethodMap, getLookupMapName
cancelled, dispatchMethod, getMethod, getParameter, unspecified
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
protected static final java.lang.String POSSIBLE_CHANNELS
protected static final java.lang.String SELECTED_CHANNEL
protected static final java.lang.String RANKED_VALUES
protected void setupWidget(RequestContext context, org.apache.struts.action.DynaActionForm form, RhnSet set)
context
- the request context of the current requestform
- the dynaform related to the current request.set
- the rhnset holding the channel ids.protected abstract void populateWidgetLabels(java.util.LinkedHashSet labelValues, RequestContext context)
labelValues
- a LinkedHashSet/List in some sense that
holds a bunch of lv(Channel labels, Channel ids).
This is a Linked Hash Set becasue we needed to
throw away duplicate insertions while maintaining
the correct order of insertion.context
- the request context of the current requestprotected java.util.List getChannelIds(org.apache.struts.action.DynaActionForm form)
form
- the submitted form..protected RhnSet getRhnSet(User user)
user
- The Loggin Userpublic org.apache.struts.action.ActionForward handleNoScript(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm formIn, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
mapping
- struts ActionMappingformIn
- struts ActionFormrequest
- HttpServletRequestresponse
- HttpServletResponseprotected abstract void processParams(RequestContext context, java.util.Map params)
context
- the request context of the current request.params
- the params to be updatedprotected abstract void setup(RequestContext context, org.apache.struts.action.DynaActionForm form, RhnSet set)
context
- the request context of the current request.form
- the action form for setting up form contents on the new pageset
- the set storing the rank contents