Interface PreferenceBeanStore

  • All Known Subinterfaces:
    PreferenceBeanServerStore

    public interface PreferenceBeanStore
    Service to manage preference beans, with server-side and client-side implementations.
    • Method Detail

      • load

        <U extends BasePreference<U>,​T extends BasePreferencePortable<U>> void load​(T emptyPortablePreference,
                                                                                          org.uberfire.mvp.ParameterizedCommand<T> successCallback,
                                                                                          org.uberfire.mvp.ParameterizedCommand<Throwable> errorCallback)
        Loads all preference bean properties.
        Type Parameters:
        U - Preference bean type.
        T - Preference bean generated portable type.
        Parameters:
        emptyPortablePreference - Newly created portable instance for the preference bean.
        successCallback - Callback with a loaded preference bean portable instance as a parameter.
        errorCallback - Error callback that returns the exception that occurred (if any).
      • load

        <U extends BasePreference<U>,​T extends BasePreferencePortable<U>> void load​(T emptyPortablePreference,
                                                                                          PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo,
                                                                                          org.uberfire.mvp.ParameterizedCommand<T> successCallback,
                                                                                          org.uberfire.mvp.ParameterizedCommand<Throwable> errorCallback)
        Loads all preference bean properties, following the passed scope resolution strategy.
        Type Parameters:
        U - Preference bean type.
        T - Preference bean generated portable type.
        Parameters:
        emptyPortablePreference - Newly created portable instance for the preference bean.
        scopeResolutionStrategyInfo - Custom scope resolution strategy to follow.
        successCallback - Callback with a loaded preference bean portable instance as a parameter.
        errorCallback - Error callback that returns the exception that occurred (if any).
      • save

        <U extends BasePreference<U>,​T extends BasePreferencePortable<U>> void save​(T portablePreference,
                                                                                          org.uberfire.mvp.Command successCallback,
                                                                                          org.uberfire.mvp.ParameterizedCommand<Throwable> errorCallback)
        Saves all preference data.
        Type Parameters:
        U - Preference bean type.
        T - Preference bean generated portable type.
        Parameters:
        portablePreference - Preference instance to be saved.
        successCallback - Success callback that indicates that the preference was saved.
        errorCallback - Error callback that returns the exception that occurred (if any).
      • save

        <U extends BasePreference<U>,​T extends BasePreferencePortable<U>> void save​(T portablePreference,
                                                                                          PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo,
                                                                                          org.uberfire.mvp.Command successCallback,
                                                                                          org.uberfire.mvp.ParameterizedCommand<Throwable> errorCallback)
        Saves all preference data, following the passed scope resolution strategy.
        Type Parameters:
        U - Preference bean type.
        T - Preference bean generated portable type.
        Parameters:
        portablePreference - Preference instance to be saved.
        scopeResolutionStrategyInfo - Custom scope resolution strategy to follow.
        successCallback - Success callback that indicates that the preference was saved.
        errorCallback - Error callback that returns the exception that occurred (if any).
      • save

        <U extends BasePreference<U>,​T extends BasePreferencePortable<U>> void save​(T portablePreference,
                                                                                          PreferenceScope scope,
                                                                                          org.uberfire.mvp.Command successCallback,
                                                                                          org.uberfire.mvp.ParameterizedCommand<Throwable> errorCallback)
        Saves all preference data, following the passed scope resolution strategy.
        Type Parameters:
        U - Preference bean type.
        T - Preference bean generated portable type.
        Parameters:
        portablePreference - Preference instance to be saved.
        scope - Custom scope inside which the preference should be saved.
        successCallback - Success callback that indicates that the preference was saved.
        errorCallback - Error callback that returns the exception that occurred (if any).
      • save

        void save​(Collection<BasePreferencePortable<? extends BasePreference<?>>> portablePreferences,
                  org.uberfire.mvp.Command successCallback,
                  org.uberfire.mvp.ParameterizedCommand<Throwable> errorCallback)
        Saves all preferences passed.
        Parameters:
        portablePreferences - Preference instances to be saved.
        successCallback - Success callback that indicates that the preference was saved.
        errorCallback - Error callback that returns the exception that occurred (if any).
      • save

        void save​(Collection<BasePreferencePortable<? extends BasePreference<?>>> portablePreferences,
                  PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo,
                  org.uberfire.mvp.Command successCallback,
                  org.uberfire.mvp.ParameterizedCommand<Throwable> errorCallback)
        Saves all preferences passed, following the passed scope resolution strategy.
        Parameters:
        portablePreferences - Preference instances to be saved.
        scopeResolutionStrategyInfo - Custom scope resolution strategy to follow.
        successCallback - Success callback that indicates that the preference was saved.
        errorCallback - Error callback that returns the exception that occurred (if any).
      • save

        void save​(Collection<BasePreferencePortable<? extends BasePreference<?>>> portablePreferences,
                  PreferenceScope scope,
                  org.uberfire.mvp.Command successCallback,
                  org.uberfire.mvp.ParameterizedCommand<Throwable> errorCallback)
        Saves all preferences passed, following the passed scope resolution strategy.
        Parameters:
        portablePreferences - Preference instances to be saved.
        scope - Custom scope inside which the preference should be saved.
        successCallback - Success callback that indicates that the preference was saved.
        errorCallback - Error callback that returns the exception that occurred (if any).