org.apache.continuum.repository
Interface RepositoryService

All Known Implementing Classes:
DefaultRepositoryService

public interface RepositoryService

Since:
25 jul 07
Version:
$Id: RepositoryService.java 1372260 2012-08-13 04:29:09Z brett $
Author:
Maria Catherine Tan

Field Summary
static String ROLE
           
 
Method Summary
 LocalRepository addLocalRepository(LocalRepository repository)
          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 repository)
          Update the local repository
 

Field Detail

ROLE

static final String ROLE
Method Detail

addLocalRepository

LocalRepository addLocalRepository(LocalRepository repository)
                                   throws RepositoryServiceException
Add the local repository

Parameters:
repository - the local repository to add
Returns:
LocalRepository the local repository
Throws:
RepositoryServiceException

updateLocalRepository

void updateLocalRepository(LocalRepository repository)
                           throws RepositoryServiceException
Update the local repository

Parameters:
repository - the local repository to update
Throws:
RepositoryServiceException

removeLocalRepository

void removeLocalRepository(int repositoryId)
                           throws RepositoryServiceException
Remove the local repository

Parameters:
repositoryId - the id of the local repository to remove
Throws:
RepositoryServiceException

getAllLocalRepositories

List<LocalRepository> getAllLocalRepositories()
Retrieve all local repositories

Returns:
list of all local repositories

getLocalRepositoryByLocation

LocalRepository getLocalRepositoryByLocation(String location)
                                             throws RepositoryServiceException
Retrieve local repository

Parameters:
location - the system file path of the repository
Returns:
LocalRepository the local repository
Throws:
RepositoryServiceException

getLocalRepositoriesByLayout

List<LocalRepository> getLocalRepositoriesByLayout(String layout)
Retrieve list of local repositories with the specified layout

Parameters:
layout - the layout of the repository. "default" or "legacy"
Returns:
List of local repositories
Throws:
RepositoryServiceException

getLocalRepository

LocalRepository getLocalRepository(int repositoryId)
                                   throws RepositoryServiceException
Retrieve local repository

Parameters:
repositoryId - the id of the local repository
Returns:
LocalRepository the local repository
Throws:
RepositoryServiceException

getLocalRepositoryByName

LocalRepository getLocalRepositoryByName(String repositoryName)
                                         throws RepositoryServiceException
Retrieve local repository

Parameters:
repositoryName -
Returns:
Throws:
RepositoryServiceException


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.