com.ibm.dbb.repository

Interface BuildResult

    • Method Detail

      • getUrl

        java.lang.String getUrl()
        Return the URL to access the build result
        Specified by:
        getUrl in interface RepositoryObject
        Returns:
        the URL
      • getGroup

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

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

        int getState()
      • setState

        void setState(int value)
      • getStatus

        int getStatus()
      • setStatus

        void setStatus(int value)
      • fetchBuildReport

        java.io.InputStream fetchBuildReport()
                                      throws ConnectionException
        Return the build report HTML for display purpose
        Returns:
        the content of the build report HTML
        Throws:
        ConnectionException - an exception occurred
      • fetchBuildReportData

        java.io.InputStream fetchBuildReportData()
                                          throws ConnectionException
        Return the raw build report data in JSON
        Returns:
        the raw build report data
        Throws:
        ConnectionException - an exception occurred
      • setBuildReport

        void setBuildReport(java.io.InputStream content)
        Set the content of the build report HTML
        Parameters:
        content - the content of the build report
      • setBuildReportData

        void setBuildReportData(java.io.InputStream content)
        Set the raw data of the build report
        Parameters:
        content - the raw data of the build report
      • getProperty

        java.lang.String getProperty(java.lang.String name)
        return the value of the property in the build result
        Parameters:
        name - the name of the property to retrieve
        Returns:
        the value of the property
      • getPropertyValues

        java.util.Set<java.lang.String> getPropertyValues(java.lang.String name)
        Return the value of the property in a Set
        Parameters:
        name - the name of the property
        Returns:
        the values of the property
      • setProperty

        void setProperty(java.lang.String name,
                         java.lang.String value)
        Add a property to the build result
        Parameters:
        name - the name of the property
        value - the value of the property
      • setProperty

        void setProperty(java.lang.String name,
                         java.util.Set<java.lang.String> values)
        Add a property to the build result
        Parameters:
        name - the name of the property
        values - the values of the property
      • addProperty

        void addProperty(java.lang.String name,
                         java.lang.String value)
        Add a property to the build result
        Parameters:
        name - the name of the property
        value - the value of the property
      • addProperty

        void addProperty(java.lang.String name,
                         java.util.Set<java.lang.String> values)
        Add a property to the build result
        Parameters:
        name - the name of the property
        values - the values of the property
      • deleteProperty

        void deleteProperty(java.lang.String name)
        Delete a property with the given name
        Parameters:
        name - the name of the property to be deleted
      • deleteProperty

        void deleteProperty(java.lang.String name,
                            java.lang.String value)
        Delete the property with the given name and given value
        Parameters:
        name - the name of the property
        value - the value of the property
      • getPropertyNames

        java.util.Set<java.lang.String> getPropertyNames()
        Get the names of all properties found in the build result
        Returns:
        the names of all properties
      • fetchAttachment

        java.io.InputStream fetchAttachment(java.lang.String name)
                                     throws ConnectionException
        Retrieve an attachment with the given name
        Parameters:
        name - the name of the attachment
        Returns:
        the content of the attachment
        Throws:
        ConnectionException - an exception occurred
      • fetchAttachment

        java.io.InputStream fetchAttachment(long id)
                                     throws ConnectionException
        Retrieve an attachment with the given ID
        Parameters:
        id - the ID of the attachment
        Returns:
        the content of the attachment
        Throws:
        ConnectionException - an exception occurred
      • addAttachment

        void addAttachment(java.lang.String name,
                           java.io.InputStream content)
                    throws ConnectionException
        Add an attachment to the build result
        Parameters:
        name - the name of the attachment
        content - the content of the attachment
        Throws:
        ConnectionException - an exception occurred
      • addAttachment

        void addAttachment(java.lang.String name,
                           java.io.InputStream content,
                           java.lang.String contentType)
                    throws ConnectionException
        Add an attachment to the build result
        Parameters:
        name - the name of the attachment
        content - the content of the attachment
        contentType - the content type of the attachment
        Throws:
        ConnectionException - an exception occurred
      • updateAttachment

        void updateAttachment(java.lang.String name,
                              java.io.InputStream content)
                       throws ConnectionException
        Update an existing attachment
        Parameters:
        name - the name of the attachment
        content - the updated content
        Throws:
        ConnectionException - an exception occurred
      • updateAttachment

        void updateAttachment(long id,
                              java.io.InputStream content,
                              java.lang.String contentType)
                       throws ConnectionException
        Update an existing attachment
        Parameters:
        id - the id of the attachment
        content - the updated content
        contentType - the content type of the attachment
        Throws:
        ConnectionException - an exception occurred
      • deleteAttachment

        void deleteAttachment(java.lang.String name)
                       throws ConnectionException
        Delete an existing attachment
        Parameters:
        name - the name of the attachment
        Throws:
        ConnectionException - an exception occurred
      • deleteAttachment

        void deleteAttachment(long id)
                       throws ConnectionException
        Delete an existing attachment
        Parameters:
        id - the id of the attachment
        Throws:
        ConnectionException - an exception occurred
      • getAttachmentNames

        java.util.List<java.lang.String> getAttachmentNames()
        Get the names of all attachments stored in this build result
        Returns:
        the names of the attachments
      • getAttachments

        java.util.List<Attachment> getAttachments()
        Get all attachments stored in this build result
        Returns:
        the attachments
      • getAttachments

        java.util.List<Attachment> getAttachments(java.lang.String name)
        Find all attachments with a specific name
        Parameters:
        name - the name of the attachments
        Returns:
        the list of attachments

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