org.eclipse.stardust.engine.core.spi.dms
Interface IRepositoryInstance


public interface IRepositoryInstance

Represents a repository instance which was initialized by a IRepositoryProvider. A repository instance is uniquely identified by the repositoryId.

Via getService(UserContext) a repository service is retrieved which handles all operations on the repository.

Author:
Roland.Stamm

Method Summary
 void close(IRepositoryService repositoryService)
          The close method is invoked at the end of a service call and should be used to free resources reserved by IRepositoryService.
 String getPartitionId()
           
 String getProviderId()
           
 String getRepositoryId()
           
 IRepositoryInstanceInfo getRepositoryInstanceInfo()
           
 IRepositoryService getService(org.eclipse.stardust.engine.core.spi.dms.UserContext userContext)
          Retrieves a IRepositoryService which contains the methods for repository operations.
 

Method Detail

getRepositoryId

String getRepositoryId()
Returns:
the unique identified of this repository instance.

getProviderId

String getProviderId()
Returns:
the id of the provider this instance was created from.

getPartitionId

String getPartitionId()
Returns:
the partitionId which this repository instance belongs to.

getRepositoryInstanceInfo

IRepositoryInstanceInfo getRepositoryInstanceInfo()
Returns:
information about the instance including the IRepositoryCapabilities.

getService

IRepositoryService getService(org.eclipse.stardust.engine.core.spi.dms.UserContext userContext)
Retrieves a IRepositoryService which contains the methods for repository operations.

Parameters:
userContext - Allows to retrieve the user which requests a repository service instance and contains methods to bind the service to the user's lifecycle.
Returns:
an instance of the IRepositoryService.

close

void close(IRepositoryService repositoryService)
The close method is invoked at the end of a service call and should be used to free resources reserved by IRepositoryService.

Parameters:
repositoryService -


Copyright © 2017 Eclipse Stardust. All Rights Reserved.