Class PatchedSearchNGResponse
java.lang.Object
org.sonatype.nexus.rest.model.NexusResponse
org.sonatype.nexus.rest.model.NexusIndexerResponse
org.jenkinsci.plugins.maven_artifact_choicelistprovider.nexus.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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddData(org.sonatype.nexus.rest.model.NexusNGArtifact nexusNGArtifact) Method addData.voidaddRepoDetail(org.sonatype.nexus.rest.model.NexusNGRepositoryDetail nexusNGRepositoryDetail) Method addRepoDetail.intgetCount()Get the number of results in this response.List<org.sonatype.nexus.rest.model.NexusNGArtifact> getData()Method getData.intgetFrom()Get the starting index of the results.List<org.sonatype.nexus.rest.model.NexusNGRepositoryDetail> Method getRepoDetails.intGet the grand total number of results found on index.booleanGet flag that states if result set is collapsed, and shows latest versions only.booleanGet flag that states if too many results were found.voidremoveData(org.sonatype.nexus.rest.model.NexusNGArtifact nexusNGArtifact) Method removeData.voidremoveRepoDetail(org.sonatype.nexus.rest.model.NexusNGRepositoryDetail nexusNGRepositoryDetail) Method removeRepoDetail.voidsetCollapsed(boolean collapsed) Set flag that states if result set is collapsed, and shows latest versions only.voidsetCount(int count) Set the number of results in this response.voidSet list of found artifacts.voidsetFrom(int from) Set the starting index of the results.voidsetRepoDetails(List<org.sonatype.nexus.rest.model.NexusNGRepositoryDetail> repoDetails) Set list of repositories artifacts found in.voidsetTooManyResults(boolean tooManyResults) Set flag that states if too many results were found.voidsetTotalCount(int totalCount) Set the grand total number of results found on index.
-
Constructor Details
-
PatchedSearchNGResponse
public PatchedSearchNGResponse()
-
-
Method Details
-
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
Method getData.- Returns:
- List
-
getFrom
public int getFrom()Get the starting index of the results.- Returns:
- int
-
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
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
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
-