| org.apache.roller.ui.authoring.struts.actions.BasePingTargetsAction
All known Subclasses: org.apache.roller.ui.authoring.struts.actions.CustomPingTargetsAction, org.apache.roller.ui.admin.struts.actions.CommonPingTargetsAction,
BasePingTargetsAction | abstract public class BasePingTargetsAction extends DispatchAction (Code) | | Base class for both common and custom ping target operations. The methods
here apply to creating, editing and removing ping targets. Operations for
maintaining automatic ping configurations are handled by
PingSetupAction .
|
Method Summary | |
public ActionForward | addNew(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse res) Add a new ping target. | abstract protected PingTargetData | createPingTarget(RollerRequest rreq, PingTargetForm pingTargetForm) Create a new ping target (blank). | public ActionForward | deleteConfirmed(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse res) Delete a ping target (already confirmed). | public ActionForward | deleteSelected(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse res) Delete a ping target (load delete confirmation view). | public ActionForward | editSelected(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse res) | abstract protected Log | getLogger() | abstract public String | getPingTargetDeleteOKTitle() | abstract public String | getPingTargetEditTitle() | abstract protected List | getPingTargets(RollerRequest rreq) Get the ping targets for the view. | abstract public String | getPingTargetsTitle() | abstract protected boolean | hasRequiredRights(RollerRequest rreq, WebsiteData website) Helper defined by the subclass to determine if user has adequate
rights for the action. | public ActionForward | save(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse res) Save a ping target, new or existing (depending on whether the id is non-empty). | protected PingTargetData | select(RollerRequest rreq) Helper to select the ping target specified by the id in the request. | protected ActionForward | unspecified(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) Implements the default action (view) if the method is not specified. | public ActionForward | view(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse res) Display the ping targets. |
ACCESS_DENIED_PAGE | final protected static String ACCESS_DENIED_PAGE(Code) | | |
PING_TARGET_DELETE_PAGE | final protected static String PING_TARGET_DELETE_PAGE(Code) | | |
PING_TARGET_EDIT_PAGE | final protected static String PING_TARGET_EDIT_PAGE(Code) | | |
BasePingTargetsAction | public BasePingTargetsAction()(Code) | | |
addNew | public ActionForward addNew(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse res) throws Exception(Code) | | Add a new ping target. Loads the edit view blank.
Parameters: mapping - Parameters: form - Parameters: req - Parameters: res - the edit page (blank) throws: Exception - |
createPingTarget | abstract protected PingTargetData createPingTarget(RollerRequest rreq, PingTargetForm pingTargetForm) throws RollerException(Code) | | Create a new ping target (blank). This is implemented differently in
the concrete subclasses.
|
deleteConfirmed | public ActionForward deleteConfirmed(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse res) throws Exception(Code) | | Delete a ping target (already confirmed). This performs the actual deletion.
Parameters: mapping - Parameters: form - Parameters: req - Parameters: res - the result of view() after the deletion throws: Exception - |
deleteSelected | public ActionForward deleteSelected(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse res) throws Exception(Code) | | Delete a ping target (load delete confirmation view).
Parameters: mapping - Parameters: form - Parameters: req - Parameters: res - the delete confirmation view with the form populated with the ping target specified by the id in the request. throws: Exception - |
editSelected | public ActionForward editSelected(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse res) throws Exception(Code) | | Edit a ping target (load edit view)
Parameters: mapping - Parameters: form - Parameters: req - Parameters: res - the edit view with the form populated with the ping target specified by the id in the request. throws: Exception - |
getLogger | abstract protected Log getLogger()(Code) | | Get the logger from the concrete subclass
|
getPingTargetDeleteOKTitle | abstract public String getPingTargetDeleteOKTitle()(Code) | | |
getPingTargetEditTitle | abstract public String getPingTargetEditTitle()(Code) | | |
getPingTargets | abstract protected List getPingTargets(RollerRequest rreq) throws RollerException(Code) | | Get the ping targets for the view. This is implemented differently in
the concrete subclasses.
|
getPingTargetsTitle | abstract public String getPingTargetsTitle()(Code) | | |
save | public ActionForward save(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse res) throws Exception(Code) | | Save a ping target, new or existing (depending on whether the id is non-empty).
Parameters: mapping - Parameters: form - Parameters: req - Parameters: res - the result of view() after the target is saved. throws: Exception - |
unspecified | protected ActionForward unspecified(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) throws Exception(Code) | | Implements the default action (view) if the method is not specified.
Parameters: mapping - Parameters: actionForm - Parameters: request - Parameters: response - the same result as view() throws: Exception - See Also: org.apache.struts.actions.DispatchAction.unspecified(org.apache.struts.action.ActionMappingorg.apache.struts.action.ActionFormjavax.servlet.http.HttpServletRequestjavax.servlet.http.HttpServletResponse) |
|
|