Class OrganizationDatabaseImpl

java.lang.Object
org.opencastproject.kernel.security.persistence.OrganizationDatabaseImpl
All Implemented Interfaces:
OrganizationDatabase

public class OrganizationDatabaseImpl extends Object implements OrganizationDatabase
Implements OrganizationDatabase. 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
    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.
    boolean
    Returns true if the given organization by its identifier is found or false if not
    int
    Counts all organizations in persistent storage
    void
    Removes an organization from persistent storage.
    org.opencastproject.security.api.Organization
    Gets a single organization by its identifier.
    org.opencastproject.security.api.Organization
    getOrganizationByHost(String host, int port)
    Gets a single organization by host and port.
    List<org.opencastproject.security.api.Organization>
    Returns all organizations in persistent storage.
    void
    setDBSessionFactory(org.opencastproject.db.DBSessionFactory dbSessionFactory)
     
    void
    setSecurityService(org.opencastproject.security.api.SecurityService securityService)
    OSGi callback to set the security service.
    void
    storeOrganization(org.opencastproject.security.api.Organization org)
    Stores (or updates) an organization.

    Methods inherited from class java.lang.Object

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