org.dspace.app.webui.servlet.admin
Class EditItemServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.dspace.app.webui.servlet.DSpaceServlet
              extended by org.dspace.app.webui.servlet.admin.EditItemServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class EditItemServlet
extends DSpaceServlet

Servlet for editing and deleting (expunging) items

Version:
$Revision: 5845 $
Author:
Robert Tansley
See Also:
Serialized Form

Field Summary
static int CONFIRM_DELETE
          User confirms delete (expunge) of item
static int CONFIRM_MOVE_ITEM
          User confirms the movement of the item
static int CONFIRM_WITHDRAW
          User confirms withdrawal of item
static int REINSTATE
          User reinstates a withdrawn item
static int START_DELETE
          User wants to delete (expunge) an item
static int START_MOVE_ITEM
          User starts the movement of an item
static int START_WITHDRAW
          User starts withdrawal of item
static int UPDATE_ITEM
          User updates item
 
Constructor Summary
EditItemServlet()
           
 
Method Summary
protected  void doDSGet(Context context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Process an incoming HTTP GET.
protected  void doDSPost(Context context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Process an incoming HTTP POST.
 
Methods inherited from class org.dspace.app.webui.servlet.DSpaceServlet
doGet, doPost
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

START_DELETE

public static final int START_DELETE
User wants to delete (expunge) an item

See Also:
Constant Field Values

CONFIRM_DELETE

public static final int CONFIRM_DELETE
User confirms delete (expunge) of item

See Also:
Constant Field Values

UPDATE_ITEM

public static final int UPDATE_ITEM
User updates item

See Also:
Constant Field Values

START_WITHDRAW

public static final int START_WITHDRAW
User starts withdrawal of item

See Also:
Constant Field Values

CONFIRM_WITHDRAW

public static final int CONFIRM_WITHDRAW
User confirms withdrawal of item

See Also:
Constant Field Values

REINSTATE

public static final int REINSTATE
User reinstates a withdrawn item

See Also:
Constant Field Values

START_MOVE_ITEM

public static final int START_MOVE_ITEM
User starts the movement of an item

See Also:
Constant Field Values

CONFIRM_MOVE_ITEM

public static final int CONFIRM_MOVE_ITEM
User confirms the movement of the item

See Also:
Constant Field Values
Constructor Detail

EditItemServlet

public EditItemServlet()
Method Detail

doDSGet

protected void doDSGet(Context context,
                       javax.servlet.http.HttpServletRequest request,
                       javax.servlet.http.HttpServletResponse response)
                throws javax.servlet.ServletException,
                       java.io.IOException,
                       java.sql.SQLException,
                       AuthorizeException
Description copied from class: DSpaceServlet
Process an incoming HTTP GET. If an exception is thrown, or for some other reason the passed in context is not completed, it will be aborted and any changes made by this method discarded when this method returns.

Overrides:
doDSGet in class DSpaceServlet
Parameters:
context - a DSpace Context object
request - the HTTP request
response - the HTTP response
Throws:
java.sql.SQLException - if a database error occurs
AuthorizeException - if some authorization error occurs
javax.servlet.ServletException
java.io.IOException

doDSPost

protected void doDSPost(Context context,
                        javax.servlet.http.HttpServletRequest request,
                        javax.servlet.http.HttpServletResponse response)
                 throws javax.servlet.ServletException,
                        java.io.IOException,
                        java.sql.SQLException,
                        AuthorizeException
Description copied from class: DSpaceServlet
Process an incoming HTTP POST. If an exception is thrown, or for some other reason the passed in context is not completed, it will be aborted and any changes made by this method discarded when this method returns.

Overrides:
doDSPost in class DSpaceServlet
Parameters:
context - a DSpace Context object
request - the HTTP request
response - the HTTP response
Throws:
java.sql.SQLException - if a database error occurs
AuthorizeException - if some authorization error occurs
javax.servlet.ServletException
java.io.IOException


Copyright © 2010 DuraSpace. All Rights Reserved.