Class FileRules

  • All Implemented Interfaces:
    java.io.Serializable, java.util.Map<java.lang.String,​java.lang.Object>, org.bson.conversions.Bson

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

      • RULEVALUE

        public static final java.lang.String RULEVALUE
        the rule value
        See Also:
        Constant Field Values
      • RULEDESCRIPTION

        public static final java.lang.String RULEDESCRIPTION
        the rule description
        See Also:
        Constant Field Values
      • RULEDURATION

        public static final java.lang.String RULEDURATION
        the rule duration
        See Also:
        Constant Field Values
      • RULEMEASUREMENT

        public static final java.lang.String RULEMEASUREMENT
        the rule measurement
        See Also:
        Constant Field Values
    • Constructor Detail

      • 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​(java.lang.String content)
        Parameters:
        content - in format String to create FileRules
      • FileRules

        public FileRules​(java.lang.Integer tenantId)
        Parameters:
        tenantId - the working tenant
    • Method Detail

      • 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​(java.lang.String ruleId)
        setRuleId
        Parameters:
        ruleId - to set
        Returns:
        FileRules
      • setRuleType

        public FileRules setRuleType​(java.lang.String ruleType)
        setRuleType
        Parameters:
        ruleType - to set
        Returns:
        FileRules
      • setRuleValue

        public FileRules setRuleValue​(java.lang.String ruleValue)
        setRuleValue
        Parameters:
        ruleValue - to set
        Returns:
        FileRules
      • setRuleDescription

        public FileRules setRuleDescription​(java.lang.String ruleDescription)
        setRuleDescription
        Parameters:
        ruleDescription - to set
        Returns:
        FileRules
      • setRuleDuration

        public FileRules setRuleDuration​(java.lang.String ruleDuration)
        setRuleDuration
        Parameters:
        ruleDuration - to set
        Returns:
        FileRules
      • setRuleMeasurement

        public FileRules setRuleMeasurement​(java.lang.String ruleMeasurement)
        setRuleMeasurement
        Parameters:
        ruleMeasurement - to set
        Returns:
        FileRules
      • setCreationDate

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

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

        public java.lang.String getRuleid()
      • getRuletype

        public RuleType getRuletype()
      • getRulevalue

        public java.lang.String getRulevalue()
      • getRuledescription

        public java.lang.String getRuledescription()
      • getRuleduration

        public java.lang.String getRuleduration()
      • getCreationdate

        public java.lang.String getCreationdate()