Class AbstractConstraintModel
java.lang.Object
de.hybris.platform.servicelayer.model.AbstractItemModel
de.hybris.platform.core.model.ItemModel
de.hybris.platform.validation.model.constraints.AbstractConstraintModel
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AttributeConstraintModel,TypeConstraintModel
Generated model class for type AbstractConstraint first defined at extension validation.
Abstract constraint base definition for all constraint types.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
de.hybris.platform.servicelayer.model.AbstractItemModel.NewModelContextFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringGenerated model type code constant.static final StringGenerated constant - Attribute key ofAbstractConstraint.activeattribute defined at extensionvalidation.static final StringGenerated constant - Attribute key ofAbstractConstraint.annotationattribute defined at extensionvalidation.static final StringGenerated constant - Attribute key ofAbstractConstraint.constraintGroupsattribute defined at extensionvalidation.static final StringGenerated constant - Attribute key ofAbstractConstraint.defaultMessageattribute defined at extensionvalidation.static final StringGenerated constant - Attribute key ofAbstractConstraint.idattribute defined at extensionvalidation.static final StringGenerated constant - Attribute key ofAbstractConstraint.messageattribute defined at extensionvalidation.static final StringGenerated constant - Attribute key ofAbstractConstraint.needReloadattribute defined at extensionvalidation.static final StringGenerated constant - Attribute key ofAbstractConstraint.severityattribute defined at extensionvalidation.static final StringGenerated constant - Attribute key ofAbstractConstraint.targetattribute defined at extensionvalidation.static final StringGenerated constant - Attribute key ofAbstractConstraint.typeattribute defined at extensionvalidation.Fields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALEDFields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY -
Constructor Summary
ConstructorsConstructorDescriptionGenerated constructor - Default constructor for generic creation.AbstractConstraintModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx) Generated constructor - Default constructor for creation with existing contextAbstractConstraintModel(Class _annotation, String _id) Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersAbstractConstraintModel(Class _annotation, String _id, 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
Modifier and TypeMethodDescriptionGenerated method - Getter of theAbstractConstraint.annotationattribute defined at extensionvalidation.Generated method - Getter of theAbstractConstraint.constraintGroupsattribute defined at extensionvalidation.Generated method - Getter of theAbstractConstraint.defaultMessageattribute defined at extensionvalidation.getDefaultMessage(Locale loc) Generated method - Getter of theAbstractConstraint.defaultMessageattribute defined at extensionvalidation.getId()Generated method - Getter of theAbstractConstraint.idattribute defined at extensionvalidation.Generated method - Getter of theAbstractConstraint.messageattribute defined at extensionvalidation.getMessage(Locale loc) Generated method - Getter of theAbstractConstraint.messageattribute defined at extensionvalidation.Generated method - Getter of theAbstractConstraint.severityattribute defined at extensionvalidation.Generated method - Getter of theAbstractConstraint.targetattribute defined at extensionvalidation.getType()Generated method - Getter of theAbstractConstraint.typeattribute defined at extensionvalidation.booleanisActive()Generated method - Getter of theAbstractConstraint.activeattribute defined at extensionvalidation.booleanGenerated method - Getter of theAbstractConstraint.needReloaddynamic attribute defined at extensionvalidation.voidsetActive(boolean value) Generated method - Setter ofAbstractConstraint.activeattribute defined at extensionvalidation.voidsetAnnotation(Class value) Generated method - Setter ofAbstractConstraint.annotationattribute defined at extensionvalidation.voidGenerated method - Setter ofAbstractConstraint.constraintGroupsattribute defined at extensionvalidation.voidGenerated method - Setter ofAbstractConstraint.idattribute defined at extensionvalidation.voidsetMessage(String value) Generated method - Setter ofAbstractConstraint.messageattribute defined at extensionvalidation.voidsetMessage(String value, Locale loc) Generated method - Setter ofAbstractConstraint.messageattribute defined at extensionvalidation.voidsetSeverity(Severity value) Generated method - Setter ofAbstractConstraint.severityattribute defined at extensionvalidation.voidGenerated method - Setter ofAbstractConstraint.targetattribute defined at extensionvalidation.voidsetType(ComposedTypeModel value) Generated method - Setter ofAbstractConstraint.typeattribute defined at extensionvalidation.Methods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwnerMethods 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 Details
-
_TYPECODE
Generated model type code constant.- See Also:
-
ID
Generated constant - Attribute key ofAbstractConstraint.idattribute defined at extensionvalidation.- See Also:
-
ACTIVE
Generated constant - Attribute key ofAbstractConstraint.activeattribute defined at extensionvalidation.- See Also:
-
NEEDRELOAD
Generated constant - Attribute key ofAbstractConstraint.needReloadattribute defined at extensionvalidation.- See Also:
-
ANNOTATION
Generated constant - Attribute key ofAbstractConstraint.annotationattribute defined at extensionvalidation.- See Also:
-
SEVERITY
Generated constant - Attribute key ofAbstractConstraint.severityattribute defined at extensionvalidation.- See Also:
-
DEFAULTMESSAGE
Generated constant - Attribute key ofAbstractConstraint.defaultMessageattribute defined at extensionvalidation.- See Also:
-
MESSAGE
Generated constant - Attribute key ofAbstractConstraint.messageattribute defined at extensionvalidation.- See Also:
-
TARGET
Generated constant - Attribute key ofAbstractConstraint.targetattribute defined at extensionvalidation.- See Also:
-
TYPE
Generated constant - Attribute key ofAbstractConstraint.typeattribute defined at extensionvalidation.- See Also:
-
CONSTRAINTGROUPS
Generated constant - Attribute key ofAbstractConstraint.constraintGroupsattribute defined at extensionvalidation.- See Also:
-
-
Constructor Details
-
AbstractConstraintModel
public AbstractConstraintModel()Generated constructor - Default constructor for generic creation. -
AbstractConstraintModel
public AbstractConstraintModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx) Generated constructor - Default constructor for creation with existing context- Parameters:
ctx- the model context to be injected, must not be null
-
AbstractConstraintModel
@Deprecated(since="4.1.1", forRemoval=true) public AbstractConstraintModel(Class _annotation, String _id) 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:
_annotation- initial attribute declared by typeAbstractConstraintat extensionvalidation_id- initial attribute declared by typeAbstractConstraintat extensionvalidation
-
AbstractConstraintModel
@Deprecated(since="4.1.1", forRemoval=true) public AbstractConstraintModel(Class _annotation, String _id, 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:
_annotation- initial attribute declared by typeAbstractConstraintat extensionvalidation_id- initial attribute declared by typeAbstractConstraintat extensionvalidation_owner- initial attribute declared by typeItemat extensioncore
-
-
Method Details
-
getAnnotation
Generated method - Getter of theAbstractConstraint.annotationattribute defined at extensionvalidation.- Returns:
- the annotation - Full class name literal for a corresponding annotation
-
getConstraintGroups
@Accessor(qualifier="constraintGroups", type=GETTER) public Set<ConstraintGroupModel> getConstraintGroups()Generated method - Getter of theAbstractConstraint.constraintGroupsattribute defined at extensionvalidation. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the constraintGroups
-
getDefaultMessage
Generated method - Getter of theAbstractConstraint.defaultMessageattribute defined at extensionvalidation.- Returns:
- the defaultMessage - Localized resource bundle evaluated error message
-
getDefaultMessage
Generated method - Getter of theAbstractConstraint.defaultMessageattribute defined at extensionvalidation.- Parameters:
loc- the value localization key- Returns:
- the defaultMessage - Localized resource bundle evaluated error message
- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
getId
Generated method - Getter of theAbstractConstraint.idattribute defined at extensionvalidation.- Returns:
- the id - Constraint identifier
-
getMessage
Generated method - Getter of theAbstractConstraint.messageattribute defined at extensionvalidation.- Returns:
- the message - Localized error message
-
getMessage
Generated method - Getter of theAbstractConstraint.messageattribute defined at extensionvalidation.- Parameters:
loc- the value localization key- Returns:
- the message - Localized error message
- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
getSeverity
Generated method - Getter of theAbstractConstraint.severityattribute defined at extensionvalidation.- Returns:
- the severity - Severity level
-
getTarget
Generated method - Getter of theAbstractConstraint.targetattribute defined at extensionvalidation.- Returns:
- the target - Target class for covered with validation logic
-
getType
Generated method - Getter of theAbstractConstraint.typeattribute defined at extensionvalidation.- Returns:
- the type
-
isActive
@Accessor(qualifier="active", type=GETTER) public boolean isActive()Generated method - Getter of theAbstractConstraint.activeattribute defined at extensionvalidation.- Returns:
- the active - Enabled flag for a constraint
-
isNeedReload
@Accessor(qualifier="needReload", type=GETTER) public boolean isNeedReload()Generated method - Getter of theAbstractConstraint.needReloaddynamic attribute defined at extensionvalidation.- Returns:
- the needReload - true if the constraint (+values) was never loaded (in the current state) into the framework.
-
setActive
@Accessor(qualifier="active", type=SETTER) public void setActive(boolean value) Generated method - Setter ofAbstractConstraint.activeattribute defined at extensionvalidation.- Parameters:
value- the active - Enabled flag for a constraint
-
setAnnotation
Generated method - Setter ofAbstractConstraint.annotationattribute defined at extensionvalidation.- Parameters:
value- the annotation - Full class name literal for a corresponding annotation
-
setConstraintGroups
@Accessor(qualifier="constraintGroups", type=SETTER) public void setConstraintGroups(Set<ConstraintGroupModel> value) Generated method - Setter ofAbstractConstraint.constraintGroupsattribute defined at extensionvalidation.- Parameters:
value- the constraintGroups
-
setId
Generated method - Setter ofAbstractConstraint.idattribute defined at extensionvalidation.- Parameters:
value- the id - Constraint identifier
-
setMessage
Generated method - Setter ofAbstractConstraint.messageattribute defined at extensionvalidation.- Parameters:
value- the message - Localized error message
-
setMessage
Generated method - Setter ofAbstractConstraint.messageattribute defined at extensionvalidation.- Parameters:
value- the message - Localized error messageloc- the value localization key- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
setSeverity
Generated method - Setter ofAbstractConstraint.severityattribute defined at extensionvalidation.- Parameters:
value- the severity - Severity level
-
setTarget
Generated method - Setter ofAbstractConstraint.targetattribute defined at extensionvalidation.- Parameters:
value- the target - Target class for covered with validation logic
-
setType
Generated method - Setter ofAbstractConstraint.typeattribute defined at extensionvalidation.- Parameters:
value- the type
-