Package sonia.scm.group
Class AbstractGroupManager
java.lang.Object
sonia.scm.group.AbstractGroupManager
- All Implemented Interfaces:
Closeable
,AutoCloseable
,GroupManager
,HandlerBase<Group>
,Initable
,LastModifiedAware
,Manager<Group>
,Searchable<Group>
Abstract base class for
GroupManager
implementations. This class
implements the listener methods of the GroupManager
interface.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
fireEvent
(GroupEvent event) Sends aGroupEvent
to theScmEventBus
.protected void
fireEvent
(HandlerEventType event, Group group) Creates aGroupEvent
and send it to theScmEventBus
.protected void
fireEvent
(HandlerEventType event, Group group, Group oldGroup) Creates aGroupModificationEvent
and send it to theScmEventBus
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface sonia.scm.group.GroupManager
getAllNames, getGroupsForMember
Methods inherited from interface sonia.scm.HandlerBase
create, delete, modify
Methods inherited from interface sonia.scm.LastModifiedAware
getLastModified
Methods inherited from interface sonia.scm.Manager
get, getAll, getAll, getAll, getAll, getAll, getPage, refresh
Methods inherited from interface sonia.scm.search.Searchable
search
-
Constructor Details
-
AbstractGroupManager
public AbstractGroupManager()
-
-
Method Details
-
fireEvent
Creates aGroupEvent
and send it to theScmEventBus
.- Parameters:
event
- type of change eventgroup
- group that has changed
-
fireEvent
Creates aGroupModificationEvent
and send it to theScmEventBus
.- Parameters:
event
- type of change eventgroup
- group that has changedoldGroup
- old group
-
fireEvent
Sends aGroupEvent
to theScmEventBus
.- Parameters:
event
- group event
-