public final class JSHTMLAction_1_1
extends org.apache.struts.action.Action
JSHTMLForm_1_1
Constructor and Description |
---|
JSHTMLAction_1_1() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.struts.action.ActionForward |
doGetRecord(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
RepositoryManager rm,
JSHTMLForm_1_1 jsform,
org.apache.struts.action.ActionMapping mapping)
Handles a request to get a given record from the repository.
|
protected org.apache.struts.action.ActionForward |
doSearch(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
RepositoryManager rm,
JSHTMLForm_1_1 jsform,
org.apache.struts.action.ActionMapping mapping)
Handles a request to perform a search over all records using the Lucene Query Language.
|
protected org.apache.struts.action.ActionForward |
doUserSearch(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
RepositoryManager rm,
JSHTMLForm_1_1 jsform,
java.util.Map customSearchMappings,
org.apache.struts.action.ActionMapping mapping)
Handles a request to perform a search over item-level records using the User Query Language.
|
org.apache.struts.action.ActionForward |
execute(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Processes the JavaScript service request by forwarding to the appropriate corresponding JSP page for
rendering.
|
protected static java.lang.String |
getDateStamp()
Return a string for the current time and date, sutiable for display in log files and output to standout:
|
static int |
getNumRecords(RepositoryManager rm)
Gets the number of records that have been indexed inclucing adn, collection, anno and other metadata
types regardless of status.
|
protected void |
prtln(java.lang.String s)
Output a line of text to standard out, with datestamp, if debug is set to true.
|
protected void |
prtlnErr(java.lang.String s)
Output a line of text to error out, with datestamp.
|
static void |
setDebug(boolean db)
Sets the debug attribute of the object
|
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
execute
in class org.apache.struts.action.Action
mapping
- The ActionMapping used to select this instancerequest
- The HTTP request we are processingresponse
- The HTTP response we are creatingform
- The ActionForm for the given pagejava.lang.Exception
- If error.protected org.apache.struts.action.ActionForward doGetRecord(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, RepositoryManager rm, JSHTMLForm_1_1 jsform, org.apache.struts.action.ActionMapping mapping) throws java.lang.Exception
Arguments: identifier, metadataPrefix.
Error Exception Conditions:
badArgument - The request includes illegal arguments.
request
- The HTTP requestresponse
- The HTTP responserm
- The RepositoryManager usedmapping
- ActionMapping usedjsform
- The Form Beanjava.lang.Exception
- If error.protected org.apache.struts.action.ActionForward doUserSearch(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, RepositoryManager rm, JSHTMLForm_1_1 jsform, java.util.Map customSearchMappings, org.apache.struts.action.ActionMapping mapping) throws java.lang.Exception
Arguments: identifier, metadataPrefix.
Error Exception Conditions:
badArgument - The request includes illegal parameters.
request
- The HTTP requestresponse
- The HTTP responserm
- The RepositoryManager usedmapping
- ActionMapping usedjsform
- The FormcustomSearchMappings
- A Map of search queries keyed by menu-item IDjava.lang.Exception
- If error.protected org.apache.struts.action.ActionForward doSearch(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, RepositoryManager rm, JSHTMLForm_1_1 jsform, org.apache.struts.action.ActionMapping mapping) throws java.lang.Exception
request
- The HTTP requestresponse
- The HTTP responserm
- The RepositoryManager usedmapping
- ActionMapping usedjsform
- The form beanjava.lang.Exception
- If error.public static final int getNumRecords(RepositoryManager rm)
rm
- The RepositoryManager being used.protected static final java.lang.String getDateStamp()
protected final void prtlnErr(java.lang.String s)
s
- The text that will be output to error out.protected final void prtln(java.lang.String s)
s
- The String that will be output.public static void setDebug(boolean db)
db
- The new debug value