public interface RepositoryService
Modifier and Type | Method and Description |
---|---|
boolean |
canRemoveRepository(String repositoryName)
Indicates if repository with name repositoryName can be removed.
|
void |
createRepository(RepositoryEntry repositoryEntry)
Create new repository .
|
RepositoryServiceConfiguration |
getConfig()
Get repository service configuration.
|
ManageableRepository |
getCurrentRepository()
Get current repository.
|
ManageableRepository |
getDefaultRepository()
Get default repository.
|
ManageableRepository |
getRepository(String name)
Get repository by name.
|
void |
removeRepository(String repositoryName)
Remove repository with name repositoryName.
|
void |
removeRepository(String repositoryName,
boolean forceRemove)
Remove repository with name repositoryName.
|
void |
setCurrentRepositoryName(String repositoryName)
Set current repository name.
|
ManageableRepository getDefaultRepository() throws javax.jcr.RepositoryException, org.exoplatform.services.jcr.config.RepositoryConfigurationException
javax.jcr.RepositoryException
org.exoplatform.services.jcr.config.RepositoryConfigurationException
ManageableRepository getRepository(String name) throws javax.jcr.RepositoryException, org.exoplatform.services.jcr.config.RepositoryConfigurationException
name
- repository namejavax.jcr.RepositoryException
org.exoplatform.services.jcr.config.RepositoryConfigurationException
ManageableRepository getCurrentRepository() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
org.exoplatform.services.jcr.config.RepositoryConfigurationException
void setCurrentRepositoryName(String repositoryName) throws org.exoplatform.services.jcr.config.RepositoryConfigurationException
repositoryName
- repository nameorg.exoplatform.services.jcr.config.RepositoryConfigurationException
RepositoryServiceConfiguration getConfig()
void createRepository(RepositoryEntry repositoryEntry) throws org.exoplatform.services.jcr.config.RepositoryConfigurationException, javax.jcr.RepositoryException
repositoryEntry
- repository entryorg.exoplatform.services.jcr.config.RepositoryConfigurationException
javax.jcr.RepositoryException
void removeRepository(String repositoryName) throws javax.jcr.RepositoryException
repositoryName
- repository namejavax.jcr.RepositoryException
void removeRepository(String repositoryName, boolean forceRemove) throws javax.jcr.RepositoryException
repositoryName
- repository nameforceRemove
- will be closed without checking opened session on repository.javax.jcr.RepositoryException
boolean canRemoveRepository(String repositoryName) throws javax.jcr.RepositoryException
repositoryName
- repository namejavax.jcr.RepositoryException
Copyright © 2003-2017 eXo Platform SAS. All Rights Reserved.