Skip to content

Commit c5f1d96

Browse files
committed
docs: use appropriate javadoc url syntax (#77)
1 parent d2a8d05 commit c5f1d96

20 files changed

+198
-126
lines changed

src/main/java/com/coveo/pushapiclient/ApiUrl.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010

1111
/**
1212
* Private util class to extract dynamic parts from a API URL Handles extraction of identifiers and
13-
* platform URL from a source URL. @See https://docs.coveo.com/en/1546#push-api-url
14-
* https://docs.coveo.com/en/3295#stream-api-url
13+
* platform URL from a source URL.
14+
*
15+
* @see <a href="https://docs.coveo.com/en/1546#push-api-url">Push API url</a>
16+
* @see <a href="https://docs.coveo.com/en/3295#stream-api-url">Stream API url</a>
1517
*/
1618
class ApiUrl {
1719
private final String organizationId;

src/main/java/com/coveo/pushapiclient/BatchIdentity.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
import com.google.gson.JsonObject;
55
import java.util.List;
66

7-
/** See [Manage Batches of Security Identities](https://docs.coveo.com/en/55) */
7+
/**
8+
* @see <a href="https://docs.coveo.com/en/55">Manage Batches of Security Identities</a>
9+
*/
810
public class BatchIdentity {
911

1012
private List<SecurityIdentityModel> members;

src/main/java/com/coveo/pushapiclient/BatchIdentityRecord.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
import com.google.gson.JsonObject;
44

5-
/** See [BatchIdentityBody](https://docs.coveo.com/en/139#batchidentitybody) */
5+
/**
6+
* @see <a href="https://docs.coveo.com/en/139#batchidentitybody">BatchIdentityBody]</a>
7+
*/
68
public class BatchIdentityRecord {
79

810
private JsonObject[] members;

src/main/java/com/coveo/pushapiclient/BatchUpdate.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
import java.util.List;
55
import java.util.Objects;
66

7-
/** See [Manage Batches of Items in a Push Source](https://docs.coveo.com/en/90) */
7+
/**
8+
* @see <a href="https://docs.coveo.com/en/90">Manage Batches of Items in a Push Source</a>
9+
*/
810
public class BatchUpdate {
911

1012
private final List<DocumentBuilder> addOrUpdate;

src/main/java/com/coveo/pushapiclient/BatchUpdateRecord.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
import com.google.gson.JsonObject;
44
import java.util.Arrays;
55

6-
/** See [BatchDocumentBody](https://docs.coveo.com/en/75/#batchdocumentbody) */
6+
/**
7+
* @see <a href="https://docs.coveo.com/en/75/#batchdocumentbody">BatchDocumentBody</a>
8+
*/
79
public class BatchUpdateRecord {
810

911
private final JsonObject[] addOrUpdate;

src/main/java/com/coveo/pushapiclient/CatalogSource.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ public class CatalogSource implements StreamEnabledSource {
1515
* @param platformClient
1616
* @param name The name of the source to create
1717
* @param sourceVisibility The security option that should be applied to the content of the
18-
* source. See [Content Security](https://docs.coveo.com/en/1779).
18+
* source.
19+
* @see <a href="https://docs.coveo.com/en/1779">Content Security</a>
1920
* @return
2021
* @throws IOException
2122
* @throws InterruptedException

src/main/java/com/coveo/pushapiclient/DocumentBuilder.java

Lines changed: 56 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ public class DocumentBuilder {
2929
private final Document document;
3030

3131
/**
32-
* @param uri the URI of the document. See {@link Document#uri}
33-
* @param title the title of the document. See {@link Document#title}
32+
* @param uri the URI of the document.
33+
* @see {@link Document#uri}
34+
* @param title the title of the document.
35+
* @see {@link Document#title}
3436
*/
3537
public DocumentBuilder(String uri, String title) {
3638
this.document = new Document();
@@ -43,8 +45,9 @@ public Document getDocument() {
4345
}
4446

4547
/**
46-
* Set the data of the document. See {@link Document#data}
48+
* Set the data of the document.
4749
*
50+
* @see {@link Document#data}
4851
* @param data
4952
* @return
5053
*/
@@ -54,8 +57,9 @@ public DocumentBuilder withData(String data) {
5457
}
5558

5659
/**
57-
* Set the date of the document. See {@link Document#date}
60+
* Set the date of the document.
5861
*
62+
* @see {@link Document#date}
5963
* @param date
6064
* @return
6165
*/
@@ -66,8 +70,9 @@ public DocumentBuilder withDate(String date) {
6670
}
6771

6872
/**
69-
* Set the date of the document. See {@link Document#date}
73+
* Set the date of the document.
7074
*
75+
* @see {@link Document#date}
7176
* @param date
7277
* @return
7378
*/
@@ -78,8 +83,9 @@ public DocumentBuilder withDate(Long date) {
7883
}
7984

8085
/**
81-
* Set the date of the document. See {@link Document#date}
86+
* Set the date of the document.
8287
*
88+
* @see {@link Document#date}
8389
* @param date
8490
* @return
8591
*/
@@ -90,8 +96,9 @@ public DocumentBuilder withDate(Date date) {
9096
}
9197

9298
/**
93-
* Set the date of the document. See {@link Document#date}
99+
* Set the date of the document.
94100
*
101+
* @see {@link Document#date}
95102
* @param date
96103
* @return
97104
*/
@@ -101,8 +108,9 @@ public DocumentBuilder withDate(DateTime date) {
101108
}
102109

103110
/**
104-
* Set the modified date of the document. See {@link Document#modifiedDate}
111+
* Set the modified date of the document.
105112
*
113+
* @see {@link Document#modifiedDate}
106114
* @param date
107115
* @return
108116
*/
@@ -113,8 +121,9 @@ public DocumentBuilder withModifiedDate(String date) {
113121
}
114122

115123
/**
116-
* Set the modified date of the document. See {@link Document#modifiedDate}
124+
* Set the modified date of the document.
117125
*
126+
* @see {@link Document#modifiedDate}
118127
* @param date
119128
* @return
120129
*/
@@ -125,8 +134,9 @@ public DocumentBuilder withModifiedDate(Long date) {
125134
}
126135

127136
/**
128-
* Set the modified date of the document. See {@link Document#modifiedDate}
137+
* Set the modified date of the document.
129138
*
139+
* @see {@link Document#modifiedDate}
130140
* @param date
131141
* @return
132142
*/
@@ -136,8 +146,9 @@ public DocumentBuilder withModifiedDate(DateTime date) {
136146
}
137147

138148
/**
139-
* Set the modified date of the document. See {@link Document#modifiedDate}
149+
* Set the modified date of the document.
140150
*
151+
* @see {@link Document#modifiedDate}
141152
* @param date
142153
* @return
143154
*/
@@ -148,8 +159,9 @@ public DocumentBuilder withModifiedDate(Date date) {
148159
}
149160

150161
/**
151-
* Set the permanentID of the document. See {@link Document#permanentId}
162+
* Set the permanentID of the document.
152163
*
164+
* @see {@link Document#permanentId}
153165
* @param permanentId
154166
* @return
155167
*/
@@ -159,9 +171,9 @@ public DocumentBuilder withPermanentId(String permanentId) {
159171
}
160172

161173
/**
162-
* Set the base64 encoded, compressed binary data of the document. See {@link
163-
* Document#compressedBinaryData}
174+
* Set the base64 encoded, compressed binary data of the document.
164175
*
176+
* @see {@link Document#compressedBinaryData}
165177
* @param compressedBinaryData
166178
* @return
167179
*/
@@ -171,9 +183,9 @@ public DocumentBuilder withCompressedBinaryData(CompressedBinaryData compressedB
171183
}
172184

173185
/**
174-
* Set the file container file ID for the compressed binary data of the document. See {@link
175-
* Document#compressedBinaryDataFileId}
186+
* Set the file container file ID for the compressed binary data of the document.
176187
*
188+
* @see {@link Document#compressedBinaryDataFileId}
177189
* @param compressedBinaryDataFileId
178190
* @return
179191
*/
@@ -183,8 +195,9 @@ public DocumentBuilder withCompressedBinaryDataFileId(String compressedBinaryDat
183195
}
184196

185197
/**
186-
* Set the file extension on the document. See {@link Document#fileExtension}
198+
* Set the file extension on the document.
187199
*
200+
* @see {@link Document#fileExtension}
188201
* @param fileExtension
189202
* @return
190203
*/
@@ -195,8 +208,9 @@ public DocumentBuilder withFileExtension(String fileExtension) {
195208
}
196209

197210
/**
198-
* Set the parentID on the document. See {@link Document#parentId}
211+
* Set the parentID on the document.
199212
*
213+
* @see {@link Document#parentId}
200214
* @param parentID
201215
* @return
202216
*/
@@ -206,8 +220,9 @@ public DocumentBuilder withParentID(String parentID) {
206220
}
207221

208222
/**
209-
* Set the clickableURI on the document. See {@link Document#clickableUri}
223+
* Set the clickableURI on the document.
210224
*
225+
* @see {@link Document#clickableUri}
211226
* @param clickableUri
212227
* @return
213228
*/
@@ -217,8 +232,9 @@ public DocumentBuilder withClickableUri(String clickableUri) {
217232
}
218233

219234
/**
220-
* Set the author on the document. See {@link Document#author}
235+
* Set the author on the document.
221236
*
237+
* @see {@link Document#author}
222238
* @param author
223239
* @return
224240
*/
@@ -228,8 +244,9 @@ public DocumentBuilder withAuthor(String author) {
228244
}
229245

230246
/**
231-
* Add a single metadata key and value pair on the document. See {@link Document#metadata}
247+
* Add a single metadata key and value pair on the document.
232248
*
249+
* @see {@link Document#metadata}
233250
* @param key
234251
* @param metadataValue
235252
* @return
@@ -240,8 +257,9 @@ public DocumentBuilder withMetadataValue(String key, String metadataValue) {
240257
}
241258

242259
/**
243-
* Add a single metadata key and value pair on the document. See {@link Document#metadata}
260+
* Add a single metadata key and value pair on the document.
244261
*
262+
* @see {@link Document#metadata}
245263
* @param key
246264
* @param metadataValue
247265
* @return
@@ -252,8 +270,9 @@ public DocumentBuilder withMetadataValue(String key, String[] metadataValue) {
252270
}
253271

254272
/**
255-
* Add a single metadata key and value pair on the document. See {@link Document#metadata}
273+
* Add a single metadata key and value pair on the document.
256274
*
275+
* @see {@link Document#metadata}
257276
* @param key
258277
* @param metadataValue
259278
* @return
@@ -264,8 +283,9 @@ public DocumentBuilder withMetadataValue(String key, Integer metadataValue) {
264283
}
265284

266285
/**
267-
* Add a single metadata key and value pair on the document. See {@link Document#metadata}
286+
* Add a single metadata key and value pair on the document.
268287
*
288+
* @see {@link Document#metadata}
269289
* @param key
270290
* @param metadataValue
271291
* @return
@@ -276,8 +296,9 @@ public DocumentBuilder withMetadataValue(String key, Integer[] metadataValue) {
276296
}
277297

278298
/**
279-
* Set metadata on the document. See {@link Document#metadata}
299+
* Set metadata on the document.
280300
*
301+
* @see {@link Document#metadata}
281302
* @param metadata
282303
* @return
283304
*/
@@ -287,8 +308,9 @@ public DocumentBuilder withMetadata(Map<String, Object> metadata) {
287308
}
288309

289310
/**
290-
* Set allowed identities on the document. See {@link Document#permissions}
311+
* Set allowed identities on the document.
291312
*
313+
* @see {@link Document#permissions}
292314
* @param allowedPermissions
293315
* @return
294316
*/
@@ -298,8 +320,9 @@ public DocumentBuilder withAllowedPermissions(SecurityIdentityBuilder allowedPer
298320
}
299321

300322
/**
301-
* Set denied identities on the document. See {@link Document#permissions}
323+
* Set denied identities on the document.
302324
*
325+
* @see {@link Document#permissions}
303326
* @param deniedPermissions
304327
* @return
305328
*/
@@ -309,8 +332,9 @@ public DocumentBuilder withDeniedPermissions(SecurityIdentityBuilder deniedPermi
309332
}
310333

311334
/**
312-
* Set allowAnonymous for permissions on the document. See {@link Document#permissions}
335+
* Set allowAnonymous for permissions on the document.
313336
*
337+
* @see {@link Document#permissions}
314338
* @param allowAnonymous
315339
* @return
316340
*/
@@ -320,8 +344,9 @@ public DocumentBuilder withAllowAnonymousUsers(Boolean allowAnonymous) {
320344
}
321345

322346
/**
323-
* Set the fully built out DocumentPermissions array. See {@Link Document#permissions}
347+
* Set the fully built out DocumentPermissions array.
324348
*
349+
* @see {@Link Document#permissions}
325350
* @param documentPermissions
326351
* @return
327352
*/
@@ -383,7 +408,8 @@ private void validateReservedMetadataKeyNames(String key) {
383408
if (reservedKeynames.contains(key)) {
384409
throw new RuntimeException(
385410
String.format(
386-
"Cannot use %s as a metadata key: It is a reserved keynames. See https://docs.coveo.com/en/78/index-content/push-api-reference#json-document-reserved-key-names",
411+
"Cannot use %s as a metadata key: It is a reserved keynames. See"
412+
+ " https://docs.coveo.com/en/78/index-content/push-api-reference#json-document-reserved-key-names",
387413
key));
388414
}
389415
}

src/main/java/com/coveo/pushapiclient/FileContainer.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
import java.util.Map;
44

5-
/** See [Creating a FileContainer](https://docs.coveo.com/en/43) */
5+
/**
6+
* @see <a href="https://docs.coveo.com/en/43">Creating a FileContainer</a>
7+
*/
68
public class FileContainer {
79
public String uploadUri;
810
public String fileId;

0 commit comments

Comments
 (0)