Class AuthorPlan

  • All Implemented Interfaces:
    org.apache.iotdb.consensus.common.request.IConsensusRequest

    public class AuthorPlan
    extends PhysicalPlan
    • Constructor Detail

      • AuthorPlan

        public AuthorPlan​(AuthorOperator.AuthorType authorType,
                          java.lang.String userName,
                          java.lang.String roleName,
                          java.lang.String password,
                          java.lang.String newPassword,
                          java.lang.String[] authorizationList,
                          java.util.List<org.apache.iotdb.commons.path.PartialPath> nodeNameList)
                   throws org.apache.iotdb.commons.auth.AuthException
        AuthorPlan Constructor.
        Parameters:
        authorType - author type
        userName - user name
        roleName - role name
        password - password
        newPassword - new password
        authorizationList - authorization list in String[] structure
        nodeNameList - node name in Path structure
        Throws:
        org.apache.iotdb.commons.auth.AuthException - Authentication Exception
      • AuthorPlan

        public AuthorPlan​(Operator.OperatorType operatorType)
                   throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getRoleName

        public java.lang.String getRoleName()
      • getPassword

        public java.lang.String getPassword()
      • getNewPassword

        public java.lang.String getNewPassword()
      • getPermissions

        public java.util.Set<java.lang.Integer> getPermissions()
      • setPermissions

        public void setPermissions​(java.util.Set<java.lang.Integer> permissions)
      • getNodeNameList

        public java.util.List<org.apache.iotdb.commons.path.PartialPath> getNodeNameList()
      • getUserName

        public java.lang.String getUserName()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getPaths

        public java.util.List<org.apache.iotdb.commons.path.PartialPath> getPaths()
        Specified by:
        getPaths in class PhysicalPlan
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • serialize

        public void serialize​(java.io.DataOutputStream stream)
                       throws java.io.IOException
        Description copied from class: PhysicalPlan
        Serialize the plan into the given buffer. All necessary fields will be serialized.
        Overrides:
        serialize in class PhysicalPlan
        Throws:
        java.io.IOException
      • deserialize

        public void deserialize​(java.nio.ByteBuffer buffer)
                         throws org.apache.iotdb.commons.exception.IllegalPathException
        Description copied from class: PhysicalPlan
        Deserialize the plan from the given buffer.
        Overrides:
        deserialize in class PhysicalPlan
        Throws:
        org.apache.iotdb.commons.exception.IllegalPathException