Search in sources :

Example 1 with IRepositoryService

use of org.pentaho.di.repository.IRepositoryService in project pentaho-kettle by pentaho.

the class KettleFileRepository method init.

@Override
public void init(RepositoryMeta repositoryMeta) {
    this.serviceMap = new HashMap<Class<? extends IRepositoryService>, IRepositoryService>();
    this.serviceList = new ArrayList<Class<? extends IRepositoryService>>();
    this.repositoryMeta = (KettleFileRepositoryMeta) repositoryMeta;
    this.securityProvider = new KettleFileRepositorySecurityProvider(repositoryMeta);
    this.serviceMap.put(RepositorySecurityProvider.class, securityProvider);
    this.serviceList.add(RepositorySecurityProvider.class);
    this.metaStore = null;
    this.log = new LogChannel(this);
}
Also used : LogChannel(org.pentaho.di.core.logging.LogChannel) IRepositoryService(org.pentaho.di.repository.IRepositoryService)

Example 2 with IRepositoryService

use of org.pentaho.di.repository.IRepositoryService in project pentaho-kettle by pentaho.

the class RepositorySessionTimeoutHandler method wrapRepositoryServiceWithTimeoutHandler.

IRepositoryService wrapRepositoryServiceWithTimeoutHandler(Class<? extends IRepositoryService> clazz) throws KettleException {
    IRepositoryService service = repository.getService(clazz);
    RepositoryServiceSessionTimeoutHandler timeoutHandler = new RepositoryServiceSessionTimeoutHandler(service, sessionTimeoutHandler);
    return wrapObjectWithTimeoutHandler(service, timeoutHandler);
}
Also used : IRepositoryService(org.pentaho.di.repository.IRepositoryService)

Aggregations

IRepositoryService (org.pentaho.di.repository.IRepositoryService)2 LogChannel (org.pentaho.di.core.logging.LogChannel)1