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 Details

    • persistence

      protected org.opencastproject.lifecyclemanagement.api.LifeCycleDatabaseService persistence
      Persistent storage
    • securityService

      protected org.opencastproject.security.api.SecurityService securityService
      The security service
    • authorizationService

      protected org.opencastproject.security.api.AuthorizationService authorizationService
      The 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

      public void activate(org.osgi.service.component.ComponentContext cc) throws Exception
      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:
      getLifeCyclePolicyById in interface org.opencastproject.lifecyclemanagement.api.LifeCycleService
      Throws:
      org.opencastproject.util.NotFoundException
      org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException
      org.opencastproject.security.api.UnauthorizedException
      See Also:
      • LifeCycleService.getLifeCyclePolicyById(String)
    • 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:
      getLifeCyclePolicyById in interface org.opencastproject.lifecyclemanagement.api.LifeCycleService
      Throws:
      org.opencastproject.util.NotFoundException
      org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException
      org.opencastproject.security.api.UnauthorizedException
      See Also:
      • LifeCycleService.getLifeCyclePolicyById(String)
    • getLifeCyclePoliciesTotal

      public long getLifeCyclePoliciesTotal() throws org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException
      Specified by:
      getLifeCyclePoliciesTotal in interface org.opencastproject.lifecyclemanagement.api.LifeCycleService
      Throws:
      org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException
      See Also:
      • LifeCycleService.getLifeCyclePoliciesTotal()
    • 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:
      getLifeCyclePolicies in interface org.opencastproject.lifecyclemanagement.api.LifeCycleService
      Throws:
      org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException
      See Also:
      • LifeCycleService.getLifeCyclePolicies(int, int, SortCriterion)
    • getActiveLifeCyclePolicies

      public List<org.opencastproject.lifecyclemanagement.api.LifeCyclePolicy> getActiveLifeCyclePolicies() throws org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException
      Specified by:
      getActiveLifeCyclePolicies in interface org.opencastproject.lifecyclemanagement.api.LifeCycleService
      Throws:
      org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException
      See Also:
      • LifeCycleService.getActiveLifeCyclePolicies()
    • 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:
      createLifeCyclePolicy in interface org.opencastproject.lifecyclemanagement.api.LifeCycleService
      Throws:
      org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException
      org.opencastproject.security.api.UnauthorizedException
      See Also:
      • LifeCycleService.createLifeCyclePolicy(LifeCyclePolicy)
    • 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:
      updateLifeCyclePolicy in interface org.opencastproject.lifecyclemanagement.api.LifeCycleService
      Throws:
      org.opencastproject.util.NotFoundException
      org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException
      org.opencastproject.security.api.UnauthorizedException
      IllegalArgumentException
      See Also:
      • LifeCycleService.updateLifeCyclePolicy(LifeCyclePolicy)
    • deleteLifeCyclePolicy

      public boolean deleteLifeCyclePolicy(String id) throws org.opencastproject.util.NotFoundException, org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException, org.opencastproject.security.api.UnauthorizedException
      Specified by:
      deleteLifeCyclePolicy in interface org.opencastproject.lifecyclemanagement.api.LifeCycleService
      Throws:
      org.opencastproject.util.NotFoundException
      org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException
      org.opencastproject.security.api.UnauthorizedException
      See Also:
      • LifeCycleService.deleteLifeCyclePolicy(String)
    • deleteAllLifeCyclePoliciesCreatedByConfig

      public void deleteAllLifeCyclePoliciesCreatedByConfig(String orgId) throws org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException
      Specified by:
      deleteAllLifeCyclePoliciesCreatedByConfig in interface org.opencastproject.lifecyclemanagement.api.LifeCycleService
      Throws:
      org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException
      See Also:
      • LifeCycleService.deleteLifeCyclePolicy(String)
    • getLifeCycleTaskById

      public org.opencastproject.lifecyclemanagement.api.LifeCycleTask getLifeCycleTaskById(String id) throws org.opencastproject.util.NotFoundException, org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException
      Specified by:
      getLifeCycleTaskById in interface org.opencastproject.lifecyclemanagement.api.LifeCycleService
      Throws:
      org.opencastproject.util.NotFoundException
      org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException
      See Also:
      • LifeCycleService.getLifeCycleTaskById(String)
    • getLifeCycleTaskByTargetId

      public org.opencastproject.lifecyclemanagement.api.LifeCycleTask getLifeCycleTaskByTargetId(String targetId) throws org.opencastproject.util.NotFoundException, org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException
      Specified by:
      getLifeCycleTaskByTargetId in interface org.opencastproject.lifecyclemanagement.api.LifeCycleService
      Throws:
      org.opencastproject.util.NotFoundException
      org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException
      See Also:
      • LifeCycleService.getLifeCycleTaskByTargetId(String)
    • getLifeCycleTasksWithStatus

      public List<org.opencastproject.lifecyclemanagement.api.LifeCycleTask> getLifeCycleTasksWithStatus(org.opencastproject.lifecyclemanagement.api.Status status) throws org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException
      Specified by:
      getLifeCycleTasksWithStatus in interface org.opencastproject.lifecyclemanagement.api.LifeCycleService
      Throws:
      org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException
      See Also:
      • LifeCycleService.getLifeCycleTasksWithStatus(Status)
    • createLifeCycleTask

      public org.opencastproject.lifecyclemanagement.api.LifeCycleTask createLifeCycleTask(org.opencastproject.lifecyclemanagement.api.LifeCycleTask task) throws org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException
      Specified by:
      createLifeCycleTask in interface org.opencastproject.lifecyclemanagement.api.LifeCycleService
      Throws:
      org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException
      See Also:
      • LifeCycleService.createLifeCycleTask(LifeCycleTask)
    • updateLifeCycleTask

      public boolean updateLifeCycleTask(org.opencastproject.lifecyclemanagement.api.LifeCycleTask task) throws org.opencastproject.util.NotFoundException, org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException, IllegalArgumentException
      Specified by:
      updateLifeCycleTask in interface org.opencastproject.lifecyclemanagement.api.LifeCycleService
      Throws:
      org.opencastproject.util.NotFoundException
      org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException
      IllegalArgumentException
      See Also:
      • LifeCycleService.updateLifeCycleTask(LifeCycleTask)
    • deleteLifeCycleTask

      public boolean deleteLifeCycleTask(String id) throws org.opencastproject.util.NotFoundException, org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException
      Specified by:
      deleteLifeCycleTask in interface org.opencastproject.lifecyclemanagement.api.LifeCycleService
      Throws:
      org.opencastproject.util.NotFoundException
      org.opencastproject.lifecyclemanagement.api.LifeCycleServiceException
      See Also:
      • LifeCycleService.deleteLifeCycleTask(String)
    • checkValidity

      public boolean checkValidity(org.opencastproject.lifecyclemanagement.api.LifeCyclePolicy policy)
      Specified by:
      checkValidity in interface org.opencastproject.lifecyclemanagement.api.LifeCycleService
      See Also:
      • LifeCycleService.checkValidity(LifeCyclePolicy)
    • filterForEvents

      public 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) throws org.opencastproject.opensearch.api.SearchIndexException, org.opencastproject.util.NotFoundException
      Specified by:
      filterForEvents in interface org.opencastproject.lifecyclemanagement.api.LifeCycleService
      Throws:
      org.opencastproject.opensearch.api.SearchIndexException
      org.opencastproject.util.NotFoundException
      See Also:
      • LifeCycleService.filterForEvents(Map, int, int)
    • filterForEvents

      public List<org.opencastproject.opensearch.index.objects.event.Event> filterForEvents(Map<String,Map<String,org.opencastproject.opensearch.index.objects.event.EventSearchQueryField<String>>> filters) throws org.opencastproject.opensearch.api.SearchIndexException, org.opencastproject.util.NotFoundException
      Specified by:
      filterForEvents in interface org.opencastproject.lifecyclemanagement.api.LifeCycleService
      Throws:
      org.opencastproject.opensearch.api.SearchIndexException
      org.opencastproject.util.NotFoundException
      See Also:
      • LifeCycleService.filterForEvents(Map)