All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.nemerosa.ontrack.model.preferences.PreferencesService.kt Maven / Gradle / Ivy

There is a newer version: 4.4.5
Show newest version
package net.nemerosa.ontrack.model.preferences

import net.nemerosa.ontrack.model.security.Account

/**
 * Access to the preferences of users.
 */
interface PreferencesService {

    /**
     * Gets the preferences of the [account].
     *
     * @param account Account to get the preferences for
     * @return Account's preferences.
     */
    fun getPreferences(account: Account): Preferences

    /**
     * Sets the preferences of the [account].
     *
     * @param account Account to set the preferences for
     * @param preferences Account's preferences.
     */
    fun setPreferences(account: Account, preferences: Preferences)

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy