| Modifier and Type | Method and Description |
|---|---|
protected String |
AbstractPropertyDrivenActivationStrategy.getPropertyName(FeatureState featureState,
String parameterName)
Returns the name of the property on which to base the activation of the feature.
|
protected abstract String |
AbstractPropertyDrivenActivationStrategy.getPropertyValue(FeatureState featureState,
FeatureUser user,
String name)
Returns the value of the property with the specified
name on which to base the activation of the feature. |
protected String |
SystemPropertyActivationStrategy.getPropertyValue(FeatureState featureState,
FeatureUser user,
String name) |
boolean |
AbstractTokenizedActivationStrategy.isActive(FeatureState featureState,
FeatureUser user) |
boolean |
ReleaseDateActivationStrategy.isActive(FeatureState featureState,
FeatureUser user) |
boolean |
UserRoleActivationStrategy.isActive(FeatureState state,
FeatureUser user) |
boolean |
ServerIpActivationStrategy.isActive(FeatureState featureState,
FeatureUser user) |
boolean |
ScriptEngineActivationStrategy.isActive(FeatureState featureState,
FeatureUser user) |
boolean |
AbstractPropertyDrivenActivationStrategy.isActive(FeatureState featureState,
FeatureUser user) |
boolean |
UsernameActivationStrategy.isActive(FeatureState state,
FeatureUser user) |
boolean |
GradualActivationStrategy.isActive(FeatureState state,
FeatureUser user) |
protected abstract boolean |
AbstractTokenizedActivationStrategy.isActive(FeatureState featureState,
FeatureUser user,
List<AbstractTokenizedActivationStrategy.Token> tokens)
This method is called by
AbstractTokenizedActivationStrategy.isActive(FeatureState, FeatureUser) with the parsed tokens to make the
decision as to whether the feature is active. |
protected boolean |
AbstractPropertyDrivenActivationStrategy.isActive(FeatureState featureState,
FeatureUser user,
String propertyName,
String propertyValue)
This method is called by
AbstractPropertyDrivenActivationStrategy.isActive(FeatureState, FeatureUser) with the property name and value to make
the decision as to whether the feature is active. |
protected List<AbstractTokenizedActivationStrategy.Token> |
AbstractTokenizedActivationStrategy.tokenize(FeatureState featureState,
String parameterName,
AbstractTokenizedActivationStrategy.TokenTransformer transformer)
Looks up and tokenizes the value of the parameter with the given name on the feature.
|
| Modifier and Type | Method and Description |
|---|---|
FeatureState |
LoggingStateRepository.getFeatureState(Feature feature) |
| Modifier and Type | Method and Description |
|---|---|
void |
LoggingStateRepository.setFeatureState(FeatureState featureState) |
| Modifier and Type | Method and Description |
|---|---|
FeatureState |
LazyResolvingFeatureManager.getFeatureState(Feature feature) |
FeatureState |
FeatureManager.getFeatureState(Feature feature)
Returns the
FeatureState for the specified feature. |
FeatureState |
DefaultFeatureManager.getFeatureState(Feature feature) |
| Modifier and Type | Method and Description |
|---|---|
void |
LazyResolvingFeatureManager.setFeatureState(FeatureState state) |
void |
FeatureManager.setFeatureState(FeatureState state)
Updates the state of a feature.
|
void |
DefaultFeatureManager.setFeatureState(FeatureState state) |
| Modifier and Type | Method and Description |
|---|---|
FeatureState |
EmptyFeatureMetaData.getDefaultFeatureState() |
FeatureState |
FeatureMetaData.getDefaultFeatureState()
Default feature state, if it is not stored in a
StateRepository. |
| Modifier and Type | Method and Description |
|---|---|
FeatureState |
EnumFeatureMetaData.getDefaultFeatureState() |
| Modifier and Type | Method and Description |
|---|---|
FeatureState |
PropertyFeatureMetaData.getDefaultFeatureState() |
| Modifier and Type | Method and Description |
|---|---|
FeatureState |
FeatureState.addUser(String user)
Deprecated.
This method will be removed soon. Use
setParameter(String, String) instead to modify the
corresponding strategy parameter. |
FeatureState |
FeatureState.addUsers(Collection<String> users)
Deprecated.
This method will be removed soon. Use
setParameter(String, String) instead to modify the
corresponding strategy parameter. |
FeatureState |
FeatureState.copy()
Creates a copy of this state object
|
static FeatureState |
FeatureState.copyOf(FeatureState featureState)
Returns a copy of a featureState, or
null if the featureState is
null. |
FeatureState |
FeatureState.disable()
Disable the feature
|
FeatureState |
FeatureState.enable()
Enable the feature
|
FeatureState |
StateRepository.getFeatureState(Feature feature)
Get the persisted state of a feature from the repository.
|
FeatureState |
FeatureState.setEnabled(boolean enabled)
Enables or disables the feature.
|
FeatureState |
FeatureState.setParameter(String name,
String value)
Sets a new value for the given parameter.
|
FeatureState |
FeatureState.setStrategyId(String strategyId)
Sets the selected activation strategy ID
|
| Modifier and Type | Method and Description |
|---|---|
static FeatureState |
FeatureState.copyOf(FeatureState featureState)
Returns a copy of a featureState, or
null if the featureState is
null. |
void |
StateRepository.setFeatureState(FeatureState featureState)
Persist the supplied feature state.
|
| Modifier and Type | Method and Description |
|---|---|
FeatureState |
CachingStateRepository.getFeatureState(Feature feature) |
| Modifier and Type | Method and Description |
|---|---|
void |
CachingStateRepository.setFeatureState(FeatureState featureState) |
| Modifier and Type | Method and Description |
|---|---|
FeatureState |
CompositeStateRepository.getFeatureState(Feature feature)
Returns the first non-null feature state as determined by the current iteration order.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CompositeStateRepository.setFeatureState(FeatureState featureState)
Sets the feature state on the repositories returned by the current setter selection.
|
| Modifier and Type | Method and Description |
|---|---|
FeatureState |
JDBCStateRepository.getFeatureState(Feature feature) |
| Modifier and Type | Method and Description |
|---|---|
void |
JDBCStateRepository.setFeatureState(FeatureState featureState) |
| Modifier and Type | Method and Description |
|---|---|
FeatureState |
InMemoryStateRepository.getFeatureState(Feature feature) |
| Modifier and Type | Method and Description |
|---|---|
void |
InMemoryStateRepository.setFeatureState(FeatureState featureState) |
| Modifier and Type | Method and Description |
|---|---|
FeatureState |
PropertyBasedStateRepository.getFeatureState(Feature feature) |
| Modifier and Type | Method and Description |
|---|---|
void |
PropertyBasedStateRepository.setFeatureState(FeatureState featureState) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
ActivationStrategy.isActive(FeatureState featureState,
FeatureUser user)
This method is responsible to decide whether a feature is active or not.
|
| Modifier and Type | Method and Description |
|---|---|
static FeatureState |
FeatureStateStorageWrapper.featureStateForWrapper(Feature feature,
FeatureStateStorageWrapper wrapper) |
| Modifier and Type | Method and Description |
|---|---|
static FeatureStateStorageWrapper |
FeatureStateStorageWrapper.wrapperForFeatureState(FeatureState featureState) |
Copyright © 2018. All Rights Reserved.