public final class DDSRepositoryUpdateServiceAction
extends org.apache.struts.action.Action
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DELETE_COLLECTION_VERB
Delete Collection
|
static java.lang.String |
DELETE_RECORD_VERB
DeleteRecord
|
static java.lang.String |
PUT_COLLECTION_VERB
PutCollection
|
static java.lang.String |
PUT_RECORD_VERB
PutRecord
|
Constructor and Description |
---|
DDSRepositoryUpdateServiceAction() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.struts.action.ActionForward |
doDeleteCollection(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
RepositoryManager repositoryManager,
DDSRepositoryUpdateServiceForm ddsusf,
org.apache.struts.action.ActionMapping mapping)
Handles a request to delete a collection from a DDS repository.
|
protected org.apache.struts.action.ActionForward |
doDeleteRecord(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
RepositoryManager repositoryManager,
DDSRepositoryUpdateServiceForm ddsusf,
org.apache.struts.action.ActionMapping mapping)
Handles a request to delete a metadata record into a DDS repository.
|
protected org.apache.struts.action.ActionForward |
doPutCollection(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
RepositoryManager repositoryManager,
DDSRepositoryUpdateServiceForm ddsusf,
org.apache.struts.action.ActionMapping mapping)
Handles a request to put a collection into a DDS repository.
|
protected org.apache.struts.action.ActionForward |
doPutRecord(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
RepositoryManager repositoryManager,
DDSRepositoryUpdateServiceForm ddsusf,
org.apache.struts.action.ActionMapping mapping)
Handles a request to put a metadata record into a DDS repository.
|
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 Web 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:
|
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 static final java.lang.String PUT_RECORD_VERB
public static final java.lang.String DELETE_RECORD_VERB
public static final java.lang.String PUT_COLLECTION_VERB
public static final java.lang.String DELETE_COLLECTION_VERB
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 doPutCollection(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, RepositoryManager repositoryManager, DDSRepositoryUpdateServiceForm ddsusf, org.apache.struts.action.ActionMapping mapping) throws java.lang.Exception
request
- The HTTP requestresponse
- The HTTP responserm
- The RepositoryManager usedddsusf
- The Form beanmapping
- ActionMapping usedjava.lang.Exception
- If error.protected org.apache.struts.action.ActionForward doDeleteCollection(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, RepositoryManager repositoryManager, DDSRepositoryUpdateServiceForm ddsusf, org.apache.struts.action.ActionMapping mapping) throws java.lang.Exception
request
- The HTTP requestresponse
- The HTTP responserm
- The RepositoryManager usedddsusf
- The Form beanmapping
- ActionMapping usedjava.lang.Exception
- If error.protected org.apache.struts.action.ActionForward doPutRecord(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, RepositoryManager repositoryManager, DDSRepositoryUpdateServiceForm ddsusf, org.apache.struts.action.ActionMapping mapping) throws java.lang.Exception
RepositoryManager
.putRecord and therefore requires the same arguments.request
- The HTTP requestresponse
- The HTTP responserm
- The RepositoryManager usedddsusf
- The Form beanmapping
- ActionMapping usedjava.lang.Exception
- If error.protected org.apache.struts.action.ActionForward doDeleteRecord(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, RepositoryManager repositoryManager, DDSRepositoryUpdateServiceForm ddsusf, org.apache.struts.action.ActionMapping mapping) throws java.lang.Exception
request
- The HTTP requestresponse
- The HTTP responserm
- The RepositoryManager usedddsusf
- The Form beanmapping
- ActionMapping usedjava.lang.Exception
- If error.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