Class ServiceSearchReindexResource
- java.lang.Object
-
- lumis.service.portalmanagement.servicesearchindex.ServiceSearchReindexResource
-
@Path("/lumis/service/portalmanagement/servicesearchindex") public class ServiceSearchReindexResource extends java.lang.Object
Rest class used to create a task to reindex services or service instances.- Since:
- 17.1.0
- Version:
- $Revision$ $Date$
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ServiceSearchReindexResource.QueueServiceInstancesTask
Object used to create a task to reindex a service instance.static class
ServiceSearchReindexResource.QueueServicesTask
Object used to create a task to reindex a service.
-
Constructor Summary
Constructors Constructor Description ServiceSearchReindexResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
processServiceInstances(java.lang.String jsonRequest)
Method used to create a task to reindex service instances.javax.ws.rs.core.Response
processServices(java.lang.String jsonRequest)
Method used to create a task to reindex services.
-
-
-
Method Detail
-
processServices
@Path("/services") @POST @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response processServices(java.lang.String jsonRequest) throws java.lang.Exception
Method used to create a task to reindex services. It receives a json object containing the list of service Ids to reindex.- Parameters:
jsonRequest
- a json containing the list of service Ids to reindex. Must have the following format:{"services": ["<serviceId1>", "<serviceId2>", ...]}
- Returns:
- a json object containing the task ids for each service. It has the following format:
{"<serviceId1>": "<taskid1>", "<serviceId2>": "<taskid2>", ...}
- Throws:
java.lang.Exception
- Since:
- 17.1.0
-
processServiceInstances
@Path("/serviceinstances") @POST @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response processServiceInstances(java.lang.String jsonRequest) throws java.lang.Exception
Method used to create a task to reindex service instances. It receives a json object containing the list of service instance Ids to reindex.- Parameters:
jsonRequest
- a json containing the list of service instance Ids to reindex. Must have the following format:{"service-instances": ["<serviceInstanceId1>", "<serviceInstanceId2>", ...]}
- Returns:
- a json object containing the task ids for each service instance. It has the following format:
{"<serviceInstanceId1>": "<taskid1>", "<serviceInstanceId2>": "<taskid2>", ...}
- Throws:
java.lang.Exception
- Since:
- 17.1.0
-
-