Revision 7128
Added by ben leinfelder about 12 years ago
DBSAXHandler.java | ||
---|---|---|
141 | 141 |
boolean startParseTriple = false; |
142 | 142 |
|
143 | 143 |
boolean hasTriple = false; |
144 |
|
|
145 |
protected boolean writeAccessRules = true; |
|
144 | 146 |
|
147 |
|
|
145 | 148 |
public static final String ECOGRID = "ecogrid://"; |
146 | 149 |
|
147 | 150 |
private Logger logMetacat = Logger.getLogger(DBSAXHandler.class); |
... | ... | |
212 | 215 |
*/ |
213 | 216 |
public DBSAXHandler(DBConnection conn, String action, String docid, |
214 | 217 |
String revision, String user, String[] groups, String pub, |
215 |
int serverCode, Date createDate, Date updateDate) |
|
218 |
int serverCode, Date createDate, Date updateDate, boolean writeAccessRules)
|
|
216 | 219 |
{ |
217 | 220 |
this(conn, createDate, updateDate); |
218 | 221 |
this.action = action; |
... | ... | |
222 | 225 |
this.groups = groups; |
223 | 226 |
this.pub = pub; |
224 | 227 |
this.serverCode = serverCode; |
228 |
this.writeAccessRules = writeAccessRules; |
|
225 | 229 |
} |
226 | 230 |
|
227 | 231 |
/** SAX Handler that receives notification of beginning of the document */ |
Also available in: Unified diff
add a parameter for optionally writing EML-embedded access control rules to the Metacat DB.
https://redmine.dataone.org/issues/2584
https://redmine.dataone.org/issues/2583