Package sonia.scm.repository
Class RepositoryManagerDecorator
- All Implemented Interfaces:
Closeable,AutoCloseable,HandlerBase<Repository>,Initable,LastModifiedAware,Manager<Repository>,RepositoryManager,TypeManager<Repository,RepositoryHandler>
public class RepositoryManagerDecorator
extends ManagerDecorator<Repository>
implements RepositoryManager
Decorator for
RepositoryManager.- Since:
- 1.23
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidarchive(Repository repository) Archives the given repository.voidfireHookEvent(RepositoryHookEvent event) FireRepositoryHookEventto the event bus.get(NamespaceAndName namespaceAndName) Returns aRepositoryby its namespace and name or null if theRepositorycould not be found.Returns all namespaces.Returns all configured repository types.Returns the decoratedRepositoryManager.getHandler(String type) Returns aRepositoryHandlerby the given type (hg, git, svn ...).getTypes()Returns aCollectionof all available and configured types.voidimportRepository(Repository repository) Imports an existingRepository.rename(Repository repository, String newNamespace, String newName) voidunarchive(Repository repository) Un-archives the given repository.Methods inherited from class sonia.scm.ManagerDecorator
close, create, delete, get, getAll, getAll, getAll, getAll, getLastModified, init, modify, refreshMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface sonia.scm.HandlerBase
create, delete, modifyMethods inherited from interface sonia.scm.LastModifiedAware
getLastModifiedMethods inherited from interface sonia.scm.Manager
get, getAll, getAll, getAll, getAll, getAll, getPage, refreshMethods inherited from interface sonia.scm.repository.RepositoryManager
create
-
Constructor Details
-
RepositoryManagerDecorator
-
-
Method Details
-
fireHookEvent
Description copied from interface:RepositoryManagerFireRepositoryHookEventto the event bus.- Specified by:
fireHookEventin interfaceRepositoryManager- Parameters:
event- hook event
-
importRepository
Description copied from interface:RepositoryManagerImports an existingRepository. Note: This method should only be called from aRepositoryHandler.- Specified by:
importRepositoryin interfaceRepositoryManager- Parameters:
repository-Repositoryto import- Throws:
IOException
-
get
Description copied from interface:RepositoryManagerReturns aRepositoryby its namespace and name or null if theRepositorycould not be found.- Specified by:
getin interfaceRepositoryManager- Parameters:
namespaceAndName- namespace and name of theRepository- Returns:
Repositoryby its namespace and name or null if theRepositorycould not be found
-
getConfiguredTypes
Description copied from interface:RepositoryManagerReturns all configured repository types.- Specified by:
getConfiguredTypesin interfaceRepositoryManager
-
getDecorated
Returns the decoratedRepositoryManager.- Returns:
- decorated
RepositoryManager - Since:
- 1.34
-
getHandler
Description copied from interface:RepositoryManagerReturns aRepositoryHandlerby the given type (hg, git, svn ...).- Specified by:
getHandlerin interfaceRepositoryManager- Specified by:
getHandlerin interfaceTypeManager<Repository,RepositoryHandler> - Parameters:
type- the type of theRepositoryHandler- Returns:
RepositoryHandlerby the given type
-
getTypes
Description copied from interface:TypeManagerReturns aCollectionof all available and configured types.- Specified by:
getTypesin interfaceTypeManager<Repository,RepositoryHandler>
-
rename
- Specified by:
renamein interfaceRepositoryManager- Parameters:
repository- the repositoryRepositorynewNamespace- the new repository namespacenewName- the new repository name- Returns:
Repositorythe renamed repository
-
getAllNamespaces
Description copied from interface:RepositoryManagerReturns all namespaces.- Specified by:
getAllNamespacesin interfaceRepositoryManager
-
archive
Description copied from interface:RepositoryManagerArchives the given repository.- Specified by:
archivein interfaceRepositoryManager
-
unarchive
Description copied from interface:RepositoryManagerUn-archives the given repository.- Specified by:
unarchivein interfaceRepositoryManager
-