/**
* done in the same way as the parameter initialisation in the constructor
* to avoid repeated code.
*/
private void getDefaultParameters() {
GenericConfiguration defaultparameters = null;
if (this.config != null) {
defaultparameters = (GenericConfiguration) this.config.get(DEFAULPARAMETERS_KEY);
}
if (defaultparameters != null) {
if (this.node_id == null) {
String defaultNode = defaultparameters.getString("node");
if (defaultNode != null) {
this.node_id = defaultNode.split("^");
}
}
if (contentid == null) {
contentid = defaultparameters.getString("contentid");
}
if (filter == null) {
filter = defaultparameters.getString("filter");
}
if (wordmatch == null) {
wordmatch = defaultparameters.getString("wm");
}
if (count == null) {
count = defaultparameters.getString("ps");
}
if (start == null && count != null) {
String numberOfPageStr = defaultparameters.getString("np");
calcStartFromCount(numberOfPageStr);
}
addAdvancedSearchParameters();
}
}