Change the code for validation.
Delete the code that adding access rule for access file itself.
Chage the debug level for display the free connection number.
Add a piece of query to get rid of invalid number in nodedata.
Fixed a bug that if new triple is a new rule in xml_access table, the new triple wouldn't be added into data set file.
In creating xml_access table, add a condition for assigning a access document to itself: if there is not triple. If there is a triple that access file points itself, we don't need inserting again. Otherwise we will get duplicate records.
Get rid of running parser access documents into rules when it handle a access document. (we only need to parser it when handling a dataset file).
Add code to write the updated acl and dataset document back to database after adding permission rules in acl document.
Add code to insert extral rules found in xml_acces table into access document.
Add a method writing info into log file. So the change information can be kept physically.
Add two new methods to update triples in data set file and delete some access rules which doesn't exist in xml_access document. Change the main method, it will read access file form xml_access table rather than getting from argument.
Add code to update tripes in data set file.
Using ! rather than white space to seperate access rules.
Using ! rather than white space to seperate access rule.
Revise some code.
Add a class to handle clean up access table.
Add a class to get access rules from xml_access table directly.
Add a new file to handle get access rules from a xml access document.
Remove the file which we didn't use.
Made a shortcut for % search. It will look like: LIKE '%' rather than: LIKE '%%%'.
In accessQuery, permission=READ or permission=ALL was added for both allow rule and deny rule.
Create a shortcut for the query to get user's onwer doc lists. Create a private method named getOwnerQuery. If the coming query equals the owner query, the access permission checking would NOT append to the comming query. Because the owner has all permission.
Add three private method: createOwnerQuery, createAllowRuleQuery and createDenyRuleQuery. And three public methods: setUserName, setGroup and getAccessQuery.
Add the checking permission query into orignal query.
Add code to make sure that a DBConnection checked out is auto commit.
Add some debug message for displaying search time.
Delete the code for permission checking in execute extened query. It was redundant. Add some debug message for displaying search time.
Add a control for readForRemoteServer is only for data file.
Merge cvs branch replication to cvs head.
Add code to shrink connection pool size. If all connections are free.
Add a new method shrinkConnectionPoolSize .
Add a new method to shrink DBConnection pool size.
Merge DBConnection branch to head.
Merger DBConnect branch to head.
Merge branch to head.
Change back to Connection. DBConnection will store in cvs branch..
Change back to Connection. DBConnection will store in a cvs branch.
Change back to using Connection. The DBConnection will be store in a cvs branch.
Change to using Connection back rather than DBConnection. DBConnection will be store in a cvs branch.
Add a new method commit.
Change the API for dbAdopter.
Change back to pass Connection a parameter.
Change back to pass connection as parameter.
Change back to pass connection as a parameter. Because new connection will cause an error.
Change back to pass connection as paramter in getUniqueID, otherwise new connection will cause a error: sequence XML_NODES_ID_SEQ.CURRVAL is not yet defined in this session
Add a new method - createStatement.
Correct the parameter of getDBConnection - methodName in code.
Change for every method to use getDBConnection and returnDBConnection to manage DBConnection.
Using getDBConenction rather than pass connection as parameter.
Using getDBConnection rather than pass connection as a parameter.
Using getDBConnection method rather than a parameter.
Change the prototype of method getUniqeID
Add DBConnectionPool object in servlet's init method and DBConnectionPool's release method in servlet's destory method.
Delete connection as a class field and make every method to check in and check out connection if it need.
Make a every method check in and check out DBConnection if this method need a connection.
In returnDBConnection method, a new parameter named serialNumber was added. It will compare to the checkOutSerialNumber in DBConnection.
Add a new attribute named checkOutSerialNumber, which to make sure when DBConnection would not be check in mutiple times.
Add the code to handle error in the respone for a update request.
Add test ssl work or not in handleUpdateRequest method too.
Change code to handle the error message.
Add error message to outPut in catch clause in handleGetDocument Request.
In update method, add code to handle if a user couldn't pass a trusting test.
Add a test action in replication. Before handle read and read data file action. Metacat will take a test to see if the trust key in key store. If not, wouldn't replicate documents.This is security issue.
Add debugMessage level in this class
Add a method getDBConnection. In this method, method name of method which checked out the connection can be passed to DBConnection object. In run() method, if a connection is checked out for too long (30 seconds), the method name and connection name will be print out.
Add a attribute named checkOutMethodName and relative method. This variable can keep track which mehod check out the DBConnection.
Add some new methods into this class.
Add some new methods in this class.
Add some new methods in it. Remove openDBconnection part to DBConnection class.
Add some new attributes and methods in it.
Add a new class named DBConnectionPool. This class will create DBConnection pool and other user can get or return connection to it.
Add this new class into meta package. DBConnection class repsent a conncetion and its information.
Add setCookie method in this class. Junit test class need this method.
Add a access control for MetaCatServlet to update a document which home server is not local metacat.
Add a control to accept data or not
Add two controls to send or accept data.
Add control to send data or not
Add two control for send or accept data file
In writeDocumentToDB method, during insert action, rev value can be assigned too. It is useful for replication.
Revised update method.
Add a control to get data file granted in handleUploadMethod.
Revised the method writeDataFile, writeReplication and writeToDB
Revise Update method.
Apply DocumentImp.writeReplication and DocumentImp.writeDataFile in deltaT replication
Fixed some db connection problem
Fixed some db connection bug.
Delete a some useless code for connection pool
Fixed some DB connection bug.
Assign debug level to parser. (it level is 50)
Use DocumentImpl.getDocHomeServer method to get home server in method handleGetDocumentInfo
Change the method getLocalReplicationServerName to be static
Add the feature to get doc home server into method getDocumentInfo.Add a method to return docHomeServer.
Fixed a bug in method getHomeServer
Revise the method getDocumentInfo. Home server of documnet is added in it.
Add three methods into this class. One is named getServerCode, to given a server name, it return server code in xml_replication table.One named insertServerIntoReplicationTable, if a server is not in the server list, it will insert it.One is named WriteReplication, this method will be used in forceReplication. It delete the replication code in it.
Delete the control that when action="insert", rev should be 1
Overload a method debugMessage(String msg, int debugLevel)User can set a debugLevel for this message. If debugLevel is less than the default a value in build.xml, this message will be printed.If user set a value less than or equals 0, debugLevel will be set automatically to 1. So we can set default value to 0 in build.xml file and close all debug message.
Add two methods getHomeServer and getServerLocation. Given a docid, getHomeServer can get the information of its home host. Given a docid, getServerLocation can return server code for it.