Class RuleGroupModel
- java.lang.Object
-
- de.hybris.platform.servicelayer.model.AbstractItemModel
-
- de.hybris.platform.core.model.ItemModel
-
- de.hybris.platform.ruleengineservices.model.RuleGroupModel
-
- All Implemented Interfaces:
java.io.Serializable
public class RuleGroupModel extends ItemModel
Generated model class for type RuleGroup first defined at extension ruleengineservices.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
AbstractItemModel.NewModelContextFactory
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_TYPECODEGenerated model type code constant.static java.lang.StringCODEGenerated constant - Attribute key ofRuleGroup.codeattribute defined at extensionruleengineservices.static java.lang.StringDESCRIPTIONGenerated constant - Attribute key ofRuleGroup.descriptionattribute defined at extensionruleengineservices.static java.lang.StringEXCLUSIVEGenerated constant - Attribute key ofRuleGroup.exclusiveattribute defined at extensionruleengineservices.static java.lang.StringRULESGenerated constant - Attribute key ofRuleGroup.rulesattribute defined at extensionruleengineservices.static java.lang.StringRULETEMPLATESGenerated constant - Attribute key ofRuleGroup.ruleTemplatesattribute defined at extensionruleengineservices.-
Fields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALED
-
Fields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY
-
-
Constructor Summary
Constructors Constructor Description RuleGroupModel()Generated constructor - Default constructor for generic creation.RuleGroupModel(ItemModelContext ctx)Generated constructor - Default constructor for creation with existing contextRuleGroupModel(java.lang.String _code)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersRuleGroupModel(java.lang.String _code, ItemModel _owner)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCode()Generated method - Getter of theRuleGroup.codeattribute defined at extensionruleengineservices.java.lang.StringgetDescription()Generated method - Getter of theRuleGroup.descriptionattribute defined at extensionruleengineservices.java.lang.StringgetDescription(java.util.Locale loc)Generated method - Getter of theRuleGroup.descriptionattribute defined at extensionruleengineservices.java.util.Set<AbstractRuleModel>getRules()Generated method - Getter of theRuleGroup.rulesattribute defined at extensionruleengineservices.java.util.Set<AbstractRuleTemplateModel>getRuleTemplates()Generated method - Getter of theRuleGroup.ruleTemplatesattribute defined at extensionruleengineservices.booleanisExclusive()Generated method - Getter of theRuleGroup.exclusiveattribute defined at extensionruleengineservices.voidsetCode(java.lang.String value)Generated method - Setter ofRuleGroup.codeattribute defined at extensionruleengineservices.voidsetDescription(java.lang.String value)Generated method - Setter ofRuleGroup.descriptionattribute defined at extensionruleengineservices.voidsetDescription(java.lang.String value, java.util.Locale loc)Generated method - Setter ofRuleGroup.descriptionattribute defined at extensionruleengineservices.voidsetExclusive(boolean value)Generated method - Setter ofRuleGroup.exclusiveattribute defined at extensionruleengineservices.voidsetRules(java.util.Set<AbstractRuleModel> value)Generated method - Setter ofRuleGroup.rulesattribute defined at extensionruleengineservices.voidsetRuleTemplates(java.util.Set<AbstractRuleTemplateModel> value)Generated method - Setter ofRuleGroup.ruleTemplatesattribute defined at extensionruleengineservices.-
Methods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwner
-
Methods inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
equals, getItemModelContext, getItemtype, getPersistenceContext, getPk, getProperty, getProperty, getTenantId, hashCode, readResolve, setProperty, setProperty, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toString, writeReplace
-
-
-
-
Field Detail
-
_TYPECODE
public static final java.lang.String _TYPECODE
Generated model type code constant.- See Also:
- Constant Field Values
-
CODE
public static final java.lang.String CODE
Generated constant - Attribute key ofRuleGroup.codeattribute defined at extensionruleengineservices.- See Also:
- Constant Field Values
-
DESCRIPTION
public static final java.lang.String DESCRIPTION
Generated constant - Attribute key ofRuleGroup.descriptionattribute defined at extensionruleengineservices.- See Also:
- Constant Field Values
-
EXCLUSIVE
public static final java.lang.String EXCLUSIVE
Generated constant - Attribute key ofRuleGroup.exclusiveattribute defined at extensionruleengineservices.- See Also:
- Constant Field Values
-
RULES
public static final java.lang.String RULES
Generated constant - Attribute key ofRuleGroup.rulesattribute defined at extensionruleengineservices.- See Also:
- Constant Field Values
-
RULETEMPLATES
public static final java.lang.String RULETEMPLATES
Generated constant - Attribute key ofRuleGroup.ruleTemplatesattribute defined at extensionruleengineservices.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RuleGroupModel
public RuleGroupModel()
Generated constructor - Default constructor for generic creation.
-
RuleGroupModel
public RuleGroupModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx- the model context to be injected, must not be null
-
RuleGroupModel
@Deprecated(since="4.1.1", forRemoval=true) public RuleGroupModel(java.lang.String _code)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersGenerated constructor - Constructor with all mandatory attributes.- Parameters:
_code- initial attribute declared by typeRuleGroupat extensionruleengineservices
-
RuleGroupModel
@Deprecated(since="4.1.1", forRemoval=true) public RuleGroupModel(java.lang.String _code, ItemModel _owner)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersGenerated constructor - for all mandatory and initial attributes.- Parameters:
_code- initial attribute declared by typeRuleGroupat extensionruleengineservices_owner- initial attribute declared by typeItemat extensioncore
-
-
Method Detail
-
getCode
@Accessor(qualifier="code", type=GETTER) public java.lang.String getCode()
Generated method - Getter of theRuleGroup.codeattribute defined at extensionruleengineservices.- Returns:
- the code - the code of the rule group.
-
getDescription
@Accessor(qualifier="description", type=GETTER) public java.lang.String getDescription()
Generated method - Getter of theRuleGroup.descriptionattribute defined at extensionruleengineservices.- Returns:
- the description - the description of this rule group.
-
getDescription
@Accessor(qualifier="description", type=GETTER) public java.lang.String getDescription(java.util.Locale loc)
Generated method - Getter of theRuleGroup.descriptionattribute defined at extensionruleengineservices.- Parameters:
loc- the value localization key- Returns:
- the description - the description of this rule group.
- Throws:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
getRules
@Accessor(qualifier="rules", type=GETTER) public java.util.Set<AbstractRuleModel> getRules()
Generated method - Getter of theRuleGroup.rulesattribute defined at extensionruleengineservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the rules
-
getRuleTemplates
@Accessor(qualifier="ruleTemplates", type=GETTER) public java.util.Set<AbstractRuleTemplateModel> getRuleTemplates()
Generated method - Getter of theRuleGroup.ruleTemplatesattribute defined at extensionruleengineservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the ruleTemplates
-
isExclusive
@Accessor(qualifier="exclusive", type=GETTER) public boolean isExclusive()
Generated method - Getter of theRuleGroup.exclusiveattribute defined at extensionruleengineservices.- Returns:
- the exclusive - if set to true at most one rule of this group is executed (but potentially multiple times)
-
setCode
@Accessor(qualifier="code", type=SETTER) public void setCode(java.lang.String value)
Generated method - Setter ofRuleGroup.codeattribute defined at extensionruleengineservices.- Parameters:
value- the code - the code of the rule group.
-
setDescription
@Accessor(qualifier="description", type=SETTER) public void setDescription(java.lang.String value)
Generated method - Setter ofRuleGroup.descriptionattribute defined at extensionruleengineservices.- Parameters:
value- the description - the description of this rule group.
-
setDescription
@Accessor(qualifier="description", type=SETTER) public void setDescription(java.lang.String value, java.util.Locale loc)
Generated method - Setter ofRuleGroup.descriptionattribute defined at extensionruleengineservices.- Parameters:
value- the description - the description of this rule group.loc- the value localization key- Throws:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
setExclusive
@Accessor(qualifier="exclusive", type=SETTER) public void setExclusive(boolean value)
Generated method - Setter ofRuleGroup.exclusiveattribute defined at extensionruleengineservices.- Parameters:
value- the exclusive - if set to true at most one rule of this group is executed (but potentially multiple times)
-
setRules
@Accessor(qualifier="rules", type=SETTER) public void setRules(java.util.Set<AbstractRuleModel> value)
Generated method - Setter ofRuleGroup.rulesattribute defined at extensionruleengineservices.- Parameters:
value- the rules
-
setRuleTemplates
@Accessor(qualifier="ruleTemplates", type=SETTER) public void setRuleTemplates(java.util.Set<AbstractRuleTemplateModel> value)
Generated method - Setter ofRuleGroup.ruleTemplatesattribute defined at extensionruleengineservices.- Parameters:
value- the ruleTemplates
-
-