You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @deprecated Callers should use {@link #checkRequiredPermission()} or
340
-
* {@link #hasRequiredPermission()}.
320
+
* @deprecated Callers should use {@link #checkRequiredPermission()} or {@link #hasRequiredPermission()}.
341
321
*/
342
322
@Deprecated
343
323
publicPermissiongetRequiredPermission() {
344
324
returnJenkins.ADMINISTER;
345
325
}
346
326
347
327
/**
348
-
* Checks if the current user has the minimum required permission to view this
349
-
* administrative monitor.
328
+
* Checks if the current user has the minimum required permission to view this administrative monitor.
350
329
* <p>
351
-
* Subclasses may override this method and {@link #hasRequiredPermission()}
352
-
* instead of {@link #getRequiredPermission()} to perform more complex
353
-
* permission checks,
354
-
* for example, checking either {@link Jenkins#MANAGE} or
355
-
* {@link Jenkins#SYSTEM_READ}.
330
+
* Subclasses may override this method and {@link #hasRequiredPermission()} instead of {@link #getRequiredPermission()} to perform more complex permission checks,
331
+
* for example, checking either {@link Jenkins#MANAGE} or {@link Jenkins#SYSTEM_READ}.
356
332
* </p>
357
333
*
358
334
* @see #getRequiredPermission()
@@ -364,14 +340,10 @@ public void checkRequiredPermission() {
364
340
}
365
341
366
342
/**
367
-
* Checks if the current user has the minimum required permission to view this
368
-
* administrative monitor.
343
+
* Checks if the current user has the minimum required permission to view this administrative monitor.
369
344
* <p>
370
-
* Subclasses may override this method and {@link #checkRequiredPermission}
371
-
* instead of {@link #getRequiredPermission()} to perform more complex
372
-
* permission checks,
373
-
* for example, checking either {@link Jenkins#MANAGE} or
374
-
* {@link Jenkins#SYSTEM_READ}.
345
+
* Subclasses may override this method and {@link #checkRequiredPermission} instead of {@link #getRequiredPermission()} to perform more complex permission checks,
346
+
* for example, checking either {@link Jenkins#MANAGE} or {@link Jenkins#SYSTEM_READ}.
375
347
* </p>
376
348
*
377
349
* @see #getRequiredPermission()
@@ -383,11 +355,9 @@ public boolean hasRequiredPermission() {
383
355
}
384
356
385
357
/**
386
-
* Checks if the current user has the minimum required permission to view any
387
-
* administrative monitor.
358
+
* Checks if the current user has the minimum required permission to view any administrative monitor.
388
359
*
389
-
* @return true if the current user has the minimum required permission to view
390
-
* any administrative monitor.
360
+
* @return true if the current user has the minimum required permission to view any administrative monitor.
391
361
*
392
362
* @since 2.468
393
363
*/
@@ -396,8 +366,7 @@ public static boolean hasPermissionToDisplay() {
396
366
}
397
367
398
368
/**
399
-
* Ensure that URLs in this administrative monitor are only accessible to users
400
-
* with {@link #getRequiredPermission()}.
369
+
* Ensure that URLs in this administrative monitor are only accessible to users with {@link #getRequiredPermission()}.
0 commit comments