Class WorkbenchPreferenceScopeTypes

  • All Implemented Interfaces:
    org.uberfire.preferences.shared.PreferenceScopeTypes

    public class WorkbenchPreferenceScopeTypes
    extends Object
    implements org.uberfire.preferences.shared.PreferenceScopeTypes
    Default implementation for PreferenceScopeTypes. To override it, just provide a default CDI bean that implements PreferenceScopeTypes.
    • Constructor Detail

      • WorkbenchPreferenceScopeTypes

        protected WorkbenchPreferenceScopeTypes()
      • WorkbenchPreferenceScopeTypes

        @Inject
        public WorkbenchPreferenceScopeTypes​(org.uberfire.preferences.shared.UsernameProvider usernameProvider)
    • Method Detail

      • typeRequiresKey

        public boolean typeRequiresKey​(String type)
                                throws org.uberfire.preferences.shared.impl.exception.InvalidPreferenceScopeException
        Specified by:
        typeRequiresKey in interface org.uberfire.preferences.shared.PreferenceScopeTypes
        Throws:
        org.uberfire.preferences.shared.impl.exception.InvalidPreferenceScopeException
      • getDefaultKeyFor

        public String getDefaultKeyFor​(String type)
                                throws org.uberfire.preferences.shared.impl.exception.InvalidPreferenceScopeException
        Specified by:
        getDefaultKeyFor in interface org.uberfire.preferences.shared.PreferenceScopeTypes
        Throws:
        org.uberfire.preferences.shared.impl.exception.InvalidPreferenceScopeException
      • validateType

        protected void validateType​(String type)
                             throws org.uberfire.preferences.shared.impl.exception.InvalidPreferenceScopeException
        Throws:
        org.uberfire.preferences.shared.impl.exception.InvalidPreferenceScopeException
      • isEmpty

        protected boolean isEmpty​(String str)