org.openanzo.telar
Class AdminServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.openanzo.telar.AdminServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, Constants, ServletConstants

public class AdminServlet
extends javax.servlet.http.HttpServlet
implements Constants, ServletConstants

Author:
Rouben Meschian (rmeschi@us.ibm.com)
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.openanzo.telar.Constants
ADD, DATATYPE, DEFAULT_NAMED_GRAPHS, ERROR, EXEC_QUERY, GRAPH, GRAPH_REVISIONS, LITERAL, NAMED_GRAPHS, OBJECT, PREDICATE, QUERY, REMOVE, REQUEST, RESPONSE, RESULT_SET, SUBJECT, TYPE, TYPED_LITERAL, URI
 
Fields inherited from interface org.openanzo.telar.ServletConstants
AUTHENTICATE_USER, CREATE_GRAPH, CREATE_ROLE, CREATE_USER, GET_BOCA_PROPERTIES, GET_METADATA_GRAPH_URI, GET_REMOTE_SYSTEM_GRAPH_URI, GET_REMOTE_SYSTEM_METADATA_GRAPH_URI, METADATA_GRAPH_URI, PASSWORD, REMOTE_SYSTEM_GRAPH_URI, REMOTE_SYSTEM_METADATA_GRAPH_URI, REMOVE_ROLE, REMOVE_USER, UPDATE_USER, USER
 
Constructor Summary
AdminServlet(ModelServiceApi api)
           
 
Method Summary
 void execute(java.lang.String username, java.lang.String requestJSON, javax.servlet.http.HttpServletResponse resp)
          WING: I think this should be changed to NOT accept the request object.
 void init()
           
 
Methods inherited from class javax.servlet.http.HttpServlet
service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdminServlet

public AdminServlet(ModelServiceApi api)
Method Detail

init

public void init()
          throws javax.servlet.ServletException
Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException

execute

public void execute(java.lang.String username,
                    java.lang.String requestJSON,
                    javax.servlet.http.HttpServletResponse resp)
             throws org.json.JSONException,
                    java.io.IOException
WING: I think this should be changed to NOT accept the request object. createGraph [ { graph : "" }, ... ]
createUser [ { uri : "", usr : "", pwd : "" }, ... ]
createRole [ { uri : "" }, ... ]
removeUser [ { uri : "" | usr : "" }, ... ]
removeRole [ { uri : "" }, ... ]
authenticateUser [ { usr : "", pwd : "" }, ... ] getMetadataGraphUri [ { graph : "" }, ... ]
getRemoteSystemGraphUri [ {} ]
getRemoteSystemMetadataGraphUri [ {} ]
getBocaProperties [ {} ]

Parameters:
REQUEST -
RESPONSE -
obj -
Throws:
org.json.JSONException
java.io.IOException


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.