Interface ContentServicesClient

  • All Superinterfaces:
    AutoCloseable, Closeable

    public interface ContentServicesClient
    extends Closeable
    A client object providing access to key iKnowBase engine components for a connected user. 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. This object implements Closeable so that this can be done in a try-with-resources construction.
    • Method Detail

      • close

        void close()
        Closes the client, by cleaning up database state and connections.
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface Closeable
      • getUserReference

        UserReference getUserReference()
        Returns the UserReference of the currently connected user
        Returns:
        the UserReference of the currently connected user
      • getLanguageCode

        String getLanguageCode()
        Returns the iKnowBase language code for the connected user.
        Returns:
        the iKnowBase language code for the connected user
      • getContentServicesEngine

        ContentServicesEngine getContentServicesEngine()
        Returns the underlying ContentServicesEngine
        Returns:
        the underlying ContentServicesEngine
      • getJdbcOperations

        JdbcOperations getJdbcOperations()
        Returns a Spring JdbcOperations-object, connected to the iKnowBase repository and initialized as the current user.
        Returns:
        the JdbcOperations object