public class IndexResource
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private IndexTaskService |
indexService |
Constructor and Description |
---|
IndexResource(IndexTaskService indexService) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createIndex(java.lang.String dsName,
java.lang.String shopGUID,
UpdateSearch entity,
javax.ws.rs.core.UriInfo uriInfo)
Creates or replaces a search index
|
javax.ws.rs.core.Response |
deleteIndexContents(java.lang.String dsName,
java.lang.String shopGUID,
UpdateSearch entity,
javax.ws.rs.core.UriInfo uriInfo)
Deletes contents of a search index
|
javax.ws.rs.core.Response |
dropIndex(java.lang.String dsName,
java.lang.String shopGUID,
javax.ws.rs.core.UriInfo uriInfo)
Drops a search index
|
javax.ws.rs.core.Response |
updateIndexContents(java.lang.String dsName,
java.lang.String shopGUID,
UpdateSearch entity,
javax.ws.rs.core.UriInfo uriInfo)
Updates contents of a search index
|
private final IndexTaskService indexService
@Inject public IndexResource(IndexTaskService indexService)
public javax.ws.rs.core.Response createIndex(java.lang.String dsName, java.lang.String shopGUID, UpdateSearch entity, @Context javax.ws.rs.core.UriInfo uriInfo)
dsName
- is the datasource name (i.e. epages6 Storename).shopGUID
- is the GUID identifier of a shop.entity
- contains additional index information, e.g. replication token.uriInfo
- contains the current URI contextpublic javax.ws.rs.core.Response dropIndex(java.lang.String dsName, java.lang.String shopGUID, @Context javax.ws.rs.core.UriInfo uriInfo)
dsName
- is the datasource name. (i.e. epages6 Storename)shopGUID
- GUID identifier of shopuriInfo
- contains the current URI contextpublic javax.ws.rs.core.Response updateIndexContents(java.lang.String dsName, java.lang.String shopGUID, UpdateSearch entity, @Context javax.ws.rs.core.UriInfo uriInfo)
dsName
- is the datasource name. (i.e. epages6 Storename)shopGUID
- is the GUID identifier of a shop.entity
- contains additional index information, e.g. replication token, list of resources to update.uriInfo
- contains the current URI contextpublic javax.ws.rs.core.Response deleteIndexContents(java.lang.String dsName, java.lang.String shopGUID, UpdateSearch entity, @Context javax.ws.rs.core.UriInfo uriInfo)
dsName
- is the datasource name. (i.e. epages6 Storename)shopGUID
- is the GUID identifier of a shop.entity
- contains additional index information, e.g. replication token, list of resources to deleteuriInfo
- contains the current URI context