@ApplicationScoped public class DefaultPreferenceScopeTypes extends Object implements PreferenceScopeTypes
PreferenceScopeTypes. To override it, just provide a default
CDI bean that implements PreferenceScopeTypes.| Modifier and Type | Class and Description |
|---|---|
protected static interface |
DefaultPreferenceScopeTypes.DefaultKey |
| Modifier | Constructor and Description |
|---|---|
protected |
DefaultPreferenceScopeTypes() |
|
DefaultPreferenceScopeTypes(UsernameProvider usernameProvider) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultKeyFor(String type)
Returns the default key for a type.
|
protected boolean |
isEmpty(String str) |
boolean |
typeRequiresKey(String type)
Checks if a scope type requires a custom key.
|
protected void |
validateType(String type) |
protected DefaultPreferenceScopeTypes()
@Inject public DefaultPreferenceScopeTypes(UsernameProvider usernameProvider)
public boolean typeRequiresKey(String type) throws InvalidPreferenceScopeException
PreferenceScopeTypestypeRequiresKey in interface PreferenceScopeTypestype - Type to check.InvalidPreferenceScopeException - if the type passed is invalid.public String getDefaultKeyFor(String type) throws InvalidPreferenceScopeException
PreferenceScopeTypesgetDefaultKeyFor in interface PreferenceScopeTypestype - Type to check.InvalidPreferenceScopeException - if the type passed is invalid.protected void validateType(String type) throws InvalidPreferenceScopeException
InvalidPreferenceScopeExceptionprotected boolean isEmpty(String str)
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.