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

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.EditCommunitiesServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class EditCommunitiesServlet
extends DSpaceServlet

Servlet for editing communities and collections, including deletion, creation, and metadata editing

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

Field Summary
static int CONFIRM_DELETE_COLLECTION
          User wants to delete a collection
static int CONFIRM_DELETE_COMMUNITY
          User confirmed community deletion
static int CONFIRM_EDIT_COLLECTION
          User commited collection edit or creation
static int CONFIRM_EDIT_COMMUNITY
          User commited community edit or creation
static int START_CREATE_COLLECTION
          User wants to create a collection
static int START_CREATE_COMMUNITY
          User wants to create a community
static int START_DELETE_COLLECTION
          User wants to delete a collection
static int START_DELETE_COMMUNITY
          User wants to delete a community
static int START_EDIT_COLLECTION
          User wants to edit a collection
static int START_EDIT_COMMUNITY
          User wants to edit a community
 
Constructor Summary
EditCommunitiesServlet()
           
 
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_EDIT_COMMUNITY

public static final int START_EDIT_COMMUNITY
User wants to edit a community

See Also:
Constant Field Values

START_DELETE_COMMUNITY

public static final int START_DELETE_COMMUNITY
User wants to delete a community

See Also:
Constant Field Values

START_CREATE_COMMUNITY

public static final int START_CREATE_COMMUNITY
User wants to create a community

See Also:
Constant Field Values

START_EDIT_COLLECTION

public static final int START_EDIT_COLLECTION
User wants to edit a collection

See Also:
Constant Field Values

START_DELETE_COLLECTION

public static final int START_DELETE_COLLECTION
User wants to delete a collection

See Also:
Constant Field Values

START_CREATE_COLLECTION

public static final int START_CREATE_COLLECTION
User wants to create a collection

See Also:
Constant Field Values

CONFIRM_EDIT_COMMUNITY

public static final int CONFIRM_EDIT_COMMUNITY
User commited community edit or creation

See Also:
Constant Field Values

CONFIRM_DELETE_COMMUNITY

public static final int CONFIRM_DELETE_COMMUNITY
User confirmed community deletion

See Also:
Constant Field Values

CONFIRM_EDIT_COLLECTION

public static final int CONFIRM_EDIT_COLLECTION
User commited collection edit or creation

See Also:
Constant Field Values

CONFIRM_DELETE_COLLECTION

public static final int CONFIRM_DELETE_COLLECTION
User wants to delete a collection

See Also:
Constant Field Values
Constructor Detail

EditCommunitiesServlet

public EditCommunitiesServlet()
Method Detail

doDSGet

protected void doDSGet(Context context,
                       javax.servlet.http.HttpServletRequest request,
                       javax.servlet.http.HttpServletResponse response)
                throws javax.servlet.ServletException,
                       IOException,
                       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:
SQLException - if a database error occurs
AuthorizeException - if some authorization error occurs
javax.servlet.ServletException
IOException

doDSPost

protected void doDSPost(Context context,
                        javax.servlet.http.HttpServletRequest request,
                        javax.servlet.http.HttpServletResponse response)
                 throws javax.servlet.ServletException,
                        IOException,
                        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:
SQLException - if a database error occurs
AuthorizeException - if some authorization error occurs
javax.servlet.ServletException
IOException


Copyright © 2013 DuraSpace. All Rights Reserved.