Package org.jivesoftware.openfire.group
Class HybridGroupProvider
java.lang.Object
org.jivesoftware.openfire.group.GroupMultiProvider
org.jivesoftware.openfire.group.HybridGroupProvider
- All Implemented Interfaces:
GroupProvider
Delegate GroupProvider operations among up to three configurable provider implementation classes.
This class related to, but is distinct from
MappedGroupProvider. The Hybrid variant of the provider iterates
over providers, operating on the first applicable instance. The Mapped variant, however, maps each group to exactly
one provider.- Author:
- Guus der Kinderen, guus@goodbytes.nl
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SystemProperty<Class>static final SystemProperty<String>static final SystemProperty<Class>static final SystemProperty<String>static final SystemProperty<Class>static final SystemProperty<String> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.jivesoftware.openfire.group.GroupMultiProvider
addMember, createGroup, deleteGroup, deleteMember, getGroupCount, getGroupNames, getGroupNames, getGroupNames, getPublicSharedGroupNames, getSharedGroupNames, getSharedGroupNames, getVisibleGroupNames, instantiate, instantiate, isReadOnly, isSearchSupported, isSharingSupported, loadProperties, search, search, search, setDescription, setName, updateMember
-
Field Details
-
PRIMARY_PROVIDER
-
PRIMARY_PROVIDER_CONFIG
-
SECONDARY_PROVIDER
-
SECONDARY_PROVIDER_CONFIG
-
TERTIARY_PROVIDER
-
TERTIARY_PROVIDER_CONFIG
-
-
Constructor Details
-
HybridGroupProvider
public HybridGroupProvider()
-
-
Method Details
-
getGroup
Loads a group from the first provider that contains the group.- Specified by:
getGroupin interfaceGroupProvider- Overrides:
getGroupin classGroupMultiProvider- Parameters:
name- the name of the group (cannot be null or empty).- Returns:
- The group (never null).
- Throws:
GroupNotFoundException- When none of the providers contains the group.
-