Project

General

Profile

« Previous | Next » 

Revision 38483

#1448 updated BB parameters for validation

View differences:

ValidatorServiceBlackboardJobNode.java
57 57

  
58 58
	/** True to ask the validator to generate the output EPR. **/
59 59
	private boolean shouldOutputRecords = false;
60
	/** True to ask the validator to update the blacklist. **/
61
	private boolean shouldUpdateBlacklist = true;
60 62

  
61 63
	@Resource
62 64
	private UniqueServiceLocator serviceLocator;
......
77 79
	 * <pre>
78 80
	 * <PARAMETER name="interfaceId" value=" "/>
79 81
	 * <PARAMETER name="mdstoreId" value=" "/>
80
	 * <PARAMETER name="guidelines" value="openaire3.0"/> //values: openaire3.0, openaire2.0, openaire2.0_data, driver
82
	 * <PARAMETER name="blacklistGuidelines" value="openaire3.0"/> //values: openaire3.0, openaire2.0, openaire2.0_data, driver
81 83
	 * <PARAMETER name="type" value="DNET"/>
82 84
	 * <PARAMETER name="datasourceID" value=""/>
83 85
	 * <PARAMETER name="datasourceNamespacePrefix" value=""/> //OPTIONAL
......
87 89
	 * <PARAMETER name="records" value="#records"/> //OPTIONAL
88 90
	 * <PARAMETER name="extraParams" value="json key-value map"/> //OPTIONAL
89 91
	 * <PARAMETER name="outputEpr" value="boolean"/> //TRUE to get the EPR of validated records. Default is false.
92
	 * <PARAMETER name="blacklistedRecords" value="true"/> //enables the feature to keep blacklisted records. Default is true.
90 93
	 * 
91 94
	 * </pre>
92 95
	 * 
......
109 112
		}
110 113
		job.getParameters().put("interfaceId", token.getFullEnv().getAttribute(interfaceIDEnvParam));
111 114
		job.getParameters().put("mdstoreId", mdstoreId);
112
		job.getParameters().put("guidelines", guidelines);
115
		job.getParameters().put("blacklistGuidelines", guidelines);
116
		job.getParameters().put("blacklistedRecords", isShouldUpdateBlacklist() + "");
113 117
		job.getParameters().put("type", VALIDATION_TYPE);
114 118

  
115 119
		job.getParameters().put("submissionDate", DateUtils.now_ISO8601());
......
366 370
		this.shouldOutputRecords = shouldOutputRecords;
367 371
	}
368 372

  
373
	public boolean isShouldUpdateBlacklist() {
374
		return shouldUpdateBlacklist;
375
	}
376

  
377
	public void setShouldUpdateBlacklist(final boolean shouldUpdateBlacklist) {
378
		this.shouldUpdateBlacklist = shouldUpdateBlacklist;
379
	}
380

  
369 381
	public String getInterfaceIDEnvParam() {
370 382
		return interfaceIDEnvParam;
371 383
	}

Also available in: Unified diff