Class FileRules
java.lang.Object
org.bson.Document
fr.gouv.vitam.common.database.server.mongodb.VitamDocument<FileRules>
fr.gouv.vitam.functional.administration.common.FileRules
- All Implemented Interfaces:
Serializable
,Map<String,
,Object> org.bson.conversions.Bson
FileRules create the template of FileRules from VitamDocument
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
the rule descriptionstatic final String
the rule durationstatic final String
the rule idstatic final String
the rule measurementstatic final String
the rule typestatic final String
the rule valueFields inherited from class fr.gouv.vitam.common.database.server.mongodb.VitamDocument
ES_FILTER_OUT, ID, IMPLEMENTATIONVERSION, SCORE, SEDAVERSION, TENANT_ID, VERSION
Fields inherited from interface org.bson.conversions.Bson
DEFAULT_CODEC_REGISTRY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionnewInstance
(com.fasterxml.jackson.databind.JsonNode content) Make a new instance of the document with the given jsonsetCreationDate
(String creationDate) setCreationDatesetRuleDescription
(String ruleDescription) setRuleDescriptionsetRuleDuration
(String ruleDuration) setRuleDurationsetRuleIdsetRuleMeasurement
(String ruleMeasurement) setRuleMeasurementsetRuleType
(String ruleType) setRuleTypesetRuleValue
(String ruleValue) setRuleValuesetUpdateDate
(String updateDate) setUpdateDateMethods inherited from class fr.gouv.vitam.common.database.server.mongodb.VitamDocument
checkId, getConcernedDiffLines, getId, getOriginalDiffLines, getTenantId, getUnifiedDiff, getVersion, toString, toStringDirect
Methods inherited from class org.bson.Document
append, clear, containsKey, containsValue, entrySet, equals, get, get, get, getBoolean, getBoolean, getDate, getDouble, getEmbedded, getEmbedded, getInteger, getInteger, getList, getList, getLong, getObjectId, getString, hashCode, isEmpty, keySet, parse, parse, put, putAll, remove, size, toBsonDocument, toJson, toJson, toJson, toJson, values
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.bson.conversions.Bson
toBsonDocument
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
RULEID
the rule id- See Also:
-
RULETYPE
the rule type- See Also:
-
RULEVALUE
the rule value- See Also:
-
RULEDESCRIPTION
the rule description- See Also:
-
RULEDURATION
the rule duration- See Also:
-
RULEMEASUREMENT
the rule measurement- See Also:
-
-
Constructor Details
-
FileRules
public FileRules()Constructor -
FileRules
public FileRules(org.bson.Document document) Constructor- Parameters:
document
- in format Document to create FileRules
-
FileRules
public FileRules(com.fasterxml.jackson.databind.JsonNode content) - Parameters:
content
- in format JsonNode to create FileRules
-
FileRules
- Parameters:
content
- in format String to create FileRules
-
FileRules
- Parameters:
tenantId
- the working tenant
-
-
Method Details
-
newInstance
Description copied from class:VitamDocument
Make a new instance of the document with the given json- Specified by:
newInstance
in classVitamDocument<FileRules>
- Parameters:
content
- document structure as json- Returns:
- new document with the json as content
-
setRuleId
setRuleId- Parameters:
ruleId
- to set- Returns:
- FileRules
-
setRuleType
setRuleType- Parameters:
ruleType
- to set- Returns:
- FileRules
-
setRuleValue
setRuleValue- Parameters:
ruleValue
- to set- Returns:
- FileRules
-
setRuleDescription
setRuleDescription- Parameters:
ruleDescription
- to set- Returns:
- FileRules
-
setRuleDuration
setRuleDuration- Parameters:
ruleDuration
- to set- Returns:
- FileRules
-
setRuleMeasurement
setRuleMeasurement- Parameters:
ruleMeasurement
- to set- Returns:
- FileRules
-
setCreationDate
setCreationDate- Parameters:
creationDate
- to set- Returns:
- this
-
setUpdateDate
setUpdateDate- Parameters:
updateDate
- to set- Returns:
- this
-
getRuleid
-
getRuletype
-
getRulevalue
-
getRuledescription
-
getRuleduration
-
getRulemeasurement
-
getCreationdate
-