public class IndexResource
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DS_NAME |
private IndexTaskService |
indexService |
static java.lang.String |
PATH |
private static java.lang.String |
SHOP_GUID |
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 |
createIndex(java.lang.String dsName,
UpdateSearch entity,
javax.ws.rs.core.UriInfo uriInfo)
Creates or replaces a search index for an entire store
|
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
|
public static final java.lang.String PATH
public static final java.lang.String DS_NAME
private static final java.lang.String SHOP_GUID
private final IndexTaskService indexService
@Inject public IndexResource(IndexTaskService indexService)
public javax.ws.rs.core.Response createIndex(java.lang.String dsName, UpdateSearch entity, @Context javax.ws.rs.core.UriInfo uriInfo)
dsName
- is the datasource name (i.e. epages6 Storename)entity
- contains additional index information, e.g. replication tokenuriInfo
- contains the current URI contextpublic 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