Class SecurityUtil
java.lang.Object
com.logicaldoc.gui.common.client.util.SecurityUtil
Some utility methods related to recurrent security operations
- Since:
- 9.0.1
- Author:
- Marco Meschieri - LogicalDOC
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkPermissionsAndRun
(List<Long> docIds, String[] requiredPermissions, Runnable task) Checks if the user has all the specified permissions on the selected documents and runs the task
-
Method Details
-
checkPermissionsAndRun
public static void checkPermissionsAndRun(List<Long> docIds, String[] requiredPermissions, Runnable task) Checks if the user has all the specified permissions on the selected documents and runs the task- Parameters:
docIds
- Identifier of the documents to checkrequiredPermissions
- The permissions required on the documents selectiontask
- The task to run
-