private void checkPermissions(String processDefinitionKey,NamespacePermissionEnum[] permissions){
  JobDefinitionAlternateKeyDto jobDefinitionKey=jobDefinitionHelper.getJobDefinitionKey(processDefinitionKey);
  namespaceSecurityHelper.checkPermission(jobDefinitionKey.getNamespace(),permissions);
}

private void checkPermissions ( String processDefinitionKey , NamespacePermissionEnum [ ] permissions ) { JobDefinitionAlternateKeyDto jobDefinitionKey = jobDefinitionHelper . getJobDefinitionKey ( processDefinitionKey ) ; namespaceSecurityHelper . checkPermission ( jobDefinitionKey . getNamespace ( ) , permissions ) ; }
checks the namespace permissions for the current user for the given process definition key .
