com.ibm.dbb.metadata

Interface BuildResult

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface and Description
      static class  BuildResult.QueryParms
      Query parameters are used to do a generic query for build results.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void addAttachment(java.lang.String name, java.io.InputStream contents)
      Add an attachment to the build result
      void addAttachment(java.lang.String name, java.lang.String contentType, java.io.InputStream contents)
      Add an attachment to the build result
      void addProperty(java.lang.String name, java.util.List<java.lang.String> values)
      Add a property to the build result
      void addProperty(java.lang.String name, java.lang.String value)
      Add a property to the build result
      void deleteAttachment(java.lang.String name)
      Delete an existing attachment(s) with the provided name
      void deleteProperty(java.lang.String name)
      Delete a property on the build result.
      void deleteProperty(java.lang.String name, java.lang.String value)
      Delete a property/value pair on the build result.
      Attachment getAttachment(java.lang.String name)
      Retrieve an attachment from the build result
      java.util.List<Attachment> getAttachments()
      Get all attachments stored in this build result
      Attachment getBuildReport()
      Return the build report HTML for display purpose
      Attachment getBuildReportData()
      Return the build report JSON data
      java.lang.String getGroup()
      Return the group the build belongs to
      java.lang.String getLabel()
      Returns the label of the build result
      java.util.List<java.lang.String> getProperties(java.lang.String name)
      returns all of the values of the named property in the build result
      java.lang.String getProperty(java.lang.String name)
      return the value of the property in the build result.
      java.util.List<java.lang.String> getPropertyNames()
      returns a list of property names in the build result
      int getState()
      Returns the current state of the build result
      int getStatus()
      Returns the current status of the build result
      void setBuildReport(java.io.InputStream contents)
      Set the content of the build report HTML
      void setBuildReportData(java.io.InputStream contents)
      Set the content of the build report JSON data
      void setGroup(java.lang.String group)
      Sets the group to which this BuildResult belongs
      void setLabel(java.lang.String label)
      Sets the BuildResult label
      void setProperty(java.lang.String name, java.util.List<java.lang.String> values)
      Replace a property in the build result
      void setProperty(java.lang.String name, java.lang.String value)
      Replace a property in the build result
      void setState(int value)
      Update the current state of the build result
      void setStatus(int value)
      Update the current status of the build result
    • Method Detail

      • getGroup

        java.lang.String getGroup()
        Return the group the build belongs to
        Returns:
        the group
      • setGroup

        void setGroup(java.lang.String group)
               throws BuildException
        Sets the group to which this BuildResult belongs
        Throws:
        BuildException
      • getLabel

        java.lang.String getLabel()
        Returns the label of the build result
        Returns:
        the label
      • setLabel

        void setLabel(java.lang.String label)
               throws BuildException
        Sets the BuildResult label
        Parameters:
        label - the label
        Throws:
        BuildException
      • setState

        void setState(int value)
               throws BuildException
        Update the current state of the build result
        Parameters:
        value - new state of the build result
        Throws:
        BuildException - an exception occurred
      • getStatus

        int getStatus()
               throws BuildException
        Returns the current status of the build result
        Returns:
        the status
        Throws:
        BuildException
      • setStatus

        void setStatus(int value)
                throws BuildException
        Update the current status of the build result
        Parameters:
        value - new status of the build result
        Throws:
        BuildException - an exception occurred
      • getBuildReport

        Attachment getBuildReport()
                           throws BuildException
        Return the build report HTML for display purpose
        Returns:
        the content of the build report HTML
        Throws:
        BuildException - an exception occurred
      • setBuildReport

        void setBuildReport(java.io.InputStream contents)
                     throws BuildException
        Set the content of the build report HTML
        Parameters:
        contents - the input steam of the contents of the HTML build report. If parameter is null, the current build report will be removed.
        Throws:
        BuildException - an exception occurred
      • getBuildReportData

        Attachment getBuildReportData()
                               throws BuildException
        Return the build report JSON data
        Returns:
        the attachment containing the JSON data
        Throws:
        BuildException - an exception occurred
      • setBuildReportData

        void setBuildReportData(java.io.InputStream contents)
                         throws BuildException
        Set the content of the build report JSON data
        Parameters:
        contents - the input stream of the contents of the build report JSON data. If parameter is null, the current build report JSON data will be removed.
        Throws:
        BuildException - an exception occurred
      • getProperty

        java.lang.String getProperty(java.lang.String name)
                              throws BuildException
        return the value of the property in the build result. Note that if there are multiple values for the property, it is undefined which property value will be returned.
        Parameters:
        name - the name of the property to retrieve
        Returns:
        the value of the property
        Throws:
        BuildException
      • getProperties

        java.util.List<java.lang.String> getProperties(java.lang.String name)
                                                throws BuildException
        returns all of the values of the named property in the build result
        Parameters:
        name - the name of the property to retrieve
        Returns:
        the values of the property
        Throws:
        BuildException
      • getPropertyNames

        java.util.List<java.lang.String> getPropertyNames()
                                                   throws BuildException
        returns a list of property names in the build result
        Returns:
        property names
        Throws:
        BuildException
      • setProperty

        void setProperty(java.lang.String name,
                         java.lang.String value)
                  throws BuildException
        Replace a property in the build result
        Parameters:
        name - the name of the property. If property name already exists, the value will be replaced.
        value - the value of the property. If null, current property, if exists, will be deleted.
        Throws:
        BuildException
      • setProperty

        void setProperty(java.lang.String name,
                         java.util.List<java.lang.String> values)
                  throws BuildException
        Replace a property in the build result
        Parameters:
        name - the name of the property. If property name already exists, the values will be replaced.
        values - the value of the property. If null, current property, if exists, will be deleted.
        Throws:
        BuildException
      • addProperty

        void addProperty(java.lang.String name,
                         java.lang.String value)
                  throws BuildException
        Add a property to the build result
        Parameters:
        name - the name of the property. If property name already exists, the value will be added.
        value - the value of the property.
        Throws:
        BuildException
      • addProperty

        void addProperty(java.lang.String name,
                         java.util.List<java.lang.String> values)
                  throws BuildException
        Add a property to the build result
        Parameters:
        name - the name of the property. If property name already exists, the values will be added.
        values - the value of the property.
        Throws:
        BuildException
      • deleteProperty

        void deleteProperty(java.lang.String name)
                     throws BuildException
        Delete a property on the build result. If the property has multiple values, all will be deleted.
        Parameters:
        name - the name of the property
        Throws:
        BuildException
      • deleteProperty

        void deleteProperty(java.lang.String name,
                            java.lang.String value)
                     throws BuildException
        Delete a property/value pair on the build result.
        Parameters:
        name - the name of the property
        value - the value of the property
        Throws:
        BuildException
      • addAttachment

        void addAttachment(java.lang.String name,
                           java.io.InputStream contents)
                    throws BuildException
        Add an attachment to the build result
        Parameters:
        name - the filename of the attachment to add to the buildResult
        contents - the input stream of the contents of the attachment
        Throws:
        BuildException - an exception occurred
      • addAttachment

        void addAttachment(java.lang.String name,
                           java.lang.String contentType,
                           java.io.InputStream contents)
                    throws BuildException
        Add an attachment to the build result
        Parameters:
        name - the filename of the attachment to add to the buildResult
        contentType - the content type of the attachment
        contents - the input stream of the contents of the attachment
        Throws:
        BuildException - an exception occurred
      • getAttachment

        Attachment getAttachment(java.lang.String name)
                          throws BuildException
        Retrieve an attachment from the build result
        Parameters:
        name - the filename of the attachment
        Returns:
        the attachment
        Throws:
        BuildException
      • deleteAttachment

        void deleteAttachment(java.lang.String name)
                       throws BuildException
        Delete an existing attachment(s) with the provided name
        Parameters:
        name - the name of the attachment(s)
        Throws:
        BuildException - an exception occurred

<IBM Copyright © 2018 IBM Corp. All Rights Reserved.