org.apache.continuum.repository
Class DefaultRepositoryService

java.lang.Object
  extended by org.apache.continuum.repository.DefaultRepositoryService
All Implemented Interfaces:
RepositoryService

public class DefaultRepositoryService
extends Object
implements RepositoryService

DefaultRepositoryService

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

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

DefaultRepositoryService

public DefaultRepositoryService()
Method Detail

addLocalRepository

public LocalRepository addLocalRepository(LocalRepository localRepository)
                                   throws RepositoryServiceException
Description copied from interface: RepositoryService
Add the local repository

Specified by:
addLocalRepository in interface RepositoryService
Parameters:
localRepository - the local repository to add
Returns:
LocalRepository the local repository
Throws:
RepositoryServiceException

removeLocalRepository

public void removeLocalRepository(int repositoryId)
                           throws RepositoryServiceException
Description copied from interface: RepositoryService
Remove the local repository

Specified by:
removeLocalRepository in interface RepositoryService
Parameters:
repositoryId - the id of the local repository to remove
Throws:
RepositoryServiceException

updateLocalRepository

public void updateLocalRepository(LocalRepository localRepository)
                           throws RepositoryServiceException
Description copied from interface: RepositoryService
Update the local repository

Specified by:
updateLocalRepository in interface RepositoryService
Parameters:
localRepository - the local repository to update
Throws:
RepositoryServiceException

getAllLocalRepositories

public List<LocalRepository> getAllLocalRepositories()
Description copied from interface: RepositoryService
Retrieve all local repositories

Specified by:
getAllLocalRepositories in interface RepositoryService
Returns:
list of all local repositories

getLocalRepositoriesByLayout

public List<LocalRepository> getLocalRepositoriesByLayout(String layout)
Description copied from interface: RepositoryService
Retrieve list of local repositories with the specified layout

Specified by:
getLocalRepositoriesByLayout in interface RepositoryService
Parameters:
layout - the layout of the repository. "default" or "legacy"
Returns:
List of local repositories

getLocalRepositoryByLocation

public LocalRepository getLocalRepositoryByLocation(String location)
                                             throws RepositoryServiceException
Description copied from interface: RepositoryService
Retrieve local repository

Specified by:
getLocalRepositoryByLocation in interface RepositoryService
Parameters:
location - the system file path of the repository
Returns:
LocalRepository the local repository
Throws:
RepositoryServiceException

getLocalRepository

public LocalRepository getLocalRepository(int repositoryId)
                                   throws RepositoryServiceException
Description copied from interface: RepositoryService
Retrieve local repository

Specified by:
getLocalRepository in interface RepositoryService
Parameters:
repositoryId - the id of the local repository
Returns:
LocalRepository the local repository
Throws:
RepositoryServiceException

getLocalRepositoryByName

public LocalRepository getLocalRepositoryByName(String repositoryName)
                                         throws RepositoryServiceException
Description copied from interface: RepositoryService
Retrieve local repository

Specified by:
getLocalRepositoryByName in interface RepositoryService
Returns:
Throws:
RepositoryServiceException


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