edu.internet2.middleware.grouper.rules
Class RuleIfCondition

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

public class RuleIfCondition
extends java.lang.Object

rule if condition

Author:
mchyzer

Constructor Summary
RuleIfCondition()
           
RuleIfCondition(java.lang.String ifConditionEl1, java.lang.String ifConditionEnum1, java.lang.String theIfOwnerId, java.lang.String theIfOwnerName, java.lang.String theStemScope, java.lang.String theIfConditionEnumArg0, java.lang.String theIfConditionEnumArg1)
           
 
Method Summary
 java.lang.String getIfConditionEl()
          if it is an el, put that here
 java.lang.String getIfConditionEnum()
          if it is an enum, put that here
 java.lang.String getIfConditionEnumArg0()
          if it is an enum, this is the first arg if applicable
 java.lang.String getIfConditionEnumArg1()
          if it is an enum, this is the second arg if applicable
 java.lang.String getIfOwnerId()
          if the enum needs an owner, this is the id
 java.lang.String getIfOwnerName()
          if the enum needs an owner, this is the name
 java.lang.String getIfStemScope()
          if a stem, this is the scope of ONE or SUB
 RuleIfConditionEnum ifConditionEnum()
          convert the type to an enum
 void setIfConditionEl(java.lang.String ifConditionEl1)
          if it is an el, put that here
 void setIfConditionEnum(java.lang.String ifConditionEnum1)
          if it is an enum, put that here
 void setIfConditionEnumArg0(java.lang.String ifConditionEnumArg0_)
          if it is an enum, this is the first arg if applicable
 void setIfConditionEnumArg1(java.lang.String ifConditionEnumArg1_)
          if it is an enum, this is the first arg if applicable
 void setIfOwnerId(java.lang.String ifOwnerId1)
          if the enum needs an owner, this is the id
 void setIfOwnerName(java.lang.String ifOwnerName1)
          if the enum needs an owner, this is the name
 void setIfStemScope(java.lang.String ifStemScope1)
          if a stem, this is the scope of ONE or SUB
 boolean shouldFire(RuleDefinition ruleDefinition, RuleEngine ruleEngine, RulesBean rulesBean, java.lang.StringBuilder logDataForThisDefinition)
          if this check passes
 java.lang.String toString()
           
 java.lang.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(java.lang.String ifConditionEl1,
                       java.lang.String ifConditionEnum1,
                       java.lang.String theIfOwnerId,
                       java.lang.String theIfOwnerName,
                       java.lang.String theStemScope,
                       java.lang.String theIfConditionEnumArg0,
                       java.lang.String theIfConditionEnumArg1)
Parameters:
ifConditionEl1 -
ifConditionEnum1 -
theIfOwnerId -
theIfOwnerName -
theStemScope -
theIfConditionEnumArg0 -
theIfConditionEnumArg1 -
Method Detail

getIfConditionEnumArg0

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

Returns:
the first arg

setIfConditionEnumArg0

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

Parameters:
ifConditionEnumArg0_ -

getIfConditionEnumArg1

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

Returns:
arg1

setIfConditionEnumArg1

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

Parameters:
ifConditionEnumArg1_ -

getIfStemScope

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

Returns:
null or ONE or SUB

setIfStemScope

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

Parameters:
ifStemScope1 -

getIfOwnerName

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

Returns:
name

setIfOwnerName

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

Parameters:
ifOwnerName1 -

getIfOwnerId

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

Returns:
id

setIfOwnerId

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

Parameters:
ifOwnerId1 -

getIfConditionEl

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

Returns:
el

setIfConditionEl

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

Parameters:
ifConditionEl1 -

getIfConditionEnum

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

Returns:
enum

setIfConditionEnum

public void setIfConditionEnum(java.lang.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 java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

validate

public java.lang.String validate(RuleDefinition ruleDefinition)
validate this

Parameters:
ruleDefinition -
Returns:
error or null if ok

shouldFire

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

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