Interface ContentServicesEngine


  • public interface ContentServicesEngine
    The main engine object for iKnowBase ContentServices, holding all services available to the users.
    • Method Detail

      • getDataSource

        DataSource getDataSource()
        Returns the underlying DataSource.
        Returns:
        the underlying DataSource
      • getJdbcOperations

        JdbcOperations getJdbcOperations()
        Returns a Spring JdbcOperations-object, connected to the iKnowBase repository. Note that the connection is NOT initialized as the current user.
        Returns:
        the JdbcOperations object
        See Also:
        ContentServicesClient.getJdbcOperations()
      • getDocumentService

        DocumentService getDocumentService()
        Returns the DocumentService object.
        Returns:
        the DocumentService object
      • getContentQueryService

        ContentQueryService getContentQueryService()
        Returns a ContentQueryService.
        Returns:
        a ContentQueryService
      • getDimensionQueryService

        DimensionQueryService getDimensionQueryService()
        Returns a DimensionQueryService.
        Returns:
        a DimensionQueryService
      • createClient

        ContentServicesClient createClient​(String username)
        Creates a new ContentServicesClient for a given username. Note that it is essential that the program that creates a ContentServicesClient also calls close() when it is done with the object, to avoid leaking database connections and database state. ContentServicesClient implements Closeable so that this can be done in a try-with-resources construction.
        Parameters:
        username - the username that the client shall use for its operations.
        Returns:
        a new ContentServicesClient