info.aduna.gee.publication.servlets
Class ShopAdminServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by info.aduna.gee.publication.servlets.AdminServlet
              extended by info.aduna.gee.publication.servlets.ShopAdminServlet
All Implemented Interfaces:
LocalNames, Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ShopAdminServlet
extends AdminServlet
implements LocalNames

ShopAdminServlet handles 'commandline' access to the shop database.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class info.aduna.gee.publication.servlets.AdminServlet
_authorizationKey, _authorizedIPsKey, _name
 
Fields inherited from interface info.aduna.gee.publication.servlets.LocalNames
ADDED, ALL_CLABELS, ANY_COVER_OPTION, CLABEL, CLABELS, DELETE, DELETED, EMAIL_SUBJECT, IS_ALIAS_FOR, LABEL_CART, LABEL_PRODUCT_CONFIGURATOR, MODIFY, OPTION, OPTIONLIST, OPTIONVALUE, PRODUCT, SERVICE_ADD_ALIAS, SERVICE_CATEGORIES, SERVICE_CHANGE_COVER, SERVICE_FIND_ZPAD, SERVICE_REMOVE_ALIAS, SERVICE_REMOVE_FILE, SERVICE_REMOVE_IMAGE, SERVICE_SEARCHENGINES_INFO, SERVICE_STATISTICS, SERVICE_UPLOAD_FILE, SERVICE_UPLOAD_IMAGE, SUBSCRIPTION, SUBSCRIPTIONS, UPDATED, ZPAD_LOGINS, ZPAD_VISITS
 
Constructor Summary
ShopAdminServlet()
           
 
Method Summary
 String deleteOption(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Remove an option.
 String deleteOptionlist(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Remove an optionlist.
 String deleteOptionvalue(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Remove an optionvalue.
 String deleteProduct(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Remove a product.
 String getServletInfo()
           
 void init(javax.servlet.ServletConfig config)
           
 String option(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Add or modify an option.
 String optionForm(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          A form to add or modify an option.
 String optionlist(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Add or modify an optionlist.
 String optionlistForm(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          A form to add or modify an optionlist.
 String optionvalue(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Add or modify an optionvalue.
 String optionvalueForm(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          A form to add or modify an optionvalue
 String product(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Add or modify a product.
 String productForm(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Construct form to add or modify a product.
 String showOptionlists(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 String showOptions(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 String showProducts(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 String start(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Get the starting page for the shop admin, which lists all actions.
 
Methods inherited from class info.aduna.gee.publication.servlets.AdminServlet
_authorized, _isAuthorizedClient, _isAuthorizedUser, _toGenericSuccess, doGet, doPost, isInIPRange
 
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, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShopAdminServlet

public ShopAdminServlet()
Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException

getServletInfo

public String getServletInfo()
Specified by:
getServletInfo in interface javax.servlet.Servlet
Overrides:
getServletInfo in class javax.servlet.GenericServlet

start

public String start(javax.servlet.http.HttpServletRequest request,
                    javax.servlet.http.HttpServletResponse response)
             throws IOException
Get the starting page for the shop admin, which lists all actions.

Throws:
IOException

showProducts

public String showProducts(javax.servlet.http.HttpServletRequest request,
                           javax.servlet.http.HttpServletResponse response)
                    throws IOException
Throws:
IOException

productForm

public String productForm(javax.servlet.http.HttpServletRequest request,
                          javax.servlet.http.HttpServletResponse response)
                   throws IOException
Construct form to add or modify a product.

Throws:
IOException

product

public String product(javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response)
               throws IOException
Add or modify a product.

Throws:
IOException

deleteProduct

public String deleteProduct(javax.servlet.http.HttpServletRequest request,
                            javax.servlet.http.HttpServletResponse response)
                     throws IOException
Remove a product.

Throws:
IOException

showOptionlists

public String showOptionlists(javax.servlet.http.HttpServletRequest request,
                              javax.servlet.http.HttpServletResponse response)
                       throws IOException
Throws:
IOException

optionlistForm

public String optionlistForm(javax.servlet.http.HttpServletRequest request,
                             javax.servlet.http.HttpServletResponse response)
                      throws IOException
A form to add or modify an optionlist.

Throws:
IOException

optionlist

public String optionlist(javax.servlet.http.HttpServletRequest request,
                         javax.servlet.http.HttpServletResponse response)
                  throws IOException
Add or modify an optionlist.

Throws:
IOException

deleteOptionlist

public String deleteOptionlist(javax.servlet.http.HttpServletRequest request,
                               javax.servlet.http.HttpServletResponse response)
                        throws IOException
Remove an optionlist.

Throws:
IOException

showOptions

public String showOptions(javax.servlet.http.HttpServletRequest request,
                          javax.servlet.http.HttpServletResponse response)
                   throws IOException
Throws:
IOException

optionForm

public String optionForm(javax.servlet.http.HttpServletRequest request,
                         javax.servlet.http.HttpServletResponse response)
                  throws IOException
A form to add or modify an option.

Throws:
IOException

option

public String option(javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response)
              throws IOException
Add or modify an option.

Throws:
IOException

deleteOption

public String deleteOption(javax.servlet.http.HttpServletRequest request,
                           javax.servlet.http.HttpServletResponse response)
                    throws IOException
Remove an option.

Throws:
IOException

optionvalueForm

public String optionvalueForm(javax.servlet.http.HttpServletRequest request,
                              javax.servlet.http.HttpServletResponse response)
                       throws IOException
A form to add or modify an optionvalue

Throws:
IOException

optionvalue

public String optionvalue(javax.servlet.http.HttpServletRequest request,
                          javax.servlet.http.HttpServletResponse response)
                   throws IOException
Add or modify an optionvalue.

Throws:
IOException

deleteOptionvalue

public String deleteOptionvalue(javax.servlet.http.HttpServletRequest request,
                                javax.servlet.http.HttpServletResponse response)
                         throws IOException
Remove an optionvalue.

Throws:
IOException


Copyright © 1997-2008 Aduna. All Rights Reserved.