|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectorg.linkedin.glu.provisioner.core.model.SystemFilterBuilder
class SystemFilterBuilder
DSL for SystemFilter.
// in the code def filter = new SystemFilterBuilder().and { metadata.product = 'p1' // can use = initParameters.skeleton == 's1' // or == tags = 't1;t2' // same as tags.hasAny('t1;t2') not { or { agent = 'h1' c('myClosure) { // this is a real closure: 'it' is of type SystemEntry! it.initParameters.war == 'w1' } } } } // as a String (call parse method) """ metadata.product = 'p1' // can use = tags = 't1;t2' // same as tags.hasAny('t1;t2') initParameters.skeleton == 's1' // or == not { or { agent = 'h1' c('myClosure) { // this is a real closure: 'it' is of type SystemEntry! it.initParameters.war == 'w1' } } } """
Property Summary | |
---|---|
LogicSystemFilterChain |
filter
|
Method Summary | |
---|---|
SystemFilter
|
addNewFilter(SystemFilter newFilter)
|
static SystemFilter
|
and(SystemFilter f1, SystemFilter f2)
Convenient call to create a chain of 2 filters that are 'anded' together. |
SystemFilter
|
and(groovy.lang.Closure cl)
|
SystemFilter
|
c(groovy.lang.Closure cl)
|
SystemFilter
|
c(java.lang.String name, groovy.lang.Closure cl)
|
SystemFilter
|
not(groovy.lang.Closure cl)
|
SystemFilter
|
or(groovy.lang.Closure cl)
|
static SystemFilter
|
parse(java.lang.String dsl)
Parses the dsl (see documentation) |
java.lang.Object
|
propertyMissing(java.lang.String name)
|
void
|
propertyMissing(java.lang.String name, java.lang.Object value)
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Property Detail |
---|
LogicSystemFilterChain filter
Method Detail |
---|
SystemFilter addNewFilter(SystemFilter newFilter)
static SystemFilter and(SystemFilter f1, SystemFilter f2)
null
and 'adjacent' 'and' filters.
SystemFilter and(groovy.lang.Closure cl)
SystemFilter c(groovy.lang.Closure cl)
SystemFilter c(java.lang.String name, groovy.lang.Closure cl)
SystemFilter not(groovy.lang.Closure cl)
SystemFilter or(groovy.lang.Closure cl)
static SystemFilter parse(java.lang.String dsl)
java.lang.Object propertyMissing(java.lang.String name)
void propertyMissing(java.lang.String name, java.lang.Object value)
Groovy Documentation