Examples of updateUserPermissions()


Examples of org.drools.repository.security.PermissionManager.updateUserPermissions()

        serviceSecurity.checkSecurityIsAdmin();

        PermissionManager pm = new PermissionManager( rulesRepository );

        log.info( "Updating user permissions for userName [" + userName + "] to [" + perms + "]" );
        pm.updateUserPermissions( userName,
                                  perms );
        rulesRepository.save();
    }

    @Deprecated
View Full Code Here

Examples of org.drools.repository.security.PermissionManager.updateUserPermissions()

        serviceSecurity.checkSecurityIsAdmin();

        PermissionManager pm = new PermissionManager( getRulesRepository() );

        log.info( "Updating user permissions for userName [" + userName + "] to [" + perms + "]" );
        pm.updateUserPermissions( userName,
                                  perms );
        getRulesRepository().save();
    }

    @Restrict("#{identity.loggedIn}")
View Full Code Here

Examples of org.drools.repository.security.PermissionManager.updateUserPermissions()

                perm.add("category=" + rbp.getCategoryPath());
            }
            perms.put(rbp.getRole(), perm);
        }

        permissionManager.updateUserPermissions(userName, perms);
    }

}
View Full Code Here

Examples of org.drools.repository.security.PermissionManager.updateUserPermissions()

        checkSecurityIsAdmin();

        PermissionManager pm = new PermissionManager( repository );

        log.info( "Updating user permissions for userName [" + userName + "] to [" + perms + "]" );
        pm.updateUserPermissions( userName, perms );
        repository.save();
    }

    @Restrict("#{identity.loggedIn}")
    public String[] listAvailablePermissionTypes() {
View Full Code Here

Examples of org.drools.repository.security.PermissionManager.updateUserPermissions()

        perm.add("category=" + rbp.getCategoryPath());
      }
      perms.put(rbp.getRole(), perm);
    }

    permissionManager.updateUserPermissions(userName, perms);
  }

}
View Full Code Here

Examples of org.drools.repository.security.PermissionManager.updateUserPermissions()

            put("package.admin", new ArrayList<String>() {{add("1234567890");}});
            put("package.developer", new ArrayList<String>() {{add("1"); add("2");}});
            put("analyst", new ArrayList<String>() {{add("HR");}});
            put("admin", new ArrayList<String>());
        }};
        pm.updateUserPermissions("wankle", perms);
        Map<String, List<String>> perms_ = pm.retrieveUserPermissions("wankle");


        UserInfo info = new UserInfo(repo);
        info.setProperty("inbox", "something", new UserInfo.Val("boo"));
View Full Code Here

Examples of org.drools.repository.security.PermissionManager.updateUserPermissions()

        assertEquals("boo", info.getProperty("inbox", "another").value);

        assertEquals(perms_.size(), pm.retrieveUserPermissions("wankle").size());


        pm.updateUserPermissions("wankle", perms_);
        info = new UserInfo(repo);
        assertEquals("boo", info.getProperty("inbox", "another").value);

        pm.removeUserPermissions("wankle");
        info = new UserInfo(repo);
View Full Code Here

Examples of org.drools.repository.security.PermissionManager.updateUserPermissions()

                perm.add("category=" + rbp.getCategoryPath());
            }
            perms.put(rbp.getRole(), perm);
        }

        permissionManager.updateUserPermissions(userName, perms);
    }

}
View Full Code Here

Examples of org.drools.repository.security.PermissionManager.updateUserPermissions()

        perm.add("category=" + rbp.getCategoryPath());
      }
      perms.put(rbp.getRole(), perm);
    }

    permissionManager.updateUserPermissions(userName, perms);
  }

}
View Full Code Here

Examples of org.drools.repository.security.PermissionManager.updateUserPermissions()

        }

        PermissionManager pm = new PermissionManager( repository );
        System.err.println( perms );
        log.info( "Updating user permissions for userName [" + userName + "] to [" + perms + "]" );
        pm.updateUserPermissions( userName,
                                  perms );
        repository.save();
    }

    @Restrict("#{identity.loggedIn}")
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.