Class PatchedSearchNGResponse

  • All Implemented Interfaces:
    Serializable

    public class PatchedSearchNGResponse
    extends org.sonatype.nexus.rest.model.NexusIndexerResponse
    implements Serializable
    REST Response object for a list of search results, contains the typical 'data' parameter, which is a list of search results. Patched Verison of the Class as the XML returned by Nexus is not valid according to the XSD https://issues.sonatype.org/browse/NEXUS-6755
    Version:
    $Revision$ $Date$
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addData​(org.sonatype.nexus.rest.model.NexusNGArtifact nexusNGArtifact)
      Method addData.
      void addRepoDetail​(org.sonatype.nexus.rest.model.NexusNGRepositoryDetail nexusNGRepositoryDetail)
      Method addRepoDetail.
      int getCount()
      Get the number of results in this response.
      List<org.sonatype.nexus.rest.model.NexusNGArtifact> getData()
      Method getData.
      int getFrom()
      Get the starting index of the results.
      List<org.sonatype.nexus.rest.model.NexusNGRepositoryDetail> getRepoDetails()
      Method getRepoDetails.
      int getTotalCount()
      Get the grand total number of results found on index.
      boolean isCollapsed()
      Get flag that states if result set is collapsed, and shows latest versions only.
      boolean isTooManyResults()
      Get flag that states if too many results were found.
      void removeData​(org.sonatype.nexus.rest.model.NexusNGArtifact nexusNGArtifact)
      Method removeData.
      void removeRepoDetail​(org.sonatype.nexus.rest.model.NexusNGRepositoryDetail nexusNGRepositoryDetail)
      Method removeRepoDetail.
      void setCollapsed​(boolean collapsed)
      Set flag that states if result set is collapsed, and shows latest versions only.
      void setCount​(int count)
      Set the number of results in this response.
      void setData​(List<org.sonatype.nexus.rest.model.NexusNGArtifact> data)
      Set list of found artifacts.
      void setFrom​(int from)
      Set the starting index of the results.
      void setRepoDetails​(List<org.sonatype.nexus.rest.model.NexusNGRepositoryDetail> repoDetails)
      Set list of repositories artifacts found in.
      void setTooManyResults​(boolean tooManyResults)
      Set flag that states if too many results were found.
      void setTotalCount​(int totalCount)
      Set the grand total number of results found on index.
    • Constructor Detail

      • PatchedSearchNGResponse

        public PatchedSearchNGResponse()
    • Method Detail

      • addData

        public void addData​(org.sonatype.nexus.rest.model.NexusNGArtifact nexusNGArtifact)
        Method addData.
        Parameters:
        nexusNGArtifact - TBD
      • addRepoDetail

        public void addRepoDetail​(org.sonatype.nexus.rest.model.NexusNGRepositoryDetail nexusNGRepositoryDetail)
        Method addRepoDetail.
        Parameters:
        nexusNGRepositoryDetail - TBD
      • getCount

        public int getCount()
        Get the number of results in this response.
        Returns:
        int
      • getData

        public List<org.sonatype.nexus.rest.model.NexusNGArtifact> getData()
        Method getData.
        Returns:
        List
      • getFrom

        public int getFrom()
        Get the starting index of the results.
        Returns:
        int
      • getRepoDetails

        public List<org.sonatype.nexus.rest.model.NexusNGRepositoryDetail> getRepoDetails()
        Method getRepoDetails.
        Returns:
        List
      • getTotalCount

        public int getTotalCount()
        Get the grand total number of results found on index.
        Returns:
        int
      • isCollapsed

        public boolean isCollapsed()
        Get flag that states if result set is collapsed, and shows latest versions only.
        Returns:
        boolean
      • isTooManyResults

        public boolean isTooManyResults()
        Get flag that states if too many results were found.
        Returns:
        boolean TBD
      • removeData

        public void removeData​(org.sonatype.nexus.rest.model.NexusNGArtifact nexusNGArtifact)
        Method removeData.
        Parameters:
        nexusNGArtifact - TBD
      • removeRepoDetail

        public void removeRepoDetail​(org.sonatype.nexus.rest.model.NexusNGRepositoryDetail nexusNGRepositoryDetail)
        Method removeRepoDetail.
        Parameters:
        nexusNGRepositoryDetail - TBD
      • setCollapsed

        public void setCollapsed​(boolean collapsed)
        Set flag that states if result set is collapsed, and shows latest versions only.
        Parameters:
        collapsed - TBD
      • setCount

        public void setCount​(int count)
        Set the number of results in this response.
        Parameters:
        count - TBD
      • setData

        public void setData​(List<org.sonatype.nexus.rest.model.NexusNGArtifact> data)
        Set list of found artifacts.
        Parameters:
        data - TBD
      • setFrom

        public void setFrom​(int from)
        Set the starting index of the results.
        Parameters:
        from - TBD
      • setRepoDetails

        public void setRepoDetails​(List<org.sonatype.nexus.rest.model.NexusNGRepositoryDetail> repoDetails)
        Set list of repositories artifacts found in.
        Parameters:
        repoDetails - TBD
      • setTooManyResults

        public void setTooManyResults​(boolean tooManyResults)
        Set flag that states if too many results were found.
        Parameters:
        tooManyResults - TBD
      • setTotalCount

        public void setTotalCount​(int totalCount)
        Set the grand total number of results found on index.
        Parameters:
        totalCount - TBD