
public interface RepositoryManager extends TypeManager<Repository,RepositoryException>, ListenerSupport<RepositoryListener>, RepositoryBrowserProvider, RepositoryHookSupport, ChangesetViewerProvider, BlameViewerProvider, DiffViewerProvider
Repository objects.
This class is a singleton and is available via injection.| Modifier and Type | Method and Description |
|---|---|
Repository |
get(String type,
String name)
Returns a
Repository by its type and name or
null if the Repository could not be found. |
Collection<Type> |
getConfiguredTypes()
Returns all configured repository types.
|
Repository |
getFromRequest(HttpServletRequest request)
Returns the
Repository associated to the request uri. |
Repository |
getFromTypeAndUri(String type,
String uri)
Returns the
Repository associated to the given type and path. |
Repository |
getFromUri(String uri)
Returns the
Repository associated to the request uri. |
RepositoryHandler |
getHandler(String type)
Returns a
RepositoryHandler by the given type (hg, git, svn ...). |
void |
importRepository(Repository repository)
Imports an existing
Repository. |
getTypescreate, delete, modifygetLastModifiedaddListener, addListeners, removeListenergetRepositoryBrowseraddHook, addHooks, fireHookEvent, fireHookEvent, fireHookEvent, removeHookgetChangesetViewergetBlameViewergetDiffViewervoid importRepository(Repository repository) throws IOException, RepositoryException
Repository.
Note: This method should only be called from a RepositoryHandler.repository - Repository to importIOExceptionRepositoryExceptionRepository get(String type, String name)
Repository by its type and name or
null if the Repository could not be found.type - type of the Repositoryname - name of the RepositoryRepository by its type and name or null
if the Repository could not be foundCollection<Type> getConfiguredTypes()
Repository getFromRequest(HttpServletRequest request)
Repository associated to the request uri.request - the current http requestRepository getFromTypeAndUri(String type, String uri)
Repository associated to the given type and path.type - type of the repository (hg, git ...)uri - Repository associated to the given type and pathRepository getFromUri(String uri)
Repository associated to the request uri.uri - request uri without context pathRepositoryHandler getHandler(String type)
RepositoryHandler by the given type (hg, git, svn ...).getHandler in interface TypeManager<Repository,RepositoryException>type - the type of the RepositoryHandlerRepositoryHandler by the given typeCopyright © 2013. All Rights Reserved.