|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.ucsb.nceas.metacat.AssociateAccessPolicy
This class is in order to fix a problem. It doesn't has functionality for Metacat. In Currently, some document in xml_document table doesn't have entries in xml_access table. This is okay during the old access policy. But we changed the access policy and if there is no entry in xml_access table, except owner, other person can not access it. So we need to associate with access policy in xml_access table for these doc ids. The same access policy of these docoments' data set will associate to them.
Constructor Summary | |
AssociateAccessPolicy(DBConnection conn)
construct an instance of the DBQuery class |
Method Summary | |
void |
associateAccess()
Associate the access policy of dataset to the docid which the data set id mapped |
java.util.Vector |
geItsDataSetIdWithouAccessEntry()
Get the docid which it's mapped dataset doesn't has access entry |
java.util.Vector |
getNotFoundDataSetId()
Get the docid which didn't found a dataset id to map it |
static void |
main(java.lang.String[] args)
the main routine used to associate access policy |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AssociateAccessPolicy(DBConnection conn) throws java.io.IOException, java.sql.SQLException, java.lang.Exception
Generally, one would call the findDocuments() routine after creating an instance to specify the search query
conn
- the JDBC connection that we use for the queryMethod Detail |
public static void main(java.lang.String[] args)
public java.util.Vector getNotFoundDataSetId()
public java.util.Vector geItsDataSetIdWithouAccessEntry()
public void associateAccess() throws java.sql.SQLException, McdbException, java.lang.Exception
java.sql.SQLException
McdbException
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |