Class SecurityUtil

java.lang.Object
com.logicaldoc.gui.common.client.util.SecurityUtil

public class SecurityUtil extends Object
Some utility methods related to recurrent security operations
Since:
9.0.1
Author:
Marco Meschieri - LogicalDOC
  • 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 check
      requiredPermissions - The permissions required on the documents selection
      task - The task to run