2022-02-18 14:41:41 +01:00
|
|
|
package org.gcube.application.cms.plugins;
|
|
|
|
|
2022-03-04 11:30:11 +01:00
|
|
|
import org.gcube.application.cms.plugins.faults.InvalidPluginRequestException;
|
2022-02-18 14:41:41 +01:00
|
|
|
import org.gcube.application.cms.plugins.reports.IndexDocumentReport;
|
2022-03-11 18:11:32 +01:00
|
|
|
import org.gcube.application.cms.plugins.requests.BaseRequest;
|
2022-02-18 14:41:41 +01:00
|
|
|
import org.gcube.application.cms.plugins.requests.IndexDocumentRequest;
|
2022-03-11 18:11:32 +01:00
|
|
|
import org.gcube.application.geoportal.common.model.configuration.Index;
|
|
|
|
import org.gcube.application.geoportal.common.model.rest.ConfigurationException;
|
2022-02-18 14:41:41 +01:00
|
|
|
|
|
|
|
public interface IndexerPluginInterface extends InitializablePlugin{
|
|
|
|
|
2022-03-04 11:30:11 +01:00
|
|
|
public IndexDocumentReport index(IndexDocumentRequest request) throws InvalidPluginRequestException;
|
2022-03-29 18:06:09 +02:00
|
|
|
public IndexDocumentReport deindex(IndexDocumentRequest request) throws InvalidPluginRequestException;
|
2022-02-18 14:41:41 +01:00
|
|
|
|
2022-03-11 18:11:32 +01:00
|
|
|
public Index getIndex(BaseRequest request) throws ConfigurationException;
|
|
|
|
|
2022-03-29 18:06:09 +02:00
|
|
|
|
|
|
|
|
2022-02-18 14:41:41 +01:00
|
|
|
}
|