edu.internet2.middleware.grouper.rules
Class RuleIfCondition

java.lang.Object
  extended by edu.internet2.middleware.grouper.rules.RuleIfCondition

public class RuleIfCondition
extends Object

rule if condition

Author:
mchyzer

Constructor Summary
RuleIfCondition()
           
RuleIfCondition(String ifConditionEl1, String ifConditionEnum1, String theIfOwnerId, String theIfOwnerName, String theStemScope, String theIfConditionEnumArg0, String theIfConditionEnumArg1)
           
 
Method Summary
 String getIfConditionEl()
          if it is an el, put that here
 String getIfConditionEnum()
          if it is an enum, put that here
 String getIfConditionEnumArg0()
          if it is an enum, this is the first arg if applicable
 String getIfConditionEnumArg1()
          if it is an enum, this is the second arg if applicable
 String getIfOwnerId()
          if the enum needs an owner, this is the id
 String getIfOwnerName()
          if the enum needs an owner, this is the name
 String getIfStemScope()
          if a stem, this is the scope of ONE or SUB
 RuleIfConditionEnum ifConditionEnum()
          convert the type to an enum
 void setIfConditionEl(String ifConditionEl1)
          if it is an el, put that here
 void setIfConditionEnum(String ifConditionEnum1)
          if it is an enum, put that here
 void setIfConditionEnumArg0(String ifConditionEnumArg0_)
          if it is an enum, this is the first arg if applicable
 void setIfConditionEnumArg1(String ifConditionEnumArg1_)
          if it is an enum, this is the first arg if applicable
 void setIfOwnerId(String ifOwnerId1)
          if the enum needs an owner, this is the id
 void setIfOwnerName(String ifOwnerName1)
          if the enum needs an owner, this is the name
 void setIfStemScope(String ifStemScope1)
          if a stem, this is the scope of ONE or SUB
 boolean shouldFire(RuleDefinition ruleDefinition, RuleEngine ruleEngine, RulesBean rulesBean, StringBuilder logDataForThisDefinition)
          if this check passes
 String toString()
           
 String validate(RuleDefinition ruleDefinition)
          validate this
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RuleIfCondition

public RuleIfCondition()

RuleIfCondition

public RuleIfCondition(String ifConditionEl1,
                       String ifConditionEnum1,
                       String theIfOwnerId,
                       String theIfOwnerName,
                       String theStemScope,
                       String theIfConditionEnumArg0,
                       String theIfConditionEnumArg1)
Parameters:
ifConditionEl1 -
ifConditionEnum1 -
theIfOwnerId -
theIfOwnerName -
theStemScope -
theIfConditionEnumArg0 -
theIfConditionEnumArg1 -
Method Detail

getIfConditionEnumArg0

public String getIfConditionEnumArg0()
if it is an enum, this is the first arg if applicable

Returns:
the first arg

setIfConditionEnumArg0

public void setIfConditionEnumArg0(String ifConditionEnumArg0_)
if it is an enum, this is the first arg if applicable

Parameters:
ifConditionEnumArg0_ -

getIfConditionEnumArg1

public String getIfConditionEnumArg1()
if it is an enum, this is the second arg if applicable

Returns:
arg1

setIfConditionEnumArg1

public void setIfConditionEnumArg1(String ifConditionEnumArg1_)
if it is an enum, this is the first arg if applicable

Parameters:
ifConditionEnumArg1_ -

getIfStemScope

public String getIfStemScope()
if a stem, this is the scope of ONE or SUB

Returns:
null or ONE or SUB

setIfStemScope

public void setIfStemScope(String ifStemScope1)
if a stem, this is the scope of ONE or SUB

Parameters:
ifStemScope1 -

getIfOwnerName

public String getIfOwnerName()
if the enum needs an owner, this is the name

Returns:
name

setIfOwnerName

public void setIfOwnerName(String ifOwnerName1)
if the enum needs an owner, this is the name

Parameters:
ifOwnerName1 -

getIfOwnerId

public String getIfOwnerId()
if the enum needs an owner, this is the id

Returns:
id

setIfOwnerId

public void setIfOwnerId(String ifOwnerId1)
if the enum needs an owner, this is the id

Parameters:
ifOwnerId1 -

getIfConditionEl

public String getIfConditionEl()
if it is an el, put that here

Returns:
el

setIfConditionEl

public void setIfConditionEl(String ifConditionEl1)
if it is an el, put that here

Parameters:
ifConditionEl1 -

getIfConditionEnum

public String getIfConditionEnum()
if it is an enum, put that here

Returns:
enum

setIfConditionEnum

public void setIfConditionEnum(String ifConditionEnum1)
if it is an enum, put that here

Parameters:
ifConditionEnum1 -

ifConditionEnum

public RuleIfConditionEnum ifConditionEnum()
convert the type to an enum

Returns:
rule check type

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

validate

public String validate(RuleDefinition ruleDefinition)
validate this

Parameters:
ruleDefinition -
Returns:
error or null if ok

shouldFire

public boolean shouldFire(RuleDefinition ruleDefinition,
                          RuleEngine ruleEngine,
                          RulesBean rulesBean,
                          StringBuilder logDataForThisDefinition)
if this check passes

Parameters:
ruleDefinition -
ruleEngine -
rulesBean -
logDataForThisDefinition -
Returns:
true if this check passes