public class RenameFallbackRule extends java.lang.Object implements FallbackRule
| Constructor and Description |
|---|
RenameFallbackRule(java.lang.String fromCollection,
java.lang.String toCollection)
Creates a new instance with the specified parameters
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
applyToCollection()
Gets the identifier of the collection that this rule should be applied to.
|
java.lang.String |
getToCollection()
Gets the new identifier for this collection
|
boolean |
mustBeContextCollection()
Returns true of the rule can only be applied to the context collection,
in other words the collection that triggers the fallback actions.
|
public RenameFallbackRule(java.lang.String fromCollection,
java.lang.String toCollection)
fromCollection - the identifier of the original collectiontoCollection - the new identifierpublic java.lang.String applyToCollection()
FallbackRuleapplyToCollection in interface FallbackRulepublic java.lang.String getToCollection()
public boolean mustBeContextCollection()
FallbackRulemustBeContextCollection in interface FallbackRule