Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

One of the changes in version 4 of Pentaho Data Integration is the introduction of concept of service services for repositories. To support this new concept the repository API of PDI has changed a little bit. This document describes how you can creates these repository services and register them to repository. In addition this document also explains as to how you can dynamically change the UI based on the repository user is connected to

Changes to Repository API

...


One important item to note in this interface that it extends IRepositoryService. This is a marker interface which identifies this service to be a repository service. In a repository's implementation we instantiated the service implementation and register this service with repository.                                                               IAclManager aclImpl  = new AclManagerImpl();
                                                              

Code Block
java
java
titleRepositoryImpl.java

IAclManager aclImpl  = new AclManagerImpl();
registerRepositoryService(IAclManager.class, aclImpl);

...


RegisiterRepositoryService is a convenience method. All this is doing is adding the service interface and its implementation in a map. Once the services are registered you can the retrieve these service by calling getService method in the Repository API

...