Groovy Documentation

org.linkedin.glu.provisioner.core.model
[Groovy] Class SystemFilterHelper

java.lang.Object
  org.linkedin.glu.provisioner.core.model.SystemFilterHelper

class SystemFilterHelper

Authors:
yan@pongasoft.com


Method Summary
static SystemFilter and(SystemFilter f1, SystemFilter f2)

Convenient call to create a chain of 2 filters that are 'anded' together.

static SystemFilter and(java.util.Collection filters)

Convenient call to create a chain of filters that are 'anded' together.

static boolean definesSubsetOrEqual(SystemFilter filter1, SystemFilter filter2)

This call is a 'simplified' version as it for example does not check for a filter like and{and{filter}}...

static SystemFilter unand(SystemFilter f1, SystemFilter f2)

This is the 'opposite' of and: tries to remove f2 from f1 (if possible... this call is simplified in the sense that it does not handle complex scenarios)

 
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()
 

Method Detail

and

static SystemFilter and(SystemFilter f1, SystemFilter f2)
Convenient call to create a chain of 2 filters that are 'anded' together. Handle properly null and 'adjacent' 'and' filters.


and

static SystemFilter and(java.util.Collection filters)
Convenient call to create a chain of filters that are 'anded' together. Handle properly null and 'adjacent' 'and' filters.


definesSubsetOrEqual

static boolean definesSubsetOrEqual(SystemFilter filter1, SystemFilter filter2)
This call is a 'simplified' version as it for example does not check for a filter like and{and{filter}}...
Returns:
true if filter1 defines a subset of filter2 or is equal to it


unand

static SystemFilter unand(SystemFilter f1, SystemFilter f2)
This is the 'opposite' of and: tries to remove f2 from f1 (if possible... this call is simplified in the sense that it does not handle complex scenarios)


 

Groovy Documentation