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

public class FileRules extends VitamDocument<FileRules>
FileRules create the template of FileRules from VitamDocument
See Also:
  • Field Details

  • 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

      public FileRules(String content)
      Parameters:
      content - in format String to create FileRules
    • FileRules

      public FileRules(Integer tenantId)
      Parameters:
      tenantId - the working tenant
  • Method Details

    • newInstance

      public VitamDocument<FileRules> newInstance(com.fasterxml.jackson.databind.JsonNode content)
      Description copied from class: VitamDocument
      Make a new instance of the document with the given json
      Specified by:
      newInstance in class VitamDocument<FileRules>
      Parameters:
      content - document structure as json
      Returns:
      new document with the json as content
    • setRuleId

      public FileRules setRuleId(String ruleId)
      setRuleId
      Parameters:
      ruleId - to set
      Returns:
      FileRules
    • setRuleType

      public FileRules setRuleType(String ruleType)
      setRuleType
      Parameters:
      ruleType - to set
      Returns:
      FileRules
    • setRuleValue

      public FileRules setRuleValue(String ruleValue)
      setRuleValue
      Parameters:
      ruleValue - to set
      Returns:
      FileRules
    • setRuleDescription

      public FileRules setRuleDescription(String ruleDescription)
      setRuleDescription
      Parameters:
      ruleDescription - to set
      Returns:
      FileRules
    • setRuleDuration

      public FileRules setRuleDuration(String ruleDuration)
      setRuleDuration
      Parameters:
      ruleDuration - to set
      Returns:
      FileRules
    • setRuleMeasurement

      public FileRules setRuleMeasurement(String ruleMeasurement)
      setRuleMeasurement
      Parameters:
      ruleMeasurement - to set
      Returns:
      FileRules
    • setCreationDate

      public FileRules setCreationDate(String creationDate)
      setCreationDate
      Parameters:
      creationDate - to set
      Returns:
      this
    • setUpdateDate

      public FileRules setUpdateDate(String updateDate)
      setUpdateDate
      Parameters:
      updateDate - to set
      Returns:
      this
    • getRuleid

      public String getRuleid()
    • getRuletype

      public RuleType getRuletype()
    • getRulevalue

      public String getRulevalue()
    • getRuledescription

      public String getRuledescription()
    • getRuleduration

      public String getRuleduration()
    • getRulemeasurement

      public RuleMeasurementEnum getRulemeasurement()
    • getCreationdate

      public String getCreationdate()