Revision 3043
Added by perry about 18 years ago
src/edu/ucsb/nceas/metacat/spatial/SpatialHarvester.java | ||
---|---|---|
78 | 78 |
PreparedStatement pstmt = null; |
79 | 79 |
ResultSet rs = null; |
80 | 80 |
|
81 |
String query = "select distinct docid from xml_path_index"; |
|
81 |
/* |
|
82 |
* For now, only allow publically readable docids |
|
83 |
* to be considered for the spatial cache |
|
84 |
*/ |
|
85 |
//String query = "select distinct docid from xml_path_index"; |
|
86 |
String query = "select distinct docid from xml_access where principal_name = 'public' and perm_type = 'allow'"; |
|
82 | 87 |
|
83 | 88 |
try { |
84 | 89 |
pstmt = dbconn.prepareStatement(query); |
Also available in: Unified diff
Allow only public readable docs in the spatial cache