Пример #1
0
 private void updateWhitelist(final List<String> rules) {
   try {
     ImportUtils.setSubvertSecurityScheme(true);
     whitelistManager.updateRules(rules, false);
   } finally {
     ImportUtils.setSubvertSecurityScheme(false);
   }
 }
  protected void tearDown() throws Exception {
    user = null;
    secondaryUser = null;
    sr = null;

    ActionContext.getSession().clear();
    ComponentAccessor.getJiraAuthenticationContext().setLoggedInUser(null);
    PermissionManager pm = ManagerFactory.getPermissionManager();
    pm.removeGroupPermissions("jira-user");
    ImportUtils.setSubvertSecurityScheme(false);
    super.tearDown();
  }