Package org.jivesoftware.openfire.admin
Class DefaultAdminProvider
- java.lang.Object
-
- org.jivesoftware.openfire.admin.DefaultAdminProvider
-
- All Implemented Interfaces:
AdminProvider
public class DefaultAdminProvider extends Object implements AdminProvider
Handles default management of admin users, which stores the list if accounts as a system property.- Author:
- Daniel Henninger
-
-
Constructor Summary
Constructors Constructor Description DefaultAdminProvider()
Constructs a new DefaultAdminProvider
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<org.xmpp.packet.JID>
getAdmins()
The default provider retrieves the comma separated list from the system propertyadmin.authorizedJIDs
boolean
isReadOnly()
The default provider is not read onlyvoid
setAdmins(List<org.xmpp.packet.JID> admins)
The default provider sets a comma separated list as the system propertyadmin.authorizedJIDs
-
-
-
Method Detail
-
getAdmins
public List<org.xmpp.packet.JID> getAdmins()
The default provider retrieves the comma separated list from the system propertyadmin.authorizedJIDs
- Specified by:
getAdmins
in interfaceAdminProvider
- Returns:
- The list of admin users.
- See Also:
AdminProvider.getAdmins()
-
setAdmins
public void setAdmins(List<org.xmpp.packet.JID> admins)
The default provider sets a comma separated list as the system propertyadmin.authorizedJIDs
- Specified by:
setAdmins
in interfaceAdminProvider
- Parameters:
admins
- List of JIDs of accounts to grant admin access to.- See Also:
AdminProvider.setAdmins(java.util.List)
-
isReadOnly
public boolean isReadOnly()
The default provider is not read only- Specified by:
isReadOnly
in interfaceAdminProvider
- Returns:
- True or false if the admin list can be edited.
- See Also:
AdminProvider.isReadOnly()
-
-