Package sonia.scm.repository
Class AbstractRepositoryRoleManager
java.lang.Object
sonia.scm.repository.AbstractRepositoryRoleManager
- All Implemented Interfaces:
Closeable,AutoCloseable,HandlerBase<RepositoryRole>,Initable,LastModifiedAware,Manager<RepositoryRole>,RepositoryRoleManager
Abstract base class for
RepositoryRoleManager implementations. This class
implements the listener methods of the RepositoryRoleManager interface.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfireEvent(HandlerEventType event, RepositoryRole repositoryRole) Creates a newRepositoryRoleEventand callsfireEvent(RepositoryRoleEvent).protected voidfireEvent(HandlerEventType event, RepositoryRole repositoryRole, RepositoryRole oldRepositoryRole) Send aRepositoryRoleEventto theScmEventBus.protected voidfireEvent(RepositoryRoleEvent event) Send aRepositoryRoleEventto theScmEventBus.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
getLastModified
-
Constructor Details
-
AbstractRepositoryRoleManager
public AbstractRepositoryRoleManager()
-
-
Method Details
-
fireEvent
protected void fireEvent(HandlerEventType event, RepositoryRole repositoryRole, RepositoryRole oldRepositoryRole) Send aRepositoryRoleEventto theScmEventBus.- Parameters:
event- type of change eventrepositoryRole- repositoryRole that has changedoldRepositoryRole- old repositoryRole
-
fireEvent
Creates a newRepositoryRoleEventand callsfireEvent(RepositoryRoleEvent).- Parameters:
repositoryRole- repositoryRole that has changedevent- type of change event
-
fireEvent
Send aRepositoryRoleEventto theScmEventBus.- Parameters:
event- repositoryRole event- Since:
- 1.48
-