Revision 1321
Added by Jing Tao about 22 years ago
src/edu/ucsb/nceas/metacat/AccessRulesFromDocument.java | ||
---|---|---|
415 | 415 |
hasRows = rs.next(); |
416 | 416 |
}//while |
417 | 417 |
// Add access file itself |
418 |
aclObjects.addElement(aclid); |
|
418 |
//aclObjects.addElement(aclid);
|
|
419 | 419 |
} |
420 | 420 |
catch (SQLException e) |
421 | 421 |
{ |
src/edu/ucsb/nceas/metacat/AccessRulesFromDB.java | ||
---|---|---|
175 | 175 |
{ |
176 | 176 |
docid = rs.getString(1); |
177 | 177 |
// if hashtable doesn't has the rule add to hashtable |
178 |
if (!accessRuleVector.contains(docid))
|
|
178 |
if (!docidAccessRuleApplied.contains(docid) && !docid.equals(aclid))
|
|
179 | 179 |
{ |
180 | 180 |
docidAccessRuleApplied.addElement(docid); |
181 | 181 |
i++; |
build.xml | ||
---|---|---|
58 | 58 |
<!-- Customize these properties for your system --> |
59 | 59 |
<property name="tomcat" value="/usr/local/devtools/jakarta-tomcat" /> |
60 | 60 |
<property name="webapps" value="/opt/tomcat/webapps" /> |
61 |
<property name="context" value="metacat" />
|
|
62 |
<property name="user" value="metacat"/>
|
|
63 |
<property name="password" value="your-pw-goes-here"/>
|
|
64 |
<property name="server" value="knb.ecoinformatics.org"/>
|
|
65 |
<property name="systemidserver" value="http://knb.ecoinformatics.org" />
|
|
66 |
<property name="datafilepath" value="/opt/tomcat/webapps/metacat/data" />
|
|
67 |
<property name="debuglevel" value="10" />
|
|
61 |
<property name="context" value="tao" />
|
|
62 |
<property name="user" value="tao"/>
|
|
63 |
<property name="password" value="tdataint"/>
|
|
64 |
<property name="server" value="dev.nceas.ucsb.edu"/>
|
|
65 |
<property name="systemidserver" value="http://dev.nceas.ucsb.edu" />
|
|
66 |
<property name="datafilepath" value="/opt/tomcat/data/tao/data" />
|
|
67 |
<property name="debuglevel" value="35" />
|
|
68 | 68 |
<property name="forcereplicationwaitingtime" value="30000"/> |
69 | 69 |
<property name="web-base-url" |
70 | 70 |
value="http://knb.ecoinformatics.org"/> |
Also available in: Unified diff
Revise some code.