コード例 #1
0
 private void updateWhitelist(final List<String> rules) {
   try {
     ImportUtils.setSubvertSecurityScheme(true);
     whitelistManager.updateRules(rules, false);
   } finally {
     ImportUtils.setSubvertSecurityScheme(false);
   }
 }
コード例 #2
0
  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();
  }