|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.continuum.repository.DefaultRepositoryService
public class DefaultRepositoryService
DefaultRepositoryService
Field Summary |
---|
Fields inherited from interface org.apache.continuum.repository.RepositoryService |
---|
ROLE |
Constructor Summary | |
---|---|
DefaultRepositoryService()
|
Method Summary | |
---|---|
LocalRepository |
addLocalRepository(LocalRepository localRepository)
Add the local repository |
List<LocalRepository> |
getAllLocalRepositories()
Retrieve all local repositories |
List<LocalRepository> |
getLocalRepositoriesByLayout(String layout)
Retrieve list of local repositories with the specified layout |
LocalRepository |
getLocalRepository(int repositoryId)
Retrieve local repository |
LocalRepository |
getLocalRepositoryByLocation(String location)
Retrieve local repository |
LocalRepository |
getLocalRepositoryByName(String repositoryName)
Retrieve local repository |
void |
removeLocalRepository(int repositoryId)
Remove the local repository |
void |
updateLocalRepository(LocalRepository localRepository)
Update the local repository |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultRepositoryService()
Method Detail |
---|
public LocalRepository addLocalRepository(LocalRepository localRepository) throws RepositoryServiceException
RepositoryService
addLocalRepository
in interface RepositoryService
localRepository
- the local repository to add
RepositoryServiceException
public void removeLocalRepository(int repositoryId) throws RepositoryServiceException
RepositoryService
removeLocalRepository
in interface RepositoryService
repositoryId
- the id of the local repository to remove
RepositoryServiceException
public void updateLocalRepository(LocalRepository localRepository) throws RepositoryServiceException
RepositoryService
updateLocalRepository
in interface RepositoryService
localRepository
- the local repository to update
RepositoryServiceException
public List<LocalRepository> getAllLocalRepositories()
RepositoryService
getAllLocalRepositories
in interface RepositoryService
public List<LocalRepository> getLocalRepositoriesByLayout(String layout)
RepositoryService
getLocalRepositoriesByLayout
in interface RepositoryService
layout
- the layout of the repository. "default" or "legacy"
public LocalRepository getLocalRepositoryByLocation(String location) throws RepositoryServiceException
RepositoryService
getLocalRepositoryByLocation
in interface RepositoryService
location
- the system file path of the repository
RepositoryServiceException
public LocalRepository getLocalRepository(int repositoryId) throws RepositoryServiceException
RepositoryService
getLocalRepository
in interface RepositoryService
repositoryId
- the id of the local repository
RepositoryServiceException
public LocalRepository getLocalRepositoryByName(String repositoryName) throws RepositoryServiceException
RepositoryService
getLocalRepositoryByName
in interface RepositoryService
RepositoryServiceException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |