updated "flagInternalIndex" read
This commit is contained in:
parent
18458b99f6
commit
374544a28a
|
@ -95,6 +95,8 @@ public class SDIIndexerPlugin extends SDIAbstractPlugin implements IndexerPlugin
|
|||
UseCaseDescriptor useCaseDescriptor = request.getUseCaseDescriptor();
|
||||
Document requestArguments = request.getCallParameters();
|
||||
|
||||
log.debug("requestArguments is {} ", requestArguments);
|
||||
|
||||
IndexDocumentReport report = new IndexDocumentReport(request);
|
||||
|
||||
try {
|
||||
|
@ -116,7 +118,7 @@ public class SDIIndexerPlugin extends SDIAbstractPlugin implements IndexerPlugin
|
|||
centroidDoc.put(DBConstants.Defaults.PROJECT_ID, project.getId());
|
||||
centroidDoc.put(DBConstants.Defaults.DISPLAYED, true);
|
||||
|
||||
boolean isInternalIndex = false;
|
||||
Boolean isInternalIndex = null;
|
||||
try {
|
||||
isInternalIndex = requestArguments.getBoolean("flagInternalIndex");
|
||||
log.debug("flagInternalIndex read as {} ", isInternalIndex);
|
||||
|
@ -125,11 +127,13 @@ public class SDIIndexerPlugin extends SDIAbstractPlugin implements IndexerPlugin
|
|||
}
|
||||
log.info("flagInternalIndex is {} ", isInternalIndex);
|
||||
|
||||
if (isInternalIndex != null) {
|
||||
try {
|
||||
log.debug("Trying to generate Geoportal Gis Link...");
|
||||
// Contacting the Geoportal-Resolver via UriResolverManager
|
||||
UriResolverManager uriResolverManager = new UriResolverManager("GEO");
|
||||
GeoportalResolverQueryStringBuilder builder = new GeoportalResolverQueryStringBuilder(project.getProfileID(),project.getId());
|
||||
GeoportalResolverQueryStringBuilder builder = new GeoportalResolverQueryStringBuilder(
|
||||
project.getProfileID(), project.getId());
|
||||
builder.scope(request.getContext().getId());
|
||||
|
||||
if (isInternalIndex) {
|
||||
|
@ -144,7 +148,7 @@ public class SDIIndexerPlugin extends SDIAbstractPlugin implements IndexerPlugin
|
|||
} catch (Exception e) {
|
||||
log.error("Error on creating the Geoportal GisViewer link for project id {}", project.getId(), e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// ********************** EVALAUTE POSITION
|
||||
log.debug("indexing UseCaseDescriptor {} : Evaluating Centroid... ", useCaseDescriptor.getId());
|
||||
|
|
Loading…
Reference in New Issue