Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- Search NG -->
- <class>
- <!-- Search response -->
- <name>SearchNGResponse</name>
- <version>1.0.0+</version>
- <superClass>NexusResponse</superClass>
- <description>REST Response object for a list of search results, contains the typical 'data' parameter, which is a list of search results.</description>
- <annotations>
- <annotation>@com.thoughtworks.xstream.annotations.XStreamAlias( value = "search-results" )</annotation>
- <annotation>@javax.xml.bind.annotation.XmlRootElement( name = "search-results" )</annotation>
- <annotation>@javax.xml.bind.annotation.XmlAccessorType(javax.xml.bind.annotation.XmlAccessType.FIELD)</annotation>
- </annotations>
- <fields>
- <field>
- <name>totalCount</name>
- <version>1.0.0+</version>
- <type>int</type>
- <required>true</required>
- <description>The grand total number of results found on index.</description>
- </field>
- <field>
- <name>from</name>
- <version>1.0.0+</version>
- <type>int</type>
- <required>true</required>
- <description>The starting index of the results.</description>
- </field>
- <field>
- <name>count</name>
- <version>1.0.0+</version>
- <type>int</type>
- <required>true</required>
- <description>The number of results in this response.</description>
- </field>
- <field>
- <name>tooManyResults</name>
- <version>1.0.0+</version>
- <type>boolean</type>
- <required>true</required>
- <description>Flag that states if too many results were found.</description>
- </field>
- <field>
- <name>data</name>
- <version>1.0.0+</version>
- <association>
- <type>NexusNGArtifact</type>
- <multiplicity>*</multiplicity>
- </association>
- <required>true</required>
- <description>List of found artifacts.</description>
- <annotations>
- <annotation>@javax.xml.bind.annotation.XmlElementWrapper( name = "data" )</annotation>
- <annotation>@javax.xml.bind.annotation.XmlElement( name = "artifact" )</annotation>
- </annotations>
- </field>
- </fields>
- </class>
- <class>
- <name>NexusNGArtifact</name>
- <version>1.0.0+</version>
- <description>Artifact details sent back on search requests.</description>
- <annotations>
- <annotation>@javax.xml.bind.annotation.XmlType( name = "nexus-artifact" )</annotation>
- <annotation>@javax.xml.bind.annotation.XmlAccessorType(javax.xml.bind.annotation.XmlAccessType.FIELD)</annotation>
- </annotations>
- <fields>
- <field>
- <name>groupId</name>
- <version>1.0.0+</version>
- <type>String</type>
- <required>true</required>
- <description>The group id of the artifact.</description>
- </field>
- <field>
- <name>artifactId</name>
- <version>1.0.0+</version>
- <type>String</type>
- <required>true</required>
- <description>The artifact id of the artifact.</description>
- </field>
- <field>
- <name>version</name>
- <version>1.0.0+</version>
- <type>String</type>
- <required>true</required>
- <description>The version of the artifact.</description>
- </field>
- <field>
- <name>highlightedFragment</name>
- <version>1.0.0+</version>
- <type>String</type>
- <required>false</required>
- <description>A HTML highlighted fragment of the matched hit.</description>
- </field>
- <field>
- <name>hits</name>
- <version>1.0.0+</version>
- <association>
- <type>NexusNGArtifactHit</type>
- <multiplicity>*</multiplicity>
- </association>
- <required>true</required>
- <description>List of found artifact hits.</description>
- <annotations>
- <annotation>@javax.xml.bind.annotation.XmlElementWrapper( name = "hits" )</annotation>
- <annotation>@javax.xml.bind.annotation.XmlElement( name = "hit" )</annotation>
- </annotations>
- </field>
- </fields>
- </class>
- <class>
- <name>NexusNGArtifactHit</name>
- <version>1.0.0+</version>
- <description>Artifact hit details sent back on search requests.</description>
- <annotations>
- <annotation>@javax.xml.bind.annotation.XmlType( name = "hit" )</annotation>
- <annotation>@javax.xml.bind.annotation.XmlAccessorType(javax.xml.bind.annotation.XmlAccessType.FIELD)</annotation>
- </annotations>
- <fields>
- <field>
- <name>contextId</name>
- <version>1.0.0+</version>
- <type>String</type>
- <required>true</required>
- <description>The indexing context where the artifact is indexed.</description>
- </field>
- <field>
- <name>repositoryId</name>
- <version>1.0.0+</version>
- <type>String</type>
- <required>true</required>
- <description>The repository ID.</description>
- </field>
- <field>
- <name>repositoryName</name>
- <version>1.0.0+</version>
- <type>String</type>
- <required>true</required>
- <description>The repository name.</description>
- </field>
- <field>
- <name>repositoryURL</name>
- <version>1.0.0+</version>
- <type>String</type>
- <required>true</required>
- <description>The repository base URL.</description>
- </field>
- <field>
- <name>pomLink</name>
- <version>1.0.0+</version>
- <type>String</type>
- <required>false</required>
- <description>URL that would give you the pom file.</description>
- </field>
- <field>
- <name>artifactLinks</name>
- <version>1.0.0+</version>
- <association>
- <type>NexusNGArtifactLink</type>
- <multiplicity>*</multiplicity>
- </association>
- <required>true</required>
- <description>List of found artifact hits.</description>
- <annotations>
- <annotation>@javax.xml.bind.annotation.XmlElementWrapper( name = "artifactLinks" )</annotation>
- <annotation>@javax.xml.bind.annotation.XmlElement( name = "artifactLink" )</annotation>
- </annotations>
- </field>
- </fields>
- </class>
- <class>
- <name>NexusNGArtifactLink</name>
- <version>1.0.0+</version>
- <description>Artifact hit link details sent back on search requests.</description>
- <annotations>
- <annotation>@javax.xml.bind.annotation.XmlType( name = "artifactLink" )</annotation>
- <annotation>@javax.xml.bind.annotation.XmlAccessorType(javax.xml.bind.annotation.XmlAccessType.FIELD)</annotation>
- </annotations>
- <fields>
- <field>
- <name>classifier</name>
- <version>1.0.0+</version>
- <type>String</type>
- <required>true</required>
- <description>The classifier of the artifact.</description>
- </field>
- <field>
- <name>packaging</name>
- <version>1.0.0+</version>
- <type>String</type>
- <required>true</required>
- <description>The packaging of the artifact.</description>
- </field>
- <field>
- <name>extension</name>
- <version>1.0.0+</version>
- <type>String</type>
- <required>true</required>
- <description>The extension of the artifact.</description>
- </field>
- <field>
- <name>artifactLink</name>
- <version>1.0.0+</version>
- <type>String</type>
- <required>false</required>
- <description>URL that would give you the artifact file.</description>
- </field>
- </fields>
- </class>
Add Comment
Please, Sign In to add comment