Guest User

Untitled

a guest
Aug 5th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.04 KB | None | 0 0
  1. <!-- Search NG -->
  2. <class>
  3. <!-- Search response -->
  4. <name>SearchNGResponse</name>
  5. <version>1.0.0+</version>
  6. <superClass>NexusResponse</superClass>
  7. <description>REST Response object for a list of search results, contains the typical 'data' parameter, which is a list of search results.</description>
  8. <annotations>
  9. <annotation>@com.thoughtworks.xstream.annotations.XStreamAlias( value = "search-results" )</annotation>
  10. <annotation>@javax.xml.bind.annotation.XmlRootElement( name = "search-results" )</annotation>
  11. <annotation>@javax.xml.bind.annotation.XmlAccessorType(javax.xml.bind.annotation.XmlAccessType.FIELD)</annotation>
  12. </annotations>
  13. <fields>
  14. <field>
  15. <name>totalCount</name>
  16. <version>1.0.0+</version>
  17. <type>int</type>
  18. <required>true</required>
  19. <description>The grand total number of results found on index.</description>
  20. </field>
  21. <field>
  22. <name>from</name>
  23. <version>1.0.0+</version>
  24. <type>int</type>
  25. <required>true</required>
  26. <description>The starting index of the results.</description>
  27. </field>
  28. <field>
  29. <name>count</name>
  30. <version>1.0.0+</version>
  31. <type>int</type>
  32. <required>true</required>
  33. <description>The number of results in this response.</description>
  34. </field>
  35. <field>
  36. <name>tooManyResults</name>
  37. <version>1.0.0+</version>
  38. <type>boolean</type>
  39. <required>true</required>
  40. <description>Flag that states if too many results were found.</description>
  41. </field>
  42. <field>
  43. <name>data</name>
  44. <version>1.0.0+</version>
  45. <association>
  46. <type>NexusNGArtifact</type>
  47. <multiplicity>*</multiplicity>
  48. </association>
  49. <required>true</required>
  50. <description>List of found artifacts.</description>
  51. <annotations>
  52. <annotation>@javax.xml.bind.annotation.XmlElementWrapper( name = "data" )</annotation>
  53. <annotation>@javax.xml.bind.annotation.XmlElement( name = "artifact" )</annotation>
  54. </annotations>
  55. </field>
  56. </fields>
  57. </class>
  58.  
  59. <class>
  60. <name>NexusNGArtifact</name>
  61. <version>1.0.0+</version>
  62. <description>Artifact details sent back on search requests.</description>
  63. <annotations>
  64. <annotation>@javax.xml.bind.annotation.XmlType( name = "nexus-artifact" )</annotation>
  65. <annotation>@javax.xml.bind.annotation.XmlAccessorType(javax.xml.bind.annotation.XmlAccessType.FIELD)</annotation>
  66. </annotations>
  67. <fields>
  68. <field>
  69. <name>groupId</name>
  70. <version>1.0.0+</version>
  71. <type>String</type>
  72. <required>true</required>
  73. <description>The group id of the artifact.</description>
  74. </field>
  75. <field>
  76. <name>artifactId</name>
  77. <version>1.0.0+</version>
  78. <type>String</type>
  79. <required>true</required>
  80. <description>The artifact id of the artifact.</description>
  81. </field>
  82. <field>
  83. <name>version</name>
  84. <version>1.0.0+</version>
  85. <type>String</type>
  86. <required>true</required>
  87. <description>The version of the artifact.</description>
  88. </field>
  89. <field>
  90. <name>highlightedFragment</name>
  91. <version>1.0.0+</version>
  92. <type>String</type>
  93. <required>false</required>
  94. <description>A HTML highlighted fragment of the matched hit.</description>
  95. </field>
  96. <field>
  97. <name>hits</name>
  98. <version>1.0.0+</version>
  99. <association>
  100. <type>NexusNGArtifactHit</type>
  101. <multiplicity>*</multiplicity>
  102. </association>
  103. <required>true</required>
  104. <description>List of found artifact hits.</description>
  105. <annotations>
  106. <annotation>@javax.xml.bind.annotation.XmlElementWrapper( name = "hits" )</annotation>
  107. <annotation>@javax.xml.bind.annotation.XmlElement( name = "hit" )</annotation>
  108. </annotations>
  109. </field>
  110. </fields>
  111. </class>
  112.  
  113. <class>
  114. <name>NexusNGArtifactHit</name>
  115. <version>1.0.0+</version>
  116. <description>Artifact hit details sent back on search requests.</description>
  117. <annotations>
  118. <annotation>@javax.xml.bind.annotation.XmlType( name = "hit" )</annotation>
  119. <annotation>@javax.xml.bind.annotation.XmlAccessorType(javax.xml.bind.annotation.XmlAccessType.FIELD)</annotation>
  120. </annotations>
  121. <fields>
  122. <field>
  123. <name>contextId</name>
  124. <version>1.0.0+</version>
  125. <type>String</type>
  126. <required>true</required>
  127. <description>The indexing context where the artifact is indexed.</description>
  128. </field>
  129. <field>
  130. <name>repositoryId</name>
  131. <version>1.0.0+</version>
  132. <type>String</type>
  133. <required>true</required>
  134. <description>The repository ID.</description>
  135. </field>
  136. <field>
  137. <name>repositoryName</name>
  138. <version>1.0.0+</version>
  139. <type>String</type>
  140. <required>true</required>
  141. <description>The repository name.</description>
  142. </field>
  143. <field>
  144. <name>repositoryURL</name>
  145. <version>1.0.0+</version>
  146. <type>String</type>
  147. <required>true</required>
  148. <description>The repository base URL.</description>
  149. </field>
  150. <field>
  151. <name>pomLink</name>
  152. <version>1.0.0+</version>
  153. <type>String</type>
  154. <required>false</required>
  155. <description>URL that would give you the pom file.</description>
  156. </field>
  157. <field>
  158. <name>artifactLinks</name>
  159. <version>1.0.0+</version>
  160. <association>
  161. <type>NexusNGArtifactLink</type>
  162. <multiplicity>*</multiplicity>
  163. </association>
  164. <required>true</required>
  165. <description>List of found artifact hits.</description>
  166. <annotations>
  167. <annotation>@javax.xml.bind.annotation.XmlElementWrapper( name = "artifactLinks" )</annotation>
  168. <annotation>@javax.xml.bind.annotation.XmlElement( name = "artifactLink" )</annotation>
  169. </annotations>
  170. </field>
  171. </fields>
  172. </class>
  173.  
  174. <class>
  175. <name>NexusNGArtifactLink</name>
  176. <version>1.0.0+</version>
  177. <description>Artifact hit link details sent back on search requests.</description>
  178. <annotations>
  179. <annotation>@javax.xml.bind.annotation.XmlType( name = "artifactLink" )</annotation>
  180. <annotation>@javax.xml.bind.annotation.XmlAccessorType(javax.xml.bind.annotation.XmlAccessType.FIELD)</annotation>
  181. </annotations>
  182. <fields>
  183. <field>
  184. <name>classifier</name>
  185. <version>1.0.0+</version>
  186. <type>String</type>
  187. <required>true</required>
  188. <description>The classifier of the artifact.</description>
  189. </field>
  190. <field>
  191. <name>packaging</name>
  192. <version>1.0.0+</version>
  193. <type>String</type>
  194. <required>true</required>
  195. <description>The packaging of the artifact.</description>
  196. </field>
  197. <field>
  198. <name>extension</name>
  199. <version>1.0.0+</version>
  200. <type>String</type>
  201. <required>true</required>
  202. <description>The extension of the artifact.</description>
  203. </field>
  204. <field>
  205. <name>artifactLink</name>
  206. <version>1.0.0+</version>
  207. <type>String</type>
  208. <required>false</required>
  209. <description>URL that would give you the artifact file.</description>
  210. </field>
  211. </fields>
  212. </class>
Add Comment
Please, Sign In to add comment