Class RosterConfigManager

    • Method Detail

      • savePreferences

        public void savePreferences​(Profile profile)
        Description copied from interface: PreferencesManager
        Save the preferences that this provider manages for the provided Profile.
        Parameters:
        profile - the profile associated with the preferences to save; may be null to save preferences that apply to the current user regardless of profile
      • getRequires

        @Nonnull
        public java.util.Set<java.lang.Class<? extends PreferencesManager>> getRequires()
        Description copied from class: AbstractPreferencesManager
        Get the set of PreferencesManagers that must be initialized prior to initializing this PreferencesManager. It is generally preferable to require an Interface or an abstract Class instead of a concrete Class, since that allows all (or any) concrete implementations of the required class to be initialized to provide required services for the requiring PreferencesManager instance.

        Note that for any set of PreferencesManagers with the same requirements, or with a circular dependency between each other, the order in which the PreferencesManagers in that set are initialized should be considered non-deterministic.

        This implementation includes a default dependency on the ConnectionConfigManager.

        Specified by:
        getRequires in interface PreferencesManager
        Overrides:
        getRequires in class AbstractPreferencesManager
        Returns:
        An set of classes; if there are no dependencies, return an empty set instead of null; overriding implementations may add to this set directly
      • getDefaultOwner

        @Nonnull
        public java.lang.String getDefaultOwner()
        Get the default owner for the active profile.
        Returns:
        the default owner
      • getDefaultOwner

        @Nonnull
        public java.lang.String getDefaultOwner​(@CheckForNull
                                                Profile profile)
        Get the default owner for the specified profile.
        Parameters:
        profile - the profile to get the default owner for
        Returns:
        the default owner
      • setDefaultOwner

        public void setDefaultOwner​(@CheckForNull
                                    Profile profile,
                                    @CheckForNull
                                    java.lang.String defaultOwner)
        Set the default owner for the specified profile.
        Parameters:
        profile - the profile to set the default owner for
        defaultOwner - the default owner to set
      • getDirectory

        @Nonnull
        public java.lang.String getDirectory()
        Get the roster directory for the active profile.
        Returns:
        the directory
      • getDirectory

        @Nonnull
        public java.lang.String getDirectory​(@CheckForNull
                                             Profile profile)
        Get the roster directory for the specified profile.
        Parameters:
        profile - the profile to get the directory for
        Returns:
        the directory
      • setDirectory

        public void setDirectory​(@CheckForNull
                                 Profile profile,
                                 @CheckForNull
                                 java.lang.String directory)
        Set the roster directory for the specified profile.
        Parameters:
        profile - the profile to set the directory for
        directory - the directory to set
      • setRoster

        @Nonnull
        public Roster setRoster​(@CheckForNull
                                Profile profile,
                                @Nonnull
                                Roster roster)
        Set the roster for the profile.
        Parameters:
        profile - the profile to set the roster for
        roster - the roster for the profile
        Returns:
        the roster just set, so this method can be used in a chain