@Path(value="product/{dsName}")
public final 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,
GUID shopGUID,
UpdateSearch entity)
Creates or replaces the search index for a shop of a store.
|
javax.ws.rs.core.Response |
createIndex(java.lang.String dsName,
UpdateSearch entity)
Creates or replaces the search indices for shops of the same store.
|
javax.ws.rs.core.Response |
deleteIndexContents(java.lang.String dsName,
GUID shopGUID,
UpdateSearch entity)
Deletes contents of a search index
|
javax.ws.rs.core.Response |
dropIndex(java.lang.String dsName,
GUID shopGUID)
Drops a search index
|
javax.ws.rs.core.Response |
updateIndexContents(java.lang.String dsName,
GUID shopGUID,
UpdateSearch entity)
Updates contents of a search index
|
private final IndexTaskService indexService
@Inject public IndexResource(IndexTaskService indexService)
@POST @Consumes(value={"application/json","application/xml"}) @Produces(value={"application/json","application/xml"}) public javax.ws.rs.core.Response createIndex(@PathParam(value="dsName") java.lang.String dsName, UpdateSearch entity)
dsName
- is the datasource name (i.e. epages6 Storename)entity
- contains additional index information, e.g. replication token@POST @Path(value="{shopGUID}") @Consumes(value={"application/json","application/xml"}) @Produces(value={"application/json","application/xml"}) public javax.ws.rs.core.Response createIndex(@PathParam(value="dsName") java.lang.String dsName, @PathParam(value="shopGUID") GUID shopGUID, UpdateSearch entity)
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.@DELETE @Path(value="{shopGUID}") @Produces(value={"application/json","application/xml"}) public javax.ws.rs.core.Response dropIndex(@PathParam(value="dsName") java.lang.String dsName, @PathParam(value="shopGUID") GUID shopGUID)
dsName
- is the datasource name. (i.e. epages6 Storename)shopGUID
- GUID identifier of shop@POST @Path(value="{shopGUID}/update") @Consumes(value={"application/json","application/xml"}) @Produces(value={"application/json","application/xml"}) public javax.ws.rs.core.Response updateIndexContents(@PathParam(value="dsName") java.lang.String dsName, @PathParam(value="shopGUID") GUID shopGUID, UpdateSearch entity)
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.@POST @Path(value="{shopGUID}/delete") @Consumes(value={"application/json","application/xml"}) @Produces(value={"application/json","application/xml"}) public javax.ws.rs.core.Response deleteIndexContents(@PathParam(value="dsName") java.lang.String dsName, @PathParam(value="shopGUID") GUID shopGUID, UpdateSearch entity)
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 delete