Class FileRulesModel
- java.lang.Object
-
- fr.gouv.vitam.common.model.administration.FileRulesModel
-
public class FileRulesModel extends java.lang.Object
POJO java use for mapping @FileRules
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
RULE_DESCRIPTION
static java.lang.String
RULE_DURATION
static java.lang.String
RULE_ID
static java.lang.String
RULE_MEASUREMENT
static java.lang.String
RULE_TYPE
static java.lang.String
RULE_VALUE
-
Constructor Summary
Constructors Constructor Description FileRulesModel()
FileRulesModel(java.lang.String ruleId, RuleType ruleType, java.lang.String ruleValue, java.lang.String ruleDescription, java.lang.String ruleDuration, RuleMeasurementEnum ruleMeasurement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getCreationDate()
java.lang.String
getId()
java.lang.String
getRuleDescription()
java.lang.String
getRuleDuration()
java.lang.String
getRuleId()
RuleMeasurementEnum
getRuleMeasurement()
RuleType
getRuleType()
java.lang.String
getRuleValue()
java.lang.Integer
getTenant()
java.lang.String
getUpdateDate()
java.lang.Integer
getVersion()
int
hashCode()
boolean
hasSameRuleId(FileRulesModel rule)
void
setCreationDate(java.lang.String creationDate)
void
setId(java.lang.String id)
void
setRuleDescription(java.lang.String ruleDescription)
void
setRuleDuration(java.lang.String ruleDuration)
void
setRuleId(java.lang.String ruleId)
void
setRuleMeasurement(RuleMeasurementEnum ruleMeasurement)
void
setRuleType(RuleType ruleType)
void
setRuleValue(java.lang.String ruleValue)
void
setTenant(java.lang.Integer tenant)
void
setUpdateDate(java.lang.String updateDate)
void
setVersion(java.lang.Integer version)
java.lang.String
toString()
-
-
-
Field Detail
-
RULE_ID
public static final java.lang.String RULE_ID
- See Also:
- Constant Field Values
-
RULE_TYPE
public static final java.lang.String RULE_TYPE
- See Also:
- Constant Field Values
-
RULE_VALUE
public static final java.lang.String RULE_VALUE
- See Also:
- Constant Field Values
-
RULE_DESCRIPTION
public static final java.lang.String RULE_DESCRIPTION
- See Also:
- Constant Field Values
-
RULE_DURATION
public static final java.lang.String RULE_DURATION
- See Also:
- Constant Field Values
-
RULE_MEASUREMENT
public static final java.lang.String RULE_MEASUREMENT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FileRulesModel
public FileRulesModel()
-
FileRulesModel
public FileRulesModel(java.lang.String ruleId, RuleType ruleType, java.lang.String ruleValue, java.lang.String ruleDescription, java.lang.String ruleDuration, RuleMeasurementEnum ruleMeasurement)
-
-
Method Detail
-
getId
public java.lang.String getId()
-
setId
public void setId(java.lang.String id)
-
getTenant
public java.lang.Integer getTenant()
-
setTenant
public void setTenant(java.lang.Integer tenant)
-
getRuleType
public RuleType getRuleType()
-
setRuleType
public void setRuleType(RuleType ruleType)
-
getRuleValue
public java.lang.String getRuleValue()
-
setRuleValue
public void setRuleValue(java.lang.String ruleValue)
-
getRuleDescription
public java.lang.String getRuleDescription()
-
setRuleDescription
public void setRuleDescription(java.lang.String ruleDescription)
-
getRuleDuration
public java.lang.String getRuleDuration()
-
setRuleDuration
public void setRuleDuration(java.lang.String ruleDuration)
-
getRuleMeasurement
public RuleMeasurementEnum getRuleMeasurement()
-
setRuleMeasurement
public void setRuleMeasurement(RuleMeasurementEnum ruleMeasurement)
-
getCreationDate
public java.lang.String getCreationDate()
-
setCreationDate
public void setCreationDate(java.lang.String creationDate)
-
getUpdateDate
public java.lang.String getUpdateDate()
-
setUpdateDate
public void setUpdateDate(java.lang.String updateDate)
-
getVersion
public java.lang.Integer getVersion()
-
setVersion
public void setVersion(java.lang.Integer version)
-
getRuleId
public java.lang.String getRuleId()
-
setRuleId
public void setRuleId(java.lang.String ruleId)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hasSameRuleId
public boolean hasSameRuleId(FileRulesModel rule)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-