java.lang.Object
org.apache.nifi.authorization.file.generated.Policy

public class Policy extends Object

Java class for Policy complex type

.

The following schema fragment specifies the expected content contained within this class.


 <complexType name="Policy">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="group" maxOccurs="unbounded" minOccurs="0">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <attribute name="identifier">
                   <simpleType>
                     <restriction base="{http://www.w3.org/2001/XMLSchema}string">
                       <minLength value="1"/>
                       <pattern value=".*[^\s].*"/>
                     </restriction>
                   </simpleType>
                 </attribute>
               </restriction>
             </complexContent>
           </complexType>
         </element>
         <element name="user" maxOccurs="unbounded" minOccurs="0">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <attribute name="identifier">
                   <simpleType>
                     <restriction base="{http://www.w3.org/2001/XMLSchema}string">
                       <minLength value="1"/>
                       <pattern value=".*[^\s].*"/>
                     </restriction>
                   </simpleType>
                 </attribute>
               </restriction>
             </complexContent>
           </complexType>
         </element>
       </sequence>
       <attribute name="identifier">
         <simpleType>
           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
             <minLength value="1"/>
             <pattern value=".*[^\s].*"/>
           </restriction>
         </simpleType>
       </attribute>
       <attribute name="resource">
         <simpleType>
           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
             <minLength value="1"/>
             <pattern value=".*[^\s].*"/>
           </restriction>
         </simpleType>
       </attribute>
       <attribute name="action">
         <simpleType>
           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
             <enumeration value="R"/>
             <enumeration value="W"/>
           </restriction>
         </simpleType>
       </attribute>
     </restriction>
   </complexContent>
 </complexType>
 
  • Field Details

  • Constructor Details

    • Policy

      public Policy()
  • Method Details

    • getGroup

      public List<Policy.Group> getGroup()
      Gets the value of the group property.

      This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the group property.

      For example, to add a new item, do as follows:

       getGroup().add(newItem);
       

      Objects of the following type(s) are allowed in the list Policy.Group

      Returns:
      The value of the group property.
    • getUser

      public List<Policy.User> getUser()
      Gets the value of the user property.

      This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the user property.

      For example, to add a new item, do as follows:

       getUser().add(newItem);
       

      Objects of the following type(s) are allowed in the list Policy.User

      Returns:
      The value of the user property.
    • getIdentifier

      public String getIdentifier()
      Gets the value of the identifier property.
      Returns:
      possible object is String
    • setIdentifier

      public void setIdentifier(String value)
      Sets the value of the identifier property.
      Parameters:
      value - allowed object is String
    • getResource

      public String getResource()
      Gets the value of the resource property.
      Returns:
      possible object is String
    • setResource

      public void setResource(String value)
      Sets the value of the resource property.
      Parameters:
      value - allowed object is String
    • getAction

      public String getAction()
      Gets the value of the action property.
      Returns:
      possible object is String
    • setAction

      public void setAction(String value)
      Sets the value of the action property.
      Parameters:
      value - allowed object is String