Revision 35863
Added by Claudio Atzori about 9 years ago
AbstractIndexAction.java | ||
---|---|---|
6 | 6 |
import eu.dnetlib.data.provision.index.rmi.IndexServiceException; |
7 | 7 |
import eu.dnetlib.enabling.tools.blackboard.BlackboardJob; |
8 | 8 |
import eu.dnetlib.functionality.index.feed.FeedMode; |
9 |
import eu.dnetlib.functionality.index.utils.MetadataReference; |
|
9 | 10 |
import eu.dnetlib.functionality.index.utils.ServiceTools; |
10 |
import eu.dnetlib.functionality.index.utils.MetadataReference; |
|
11 | 11 |
|
12 | 12 |
/** |
13 | 13 |
* The Class AbstractIndexAction. |
... | ... | |
95 | 95 |
|
96 | 96 |
protected MetadataReference getMetadataReference(final BlackboardJob job) { |
97 | 97 |
|
98 |
String format = job.getParameters().get(BBParam.FORMAT); |
|
99 |
String layout = job.getParameters().get(BBParam.LAYOUT); |
|
100 |
String interpretation = job.getParameters().get(BBParam.INTERP); |
|
98 |
final String format = job.getParameters().get(BBParam.FORMAT);
|
|
99 |
final String layout = job.getParameters().get(BBParam.LAYOUT);
|
|
100 |
final String interpretation = job.getParameters().get(BBParam.INTERP);
|
|
101 | 101 |
|
102 | 102 |
return new MetadataReference(format, layout, interpretation); |
103 | 103 |
} |
... | ... | |
113 | 113 |
return job.getParameters().get(BBParam.BACKEND); |
114 | 114 |
} |
115 | 115 |
|
116 |
/** |
|
117 |
* Gets the query. |
|
118 |
* |
|
119 |
* @param job |
|
120 |
* the job |
|
121 |
* @return the query |
|
122 |
*/ |
|
123 |
protected String getQuery(final BlackboardJob job) { |
|
124 |
return job.getParameters().get(BBParam.QUERY); |
|
125 |
} |
|
126 |
|
|
116 | 127 |
} |
Also available in: Unified diff
added DELETE_BY_QUERY blackboard action