com.bea.alcs.domain.rules.impl
Class CategoryExceptionImpl
java.lang.Object
com.bea.alcs.domain.impl.AbstractEpDomainImpl
com.bea.alcs.domain.impl.AbstractPersistenceImpl
com.bea.alcs.domain.impl.AbstractValueObjectImpl
com.bea.alcs.domain.rules.impl.AbstractRuleExceptionImpl
com.bea.alcs.domain.rules.impl.CategoryExceptionImpl
- All Implemented Interfaces:
- EpDomain, Persistence, RuleException, ValueObject, java.io.Serializable
public class CategoryExceptionImpl
- extends AbstractRuleExceptionImpl
- implements RuleException
Rule exception that excludes a category to be qualified for a rule condition or a rule action. Requires parameter with key
RuleParameter.CATEGORY_ID_KEY to specify the category.
- See Also:
- Serialized Form
Method Summary |
boolean |
appliesInScenario(int scenarioId)
Check if this RuleException is valid in the specified scenario. |
RuleExceptionType |
getExceptionType()
Returns the RuleExceptionType associated with this RuleException subclass. |
java.lang.String[] |
getParameterKeys()
Return the array of the required parameter keys for the rule. |
java.lang.String |
getRuleCode()
Dummy implementation here since a rule exception will be part of a rule condition or rule action. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
public static final long serialVersionUID
- Serial version id.
- See Also:
- Constant Field Values
CategoryExceptionImpl
public CategoryExceptionImpl()
getExceptionType
public RuleExceptionType getExceptionType()
- Returns the
RuleExceptionType
associated with this RuleException
subclass. The RuleExceptionType
's
property key must match this class' discriminator-value and the spring context bean id for this RuleException
implementation.
- Specified by:
getExceptionType
in interface RuleException
- Overrides:
getExceptionType
in class AbstractRuleExceptionImpl
- Returns:
- the
RuleExceptionType
associated with this RuleException
subclass.
appliesInScenario
public boolean appliesInScenario(int scenarioId)
- Check if this
RuleException
is valid in the specified scenario.
- Specified by:
appliesInScenario
in interface RuleException
- Overrides:
appliesInScenario
in class AbstractRuleExceptionImpl
- Parameters:
scenarioId
- the Id of the scenario to check (defined in RuleScenarios)
- Returns:
- true if the
RuleException
is applicable in the given scenario
getRuleCode
public java.lang.String getRuleCode()
throws EpDomainException
- Dummy implementation here since a rule exception will be part of a rule condition or rule action.
- Returns:
- the rule code.
- Throws:
EpDomainException
- if the object model is not well formed
getParameterKeys
public java.lang.String[] getParameterKeys()
- Return the array of the required parameter keys for the rule.
- Specified by:
getParameterKeys
in interface RuleException
- Overrides:
getParameterKeys
in class AbstractRuleExceptionImpl
- Returns:
- an array of String of the required parameter keys for the rule.