Class WorkbenchPreferenceScopeTypes
- java.lang.Object
-
- org.kie.workbench.common.services.shared.preferences.config.WorkbenchPreferenceScopeTypes
-
- All Implemented Interfaces:
org.uberfire.preferences.shared.PreferenceScopeTypes
public class WorkbenchPreferenceScopeTypes extends Object implements org.uberfire.preferences.shared.PreferenceScopeTypes
Default implementation forPreferenceScopeTypes. To override it, just provide a default CDI bean that implementsPreferenceScopeTypes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static interfaceWorkbenchPreferenceScopeTypes.DefaultKey
-
Constructor Summary
Constructors Modifier Constructor Description protectedWorkbenchPreferenceScopeTypes()WorkbenchPreferenceScopeTypes(org.uberfire.preferences.shared.UsernameProvider usernameProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDefaultKeyFor(String type)protected booleanisEmpty(String str)booleantypeRequiresKey(String type)protected voidvalidateType(String type)
-
-
-
Method Detail
-
typeRequiresKey
public boolean typeRequiresKey(String type) throws org.uberfire.preferences.shared.impl.exception.InvalidPreferenceScopeException
- Specified by:
typeRequiresKeyin interfaceorg.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:
getDefaultKeyForin interfaceorg.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)
-
-