Class LifeCycleManagementEndpoint
java.lang.Object
org.opencastproject.external.endpoint.LifeCycleManagementEndpoint
@Path("/api/lifecyclemanagement")
@Produces({"application/json","application/v1.12.0+json"})
public class LifeCycleManagementEndpoint
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringBase URL of this endpointprotected org.opencastproject.index.service.api.IndexService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponsecreateAsJson(String acceptHeader, String title, String targetType, String action, String actionParameters, String actionDate, String cronTrigger, String timing, String targetFilters, String accessControlEntries) javax.ws.rs.core.ResponsegetActions(String acceptHeader) javax.ws.rs.core.ResponsegetPoliciesAsJson(String acceptHeader, int limit, int offset, String sort) javax.ws.rs.core.ResponsegetPoliciesForEvent(String acceptHeader, String eventId, int limit, int offset) javax.ws.rs.core.Responsejavax.ws.rs.core.ResponsegetTargetTypes(String acceptHeader) javax.ws.rs.core.ResponsegetTimings(String acceptHeader) javax.ws.rs.core.ResponsevoidsetIndexService(org.opencastproject.index.service.api.IndexService indexService) voidsetLifeCycleService(org.opencastproject.lifecyclemanagement.api.LifeCycleService lifeCycleService) javax.ws.rs.core.ResponseupdateAsJson(String acceptHeader, String id, String title, String targetType, String action, String actionParameters, String actionDate, String cronTrigger, String timing, String targetFilters, String accessControlEntries)
-
Field Details
-
endpointBaseUrl
Base URL of this endpoint -
indexService
protected org.opencastproject.index.service.api.IndexService indexService
-
-
Constructor Details
-
LifeCycleManagementEndpoint
public LifeCycleManagementEndpoint()
-
-
Method Details
-
setLifeCycleService
public void setLifeCycleService(org.opencastproject.lifecyclemanagement.api.LifeCycleService lifeCycleService) -
setIndexService
public void setIndexService(org.opencastproject.index.service.api.IndexService indexService) -
getPolicy
-
getPoliciesAsJson
@GET @Path("policies") public javax.ws.rs.core.Response getPoliciesAsJson(@HeaderParam("Accept") String acceptHeader, @QueryParam("limit") int limit, @QueryParam("offset") int offset, @QueryParam("sort") String sort) throws org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException - Throws:
org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException
-
getActions
@GET @Path("policies/actions") public javax.ws.rs.core.Response getActions(@HeaderParam("Accept") String acceptHeader) -
getTargetTypes
@GET @Path("policies/targettypes") public javax.ws.rs.core.Response getTargetTypes(@HeaderParam("Accept") String acceptHeader) -
getTimings
@GET @Path("policies/timings") public javax.ws.rs.core.Response getTimings(@HeaderParam("Accept") String acceptHeader) -
getPoliciesForEvent
@GET @Path("policiesForEvent/{eventId}") public javax.ws.rs.core.Response getPoliciesForEvent(@HeaderParam("Accept") String acceptHeader, @PathParam("eventId") String eventId, @QueryParam("limit") int limit, @QueryParam("offset") int offset) throws org.opencastproject.elasticsearch.api.SearchIndexException, org.opencastproject.util.NotFoundException, org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException - Throws:
org.opencastproject.elasticsearch.api.SearchIndexExceptionorg.opencastproject.util.NotFoundExceptionorg.opencastproject.lifecyclemanagement.api.LifeCycleServiceException
-
createAsJson
@POST @Path("policies") public javax.ws.rs.core.Response createAsJson(@HeaderParam("Accept") String acceptHeader, @FormParam("title") String title, @FormParam("targetType") String targetType, @FormParam("action") String action, @FormParam("actionParameters") String actionParameters, @FormParam("actionDate") String actionDate, @FormParam("cronTrigger") String cronTrigger, @FormParam("timing") String timing, @FormParam("targetFilters") String targetFilters, @FormParam("accessControlEntries") String accessControlEntries) -
updateAsJson
@PUT @Path("policies/{id}") public javax.ws.rs.core.Response updateAsJson(@HeaderParam("Accept") String acceptHeader, @PathParam("id") String id, @FormParam("title") String title, @FormParam("targetType") String targetType, @FormParam("action") String action, @FormParam("actionParameters") String actionParameters, @FormParam("actionDate") String actionDate, @FormParam("cronTrigger") String cronTrigger, @FormParam("timing") String timing, @FormParam("targetFilters") String targetFilters, @FormParam("accessControlEntries") String accessControlEntries) -
remove
-