public interface GroupDatabase
Defines an interface for loading, persisting and storing wiki groups.
Modifier and Type Method Description
Group group)(Looks up and deletes a
Groupfrom the group database.
()Returns all wiki groups that are stored in the GroupDatabase as an array of Group objects.
Engine engine, java.util.Properties props)(Initializes the group database based on values from a Properties object.
Group group, java.security.Principal modifier)(Saves a Group to the group database.
initializevoid initialize(Engine engine, java.util.Properties props) throws NoRequiredPropertyException, WikiSecurityExceptionInitializes the group database based on values from a Properties object.
groupsReturns all wiki groups that are stored in the GroupDatabase as an array of Group objects. If the database does not contain any groups, this method will return a zero-length array. This method causes back-end storage to load the entire set of group; thus, it should be called infrequently (e.g., at initialization time). Note that this method should use the protected constructor
Group(String, String)rather than the various "parse" methods (
GroupManager.parseGroup(String, String, boolean)) to construct the group. This is so as not to flood GroupManager's event queue with spurious events.
- the wiki groups
WikiSecurityException- if the groups cannot be returned by the back-end