|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.struts.action.Action
org.dlese.dpc.suggest.action.SuggestAction
org.dlese.dpc.suggest.action.SuggestResourceAction
public final class SuggestResourceAction
* Action controller for the Suggest a Resource servlet
$Id $
| Field Summary |
|---|
| Fields inherited from class org.apache.struts.action.Action |
|---|
defaultLocale, servlet |
| Constructor Summary | |
|---|---|
SuggestResourceAction()
|
|
| Method Summary | |
|---|---|
protected ResourceRecord |
createRecord(ActionForm form)
Update the SuggestionRecord (managed by SuggestResourceHelper) with values from the form bean |
protected SuggestResourceHelper |
getSuggestHelper()
Gets the suggestResourceHelper attribute of the SuggestResourceAction object |
protected ActionForward |
handleCancelCommand(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
NOT YET DOCUMENTED |
protected ActionForward |
handleDoneCommand(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
NOT YET DOCUMENTED |
protected ActionForward |
handleEditCommand(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
NOT YET DOCUMENTED |
protected ActionForward |
handleSubmitCommand(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
NOT YET DOCUMENTED |
protected ActionForward |
initializeSuggestor(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
NOT YET DOCUMENTED |
static void |
setDebug(boolean db)
Sets the debug attribute of the SuggestResourceAction class |
protected ActionErrors |
validateSuggestForm(ActionForm form,
ActionMapping mapping,
HttpServletRequest request)
The required fields for suggest-a-url are: url, nameFirst, nameLast, emailPrimary, instName |
protected ActionErrors |
validateUrl(ActionForm form,
ActionMapping mapping,
HttpServletRequest request)
Validate a URL for proper syntax and then process it with the UrlValidator to enforce rules for accepting a new suggestion. |
| Methods inherited from class org.dlese.dpc.suggest.action.SuggestAction |
|---|
execute, getSchemaHelper, handleOtherCommands, handleStaleData |
| Methods inherited from class org.apache.struts.action.Action |
|---|
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SuggestResourceAction()
| Method Detail |
|---|
protected SuggestResourceHelper getSuggestHelper()
throws ServletException
getSuggestHelper in class SuggestActionServletException - NOT YET DOCUMENTED
protected ActionForward initializeSuggestor(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws ServletException
initializeSuggestor in class SuggestActionmapping - NOT YET DOCUMENTEDform - NOT YET DOCUMENTEDrequest - NOT YET DOCUMENTEDresponse - NOT YET DOCUMENTED
ServletException - NOT YET DOCUMENTED
protected ActionForward handleEditCommand(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception
handleEditCommand in class SuggestActionmapping - NOT YET DOCUMENTEDform - NOT YET DOCUMENTEDrequest - NOT YET DOCUMENTEDresponse - NOT YET DOCUMENTED
Exception - NOT YET DOCUMENTED
protected ActionForward handleCancelCommand(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
handleCancelCommand in class SuggestActionmapping - NOT YET DOCUMENTEDform - NOT YET DOCUMENTEDrequest - NOT YET DOCUMENTEDresponse - NOT YET DOCUMENTED
protected ActionForward handleDoneCommand(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
handleDoneCommand in class SuggestActionmapping - NOT YET DOCUMENTEDform - NOT YET DOCUMENTEDrequest - NOT YET DOCUMENTEDresponse - NOT YET DOCUMENTED
protected ActionForward handleSubmitCommand(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
handleSubmitCommand in class SuggestActionmapping - NOT YET DOCUMENTEDform - NOT YET DOCUMENTEDrequest - NOT YET DOCUMENTEDresponse - NOT YET DOCUMENTED
protected ActionErrors validateSuggestForm(ActionForm form,
ActionMapping mapping,
HttpServletRequest request)
validateSuggestForm in class SuggestActionmapping - Description of the Parameterrequest - Description of the Parameterform - NOT YET DOCUMENTED
protected ActionErrors validateUrl(ActionForm form,
ActionMapping mapping,
HttpServletRequest request)
Verify that a URL is unique within the destination collection using the configured searchService stored in the ServiceHelper. If either of these parameters are not specified, then urls are validated by default (no errors are returned).
mapping - Description of the Parameterrequest - Description of the Parameterform - NOT YET DOCUMENTED
protected ResourceRecord createRecord(ActionForm form)
throws Exception
createRecord in class SuggestActionform - NOT YET DOCUMENTED
Exception - Description of the Exceptionpublic static void setDebug(boolean db)
db - The new debug value
|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||