Class LifeCycleServiceImpl
java.lang.Object
org.opencastproject.lifecyclemanagement.impl.LifeCycleServiceImpl
- All Implemented Interfaces:
org.opencastproject.lifecyclemanagement.api.LifeCycleService
public class LifeCycleServiceImpl
extends Object
implements org.opencastproject.lifecyclemanagement.api.LifeCycleService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.opencastproject.security.api.AuthorizationServiceThe authorization serviceprotected org.opencastproject.opensearch.index.OpenSearchIndexprotected org.opencastproject.index.service.api.IndexServiceprotected org.opencastproject.lifecyclemanagement.api.LifeCycleDatabaseServicePersistent storageprotected org.opencastproject.security.api.SecurityServiceThe security service -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(org.osgi.service.component.ComponentContext cc) booleancheckValidity(org.opencastproject.lifecyclemanagement.api.LifeCyclePolicy policy) org.opencastproject.lifecyclemanagement.api.LifeCyclePolicycreateLifeCyclePolicy(org.opencastproject.lifecyclemanagement.api.LifeCyclePolicy policy) org.opencastproject.lifecyclemanagement.api.LifeCycleTaskcreateLifeCycleTask(org.opencastproject.lifecyclemanagement.api.LifeCycleTask task) voidbooleanbooleanList<org.opencastproject.opensearch.index.objects.event.Event> filterForEvents(Map<String, Map<String, org.opencastproject.opensearch.index.objects.event.EventSearchQueryField<String>>> filters) List<org.opencastproject.opensearch.index.objects.event.Event> filterForEvents(Map<String, Map<String, org.opencastproject.opensearch.index.objects.event.EventSearchQueryField<String>>> filters, int limit, int offset) List<org.opencastproject.lifecyclemanagement.api.LifeCyclePolicy> List<org.opencastproject.lifecyclemanagement.api.LifeCyclePolicy> getLifeCyclePolicies(int limit, int offset, org.opencastproject.util.requests.SortCriterion sortCriterion) longorg.opencastproject.lifecyclemanagement.api.LifeCyclePolicyorg.opencastproject.lifecyclemanagement.api.LifeCyclePolicygetLifeCyclePolicyById(String id, String orgId) org.opencastproject.lifecyclemanagement.api.LifeCycleTaskorg.opencastproject.lifecyclemanagement.api.LifeCycleTaskgetLifeCycleTaskByTargetId(String targetId) List<org.opencastproject.lifecyclemanagement.api.LifeCycleTask> getLifeCycleTasksWithStatus(org.opencastproject.lifecyclemanagement.api.Status status) voidsetAuthorizationService(org.opencastproject.security.api.AuthorizationService authorizationService) voidsetIndexService(org.opencastproject.index.service.api.IndexService indexService) voidsetOpenSearchIndex(org.opencastproject.opensearch.index.OpenSearchIndex index) voidsetPersistence(org.opencastproject.lifecyclemanagement.api.LifeCycleDatabaseService persistence) voidsetSecurityService(org.opencastproject.security.api.SecurityService securityService) booleanupdateLifeCyclePolicy(org.opencastproject.lifecyclemanagement.api.LifeCyclePolicy policy) booleanupdateLifeCycleTask(org.opencastproject.lifecyclemanagement.api.LifeCycleTask task)
-
Field Details
-
persistence
protected org.opencastproject.lifecyclemanagement.api.LifeCycleDatabaseService persistencePersistent storage -
securityService
protected org.opencastproject.security.api.SecurityService securityServiceThe security service -
authorizationService
protected org.opencastproject.security.api.AuthorizationService authorizationServiceThe authorization service -
index
protected org.opencastproject.opensearch.index.OpenSearchIndex index -
indexService
protected org.opencastproject.index.service.api.IndexService indexService
-
-
Constructor Details
-
LifeCycleServiceImpl
public LifeCycleServiceImpl()
-
-
Method Details
-
setPersistence
public void setPersistence(org.opencastproject.lifecyclemanagement.api.LifeCycleDatabaseService persistence) -
setSecurityService
public void setSecurityService(org.opencastproject.security.api.SecurityService securityService) -
setAuthorizationService
public void setAuthorizationService(org.opencastproject.security.api.AuthorizationService authorizationService) -
setOpenSearchIndex
public void setOpenSearchIndex(org.opencastproject.opensearch.index.OpenSearchIndex index) -
setIndexService
public void setIndexService(org.opencastproject.index.service.api.IndexService indexService) -
activate
- Throws:
Exception
-
getLifeCyclePolicyById
public org.opencastproject.lifecyclemanagement.api.LifeCyclePolicy getLifeCyclePolicyById(String id) throws org.opencastproject.util.NotFoundException, org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException, org.opencastproject.security.api.UnauthorizedException - Specified by:
getLifeCyclePolicyByIdin interfaceorg.opencastproject.lifecyclemanagement.api.LifeCycleService- Throws:
org.opencastproject.util.NotFoundExceptionorg.opencastproject.lifecyclemanagement.api.LifeCycleServiceExceptionorg.opencastproject.security.api.UnauthorizedException- See Also:
-
getLifeCyclePolicyById
public org.opencastproject.lifecyclemanagement.api.LifeCyclePolicy getLifeCyclePolicyById(String id, String orgId) throws org.opencastproject.util.NotFoundException, org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException, org.opencastproject.security.api.UnauthorizedException - Specified by:
getLifeCyclePolicyByIdin interfaceorg.opencastproject.lifecyclemanagement.api.LifeCycleService- Throws:
org.opencastproject.util.NotFoundExceptionorg.opencastproject.lifecyclemanagement.api.LifeCycleServiceExceptionorg.opencastproject.security.api.UnauthorizedException- See Also:
-
getLifeCyclePoliciesTotal
public long getLifeCyclePoliciesTotal() throws org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException- Specified by:
getLifeCyclePoliciesTotalin interfaceorg.opencastproject.lifecyclemanagement.api.LifeCycleService- Throws:
org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException- See Also:
-
getLifeCyclePolicies
public List<org.opencastproject.lifecyclemanagement.api.LifeCyclePolicy> getLifeCyclePolicies(int limit, int offset, org.opencastproject.util.requests.SortCriterion sortCriterion) throws org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException - Specified by:
getLifeCyclePoliciesin interfaceorg.opencastproject.lifecyclemanagement.api.LifeCycleService- Throws:
org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException- See Also:
-
getActiveLifeCyclePolicies
public List<org.opencastproject.lifecyclemanagement.api.LifeCyclePolicy> getActiveLifeCyclePolicies() throws org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException- Specified by:
getActiveLifeCyclePoliciesin interfaceorg.opencastproject.lifecyclemanagement.api.LifeCycleService- Throws:
org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException- See Also:
-
createLifeCyclePolicy
public org.opencastproject.lifecyclemanagement.api.LifeCyclePolicy createLifeCyclePolicy(org.opencastproject.lifecyclemanagement.api.LifeCyclePolicy policy) throws org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException, org.opencastproject.security.api.UnauthorizedException - Specified by:
createLifeCyclePolicyin interfaceorg.opencastproject.lifecyclemanagement.api.LifeCycleService- Throws:
org.opencastproject.lifecyclemanagement.api.LifeCycleServiceExceptionorg.opencastproject.security.api.UnauthorizedException- See Also:
-
updateLifeCyclePolicy
public boolean updateLifeCyclePolicy(org.opencastproject.lifecyclemanagement.api.LifeCyclePolicy policy) throws org.opencastproject.util.NotFoundException, org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException, org.opencastproject.security.api.UnauthorizedException, IllegalArgumentException - Specified by:
updateLifeCyclePolicyin interfaceorg.opencastproject.lifecyclemanagement.api.LifeCycleService- Throws:
org.opencastproject.util.NotFoundExceptionorg.opencastproject.lifecyclemanagement.api.LifeCycleServiceExceptionorg.opencastproject.security.api.UnauthorizedExceptionIllegalArgumentException- See Also:
-
deleteLifeCyclePolicy
public boolean deleteLifeCyclePolicy(String id) throws org.opencastproject.util.NotFoundException, org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException, org.opencastproject.security.api.UnauthorizedException - Specified by:
deleteLifeCyclePolicyin interfaceorg.opencastproject.lifecyclemanagement.api.LifeCycleService- Throws:
org.opencastproject.util.NotFoundExceptionorg.opencastproject.lifecyclemanagement.api.LifeCycleServiceExceptionorg.opencastproject.security.api.UnauthorizedException- See Also:
-
deleteAllLifeCyclePoliciesCreatedByConfig
public void deleteAllLifeCyclePoliciesCreatedByConfig(String orgId) throws org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException - Specified by:
deleteAllLifeCyclePoliciesCreatedByConfigin interfaceorg.opencastproject.lifecyclemanagement.api.LifeCycleService- Throws:
org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException- See Also:
-
getLifeCycleTaskById
public org.opencastproject.lifecyclemanagement.api.LifeCycleTask getLifeCycleTaskById(String id) throws org.opencastproject.util.NotFoundException, org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException - Specified by:
getLifeCycleTaskByIdin interfaceorg.opencastproject.lifecyclemanagement.api.LifeCycleService- Throws:
org.opencastproject.util.NotFoundExceptionorg.opencastproject.lifecyclemanagement.api.LifeCycleServiceException- See Also:
-
getLifeCycleTaskByTargetId
public org.opencastproject.lifecyclemanagement.api.LifeCycleTask getLifeCycleTaskByTargetId(String targetId) throws org.opencastproject.util.NotFoundException, org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException - Specified by:
getLifeCycleTaskByTargetIdin interfaceorg.opencastproject.lifecyclemanagement.api.LifeCycleService- Throws:
org.opencastproject.util.NotFoundExceptionorg.opencastproject.lifecyclemanagement.api.LifeCycleServiceException- See Also:
-
getLifeCycleTasksWithStatus
public List<org.opencastproject.lifecyclemanagement.api.LifeCycleTask> getLifeCycleTasksWithStatus(org.opencastproject.lifecyclemanagement.api.Status status) throws org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException - Specified by:
getLifeCycleTasksWithStatusin interfaceorg.opencastproject.lifecyclemanagement.api.LifeCycleService- Throws:
org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException- See Also:
-
createLifeCycleTask
public org.opencastproject.lifecyclemanagement.api.LifeCycleTask createLifeCycleTask(org.opencastproject.lifecyclemanagement.api.LifeCycleTask task) throws org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException - Specified by:
createLifeCycleTaskin interfaceorg.opencastproject.lifecyclemanagement.api.LifeCycleService- Throws:
org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException- See Also:
-
updateLifeCycleTask
public boolean updateLifeCycleTask(org.opencastproject.lifecyclemanagement.api.LifeCycleTask task) throws org.opencastproject.util.NotFoundException, org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException, IllegalArgumentException - Specified by:
updateLifeCycleTaskin interfaceorg.opencastproject.lifecyclemanagement.api.LifeCycleService- Throws:
org.opencastproject.util.NotFoundExceptionorg.opencastproject.lifecyclemanagement.api.LifeCycleServiceExceptionIllegalArgumentException- See Also:
-
deleteLifeCycleTask
public boolean deleteLifeCycleTask(String id) throws org.opencastproject.util.NotFoundException, org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException - Specified by:
deleteLifeCycleTaskin interfaceorg.opencastproject.lifecyclemanagement.api.LifeCycleService- Throws:
org.opencastproject.util.NotFoundExceptionorg.opencastproject.lifecyclemanagement.api.LifeCycleServiceException- See Also:
-
checkValidity
public boolean checkValidity(org.opencastproject.lifecyclemanagement.api.LifeCyclePolicy policy) - Specified by:
checkValidityin interfaceorg.opencastproject.lifecyclemanagement.api.LifeCycleService- See Also:
-
filterForEvents
public List<org.opencastproject.opensearch.index.objects.event.Event> filterForEvents(Map<String, Map<String, throws org.opencastproject.opensearch.api.SearchIndexException, org.opencastproject.util.NotFoundExceptionorg.opencastproject.opensearch.index.objects.event.EventSearchQueryField<String>>> filters, int limit, int offset) - Specified by:
filterForEventsin interfaceorg.opencastproject.lifecyclemanagement.api.LifeCycleService- Throws:
org.opencastproject.opensearch.api.SearchIndexExceptionorg.opencastproject.util.NotFoundException- See Also:
-
filterForEvents
public List<org.opencastproject.opensearch.index.objects.event.Event> filterForEvents(Map<String, Map<String, throws org.opencastproject.opensearch.api.SearchIndexException, org.opencastproject.util.NotFoundExceptionorg.opencastproject.opensearch.index.objects.event.EventSearchQueryField<String>>> filters) - Specified by:
filterForEventsin interfaceorg.opencastproject.lifecyclemanagement.api.LifeCycleService- Throws:
org.opencastproject.opensearch.api.SearchIndexExceptionorg.opencastproject.util.NotFoundException- See Also:
-