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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Closes the client, by cleaning up database state and connections.ContentServicesEngine
getContentServicesEngine()
Returns the underlying ContentServicesEngineJdbcOperations
getJdbcOperations()
Returns a Spring JdbcOperations-object, connected to the iKnowBase repository and initialized as the current user.String
getLanguageCode()
Returns the iKnowBase language code for the connected user.UserReference
getUserReference()
Returns the UserReference of the currently connected user
-
-
-
Method Detail
-
close
void close()
Closes the client, by cleaning up database state and connections.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
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
-
-