Class AdopterRegistrationServiceImpl

java.lang.Object
java.util.TimerTask
org.opencastproject.adopter.registration.AdopterRegistrationServiceImpl
All Implemented Interfaces:
Runnable

public class AdopterRegistrationServiceImpl extends TimerTask
It collects and sends statistic data of an registered adopter.
  • Field Details

    • userRefProvider

      protected UserProvider userRefProvider
      User and role provider
    • userProvider

      protected JpaUserAndRoleProvider userProvider
    • securityService

      protected SecurityService securityService
      The security service
    • emf

      protected javax.persistence.EntityManagerFactory emf
      The factory for creating the entity manager.
    • dbSessionFactory

      protected DBSessionFactory dbSessionFactory
    • db

      protected DBSession db
  • Constructor Details

    • AdopterRegistrationServiceImpl

      public AdopterRegistrationServiceImpl()
  • Method Details

    • setEntityManagerFactory

      public void setEntityManagerFactory(javax.persistence.EntityManagerFactory emf)
      OSGi setter for the entity manager factory.
    • setDBSessionFactory

      public void setDBSessionFactory(DBSessionFactory dbSessionFactory)
    • activate

      public void activate(org.osgi.framework.BundleContext ctx)
      Entry point of the scheduler. Configured with the activate parameter at OSGi component declaration.
      Parameters:
      ctx - OSGi component context
    • deactivate

      public void deactivate()
    • save

      public void save(Adopter adopter) throws AdopterRegistrationException
      Saves the submitted registration form.
      Parameters:
      adopter - The adopter registration form.
      Throws:
      AdopterRegistrationException
    • markForDeletion

      public void markForDeletion()
    • delete

      public void delete()
    • get

      Throws:
      AdopterRegistrationException
    • run

      public void run()
      The scheduled method. It collects statistic data around Opencast and sends it via POST request.
      Specified by:
      run in interface Runnable
      Specified by:
      run in class TimerTask
    • getRegistrationDataAsString

      public String getRegistrationDataAsString() throws Exception
      Throws:
      Exception
    • setServiceRegistry

      public void setServiceRegistry(ServiceRegistry serviceRegistry)
      OSGi setter for the service registry.
    • setCaptureAdminService

      public void setCaptureAdminService(CaptureAgentStateService stateService)
    • setAssetManager

      public void setAssetManager(AssetManager assetManager)
      OSGi setter for the asset manager.
    • setSeriesService

      public void setSeriesService(SeriesService seriesService)
      OSGi setter for the series service.
    • setSearchService

      public void setSearchService(SearchService searchService)
    • setUserRefProvider

      public void setUserRefProvider(JpaUserReferenceProvider userRefProvider)
      OSGi setter for the userref provider.
    • setUserAndRoleProvider

      public void setUserAndRoleProvider(JpaUserAndRoleProvider userProvider)
    • setSecurityService

      public void setSecurityService(SecurityService securityService)
      OSGi callback for setting the security service.
    • setOrganizationDirectoryService

      public void setOrganizationDirectoryService(OrganizationDirectoryService orgDirServ)
      OSGi callback for setting the org directory service.