Class 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 Detail

      • DefaultAdminProvider

        public DefaultAdminProvider()
        Constructs a new DefaultAdminProvider
    • Method Detail

      • getAdmins

        public List<org.xmpp.packet.JID> getAdmins()
        The default provider retrieves the comma separated list from the system property admin.authorizedJIDs
        Specified by:
        getAdmins in interface AdminProvider
        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 property admin.authorizedJIDs
        Specified by:
        setAdmins in interface AdminProvider
        Parameters:
        admins - List of JIDs of accounts to grant admin access to.
        See Also:
        AdminProvider.setAdmins(java.util.List)