Class UserPreferencesExtensionPoint

All Implemented Interfaces:
LogEnabled, ExtensionPoint<UserPreferenceProvider>, Disposable, Initializable, Component, Contextualizable, Serviceable, ThreadSafe

Extension point holding all UserPreference definitions.
  • Field Details

    • ROLE

      public static final String ROLE
      Avalon Role
  • Constructor Details

  • Method Details

    • getUserPreference

      public UserPreference getUserPreference(Map<String,String> contextVars, String name)
      Get the declared user preference with the given name.
      Parameters:
      contextVars - The context variables including environment elements
      name - The preference's name
      Returns:
      the user preference, or null if none has been found.
    • getUserPreferences

      Get all the declared user preferences.
      Parameters:
      contextVars - The context variables including environment elements
      Returns:
      the user preferences (read-only collection).
    • getUserPreferencesView

      public View getUserPreferencesView(Map<String,String> contextVars)
      Retrieves the view with all user preferences, classified by group and ordered.
      Parameters:
      contextVars - The context variables including environment elements
      Returns:
      the view with all user preferences, classified by group and ordered.
    • getUserPreferencesView

      public View getUserPreferencesView(boolean excludePrivate, Map<String,String> contextVars)
      Retrieves the view with all user preferences, classified by group and ordered.
      Parameters:
      excludePrivate - true to exclude private preferences from the view, false otherwise
      contextVars - The context variables including environment elements
      Returns:
      the view with all user preferences, classified by group and ordered.