Package sonia.scm.repository
Class AbstractRepositoryManager
java.lang.Object
sonia.scm.repository.AbstractRepositoryManager
- All Implemented Interfaces:
Closeable,AutoCloseable,HandlerBase<Repository>,Initable,LastModifiedAware,Manager<Repository>,RepositoryManager,TypeManager<Repository,RepositoryHandler>
Abstract base class for
RepositoryManager implementations. This class
implements the listener and hook methods of the RepositoryManager
interface.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfireEvent(HandlerEventType event, Repository repository) Send aRepositoryEventto theScmEventBus.protected voidfireEvent(HandlerEventType event, Repository repository, Repository oldRepository) Send aRepositoryEventto theScmEventBus.voidfireHookEvent(RepositoryHookEvent event) Sends theRepositoryHookEventto theScmEventBus.protected RepositoryHookEventPrepare a hook event before it is fired to the event system of SCM-Manager.Methods 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
archive, create, get, getAllNamespaces, getConfiguredTypes, getHandler, importRepository, rename, unarchiveMethods inherited from interface sonia.scm.TypeManager
getTypes
-
Constructor Details
-
AbstractRepositoryManager
public AbstractRepositoryManager()
-
-
Method Details
-
fireHookEvent
Sends theRepositoryHookEventto theScmEventBus.- Specified by:
fireHookEventin interfaceRepositoryManager- Parameters:
event- event to be fired
-
fireEvent
Send aRepositoryEventto theScmEventBus.- Parameters:
event- type of change eventrepository- repository that has changedoldRepository- old repository
-
fireEvent
Send aRepositoryEventto theScmEventBus.- Parameters:
event- type of change eventrepository- repository that has changed
-
prepareHookEvent
Prepare a hook event before it is fired to the event system of SCM-Manager.- Parameters:
event- hook event- Since:
- 1.26
-