Class PreferenceScopeValidatorImpl
- java.lang.Object
-
- org.uberfire.preferences.shared.impl.PreferenceScopeValidatorImpl
-
- All Implemented Interfaces:
PreferenceScopeValidator
@ApplicationScoped public class PreferenceScopeValidatorImpl extends Object implements PreferenceScopeValidator
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPreferenceScopeValidatorImpl()PreferenceScopeValidatorImpl(PreferenceScopeTypes scopeTypes, PreferenceScopeResolutionStrategy scopeResolutionStrategy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanisEmpty(String str)voidvalidate(PreferenceScope scope)Checks if a scope is valid.
-
-
-
Constructor Detail
-
PreferenceScopeValidatorImpl
protected PreferenceScopeValidatorImpl()
-
PreferenceScopeValidatorImpl
@Inject public PreferenceScopeValidatorImpl(PreferenceScopeTypes scopeTypes, PreferenceScopeResolutionStrategy scopeResolutionStrategy)
-
-
Method Detail
-
validate
public void validate(PreferenceScope scope) throws InvalidPreferenceScopeException
Description copied from interface:PreferenceScopeValidatorChecks if a scope is valid.- Specified by:
validatein interfacePreferenceScopeValidator- Parameters:
scope- Scope to check.- Throws:
InvalidPreferenceScopeException- if the type passed is invalid, or if the scope's key is null and a key is required for that type, or if the key is not null and the scope's type does not require one.
-
isEmpty
protected boolean isEmpty(String str)
-
-