Class SearchServiceDatabaseImpl

java.lang.Object
org.opencastproject.search.impl.persistence.SearchServiceDatabaseImpl
All Implemented Interfaces:
SearchServiceDatabase

public class SearchServiceDatabaseImpl extends Object implements SearchServiceDatabase
Implements SearchServiceDatabase. Defines permanent storage for series.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.opencastproject.db.DBSession
     
    protected org.opencastproject.db.DBSessionFactory
     
    protected javax.persistence.EntityManagerFactory
    Factory used to create EntityManagers for transactions
    static final String
    JPA persistence unit name
    protected org.opencastproject.security.api.SecurityService
    The security service
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    activate(org.osgi.service.component.ComponentContext cc)
    Creates EntityManagerFactory using persistence provider and properties passed via OSGi.
    int
    Returns the number of mediapackages in persistent storage, including deleted entries.
    void
    deleteMediaPackage(String mediaPackageId, Date deletionDate)
    Removes media package from persistent storage.
    org.opencastproject.security.api.AccessControlList
    getAccessControlList(String mediaPackageId)
    Retrieves ACL for episode with given ID.
    Collection<org.apache.commons.lang3.tuple.Pair<String,org.opencastproject.security.api.AccessControlList>>
    getAccessControlLists(String seriesId, String... excludeIds)
    Retrieves ACLs for series with given ID.
    Stream<org.opencastproject.util.data.Tuple<org.opencastproject.mediapackage.MediaPackage,String>>
    getAllMediaPackages(int pagesize, int offset)
    Returns all search entries in persistent storage.
    getDeletionDate(String mediaPackageId)
    Returns the deletion date from the selected media package.
    org.opencastproject.mediapackage.MediaPackage
    getMediaPackage(String mediaPackageId)
    Gets a single media package by its identifier.
    getModificationDate(String mediaPackageId)
    Returns the modification date from the selected media package.
    getOrganizationId(String mediaPackageId)
    Returns the organization id of the selected media package
    Collection<org.apache.commons.lang3.tuple.Pair<org.opencastproject.security.api.Organization,org.opencastproject.mediapackage.MediaPackage>>
    getSeries(String seriesId)
    Gets media packages from a specific series
    boolean
    isAvailable(String mediaPackageId)
    Checks if a mediapackage is available.
    void
    setDBSessionFactory(org.opencastproject.db.DBSessionFactory dbSessionFactory)
     
    void
    setEntityManagerFactory(javax.persistence.EntityManagerFactory emf)
    OSGi DI
    void
    setSecurityService(org.opencastproject.security.api.SecurityService securityService)
    OSGi callback to set the security service.
    void
    storeMediaPackage(org.opencastproject.mediapackage.MediaPackage mediaPackage, org.opencastproject.security.api.AccessControlList acl, Date now)
    Store (or update) media package.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait