{"action":"created","comment":{"url":"https://api.github.com/repos/argus-authz/argus-pep-server/pulls/comments/96150725","pull_request_review_id":16726447,"id":96150725,"diff_hunk":"@@ -0,0 +1,132 @@\n+/*\n+ * Copyright (c) Members of the EGEE Collaboration. 2006-2010.\n+ * See http://www.eu-egee.org/partners/ for details on the copyright holders.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ *     http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ *\n+ * Authors:\n+ * 2016-\n+ *    Mischa Salle <msalle@nikhef.nl>\n+ *    Rens Visser <rensv@nikhef.nl>\n+ *    NIKHEF Amsterdam, the Netherlands\n+ *    <grid-mw-security@nikhef.nl>\n+ */\n+\n+package org.glite.authz.pep.pip.provider;\n+\n+import org.glite.authz.common.config.AbstractConfigurationBuilder;\n+import org.glite.authz.common.config.ConfigurationException;\n+import org.glite.authz.common.config.IniSectionConfigurationParser;\n+import org.glite.authz.pep.pip.PolicyInformationPoint;\n+\n+import java.io.IOException;\n+\n+import org.ini4j.Ini;\n+import org.slf4j.Logger;\n+import org.slf4j.LoggerFactory;\n+\n+/**\n+ * The configuration parser for the PolicyNamesPIP.\n+ * @author Mischa Salle, Rens Visser\n+ */\n+public class PolicyNamesPIPIniConfigurationParser\n+    implements IniSectionConfigurationParser<PolicyInformationPoint>\n+{\n+    /** Class logger. */\n+    private Logger log = LoggerFactory.getLogger( PolicyNamesPIPIniConfigurationParser.class);\n+\n+    /**\n+     * Name of the {@value} property in ini file which defines the directory\n+     * where the .info files are located.\n+     * @see PolicyNamesPIP#setTrustDir(String)\n+     */\n+    private final static String TRUSTDIR_KEY = \"trustInfoDir\";\n+\n+    /**\n+     * Name of the {@value} property in ini file which defines the time interval\n+     * after which the .info files are reprocessed.\n+     * @see PolicyNamesPIP#setUpdateInterval(long)\n+     */\n+    private final static String UPDATEINTERVAL_KEY = \"updateInterval\";\n+\n+    /**\n+     * Name of the {@value} property in ini file which defines the name of the\n+     * attribute set by this PIP.\n+     * @see PolicyNamesPIP#setAttributeName(String) */\n+    private final static String ATTRIBUTENAME_KEY = \"policyNamesAttribute\";\n+\n+    /**\n+     * {@inheritDoc}\n+     * Creates a {@link PolicyNamesPIP} PIP instance from the information in\n+     * the corresponding {@link Ini.Section}.\n+     * @param iniConfig the INI configuration for this obligation handler\n+     * @param configBuilder the configuration builder currently being populated\n+     * @return PolicyInformationPoint\n+     * @throws ConfigurationException\n+     *     thrown if there is a problem creating the obligation handler from the\n+     *     given information\n+     */\n+    public PolicyInformationPoint parse(Ini.Section iniConfig, AbstractConfigurationBuilder<?> configBuilder)\n+\t\t    throws ConfigurationException {\n+\n+\t    long updateinterval_long = -1;\n+\n+\t    // Get configuration values\n+\t    String id = iniConfig.getName();\n+\t    String trust_dir = iniConfig.get(TRUSTDIR_KEY);","path":"src/main/java/org/glite/authz/pep/pip/provider/PolicyNamesPIPIniConfigurationParser.java","position":null,"original_position":86,"commit_id":"0f1c9fc4c0f6971968abdf3d43a5142e09877c0f","original_commit_id":"4d3a5e18967fb1690bf5c5e43ea13943f5b093cc","user":{"login":"msalle","id":339484,"avatar_url":"https://avatars.githubusercontent.com/u/339484?v=3","gravatar_id":"","url":"https://api.github.com/users/msalle","html_url":"https://github.com/msalle","followers_url":"https://api.github.com/users/msalle/followers","following_url":"https://api.github.com/users/msalle/following{/other_user}","gists_url":"https://api.github.com/users/msalle/gists{/gist_id}","starred_url":"https://api.github.com/users/msalle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msalle/subscriptions","organizations_url":"https://api.github.com/users/msalle/orgs","repos_url":"https://api.github.com/users/msalle/repos","events_url":"https://api.github.com/users/msalle/events{/privacy}","received_events_url":"https://api.github.com/users/msalle/received_events","type":"User","site_admin":false},"body":"done","created_at":"2017-01-15T23:21:07Z","updated_at":"2017-01-15T23:21:07Z","html_url":"https://github.com/argus-authz/argus-pep-server/pull/18#discussion_r96150725","pull_request_url":"https://api.github.com/repos/argus-authz/argus-pep-server/pulls/18","_links":{"self":{"href":"https://api.github.com/repos/argus-authz/argus-pep-server/pulls/comments/96150725"},"html":{"href":"https://github.com/argus-authz/argus-pep-server/pull/18#discussion_r96150725"},"pull_request":{"href":"https://api.github.com/repos/argus-authz/argus-pep-server/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/argus-authz/argus-pep-server/pulls/18","id":101242307,"html_url":"https://github.com/argus-authz/argus-pep-server/pull/18","diff_url":"https://github.com/argus-authz/argus-pep-server/pull/18.diff","patch_url":"https://github.com/argus-authz/argus-pep-server/pull/18.patch","issue_url":"https://api.github.com/repos/argus-authz/argus-pep-server/issues/18","number":18,"state":"open","locked":false,"title":"New pips, second try","user":{"login":"msalle","id":339484,"avatar_url":"https://avatars.githubusercontent.com/u/339484?v=3","gravatar_id":"","url":"https://api.github.com/users/msalle","html_url":"https://github.com/msalle","followers_url":"https://api.github.com/users/msalle/followers","following_url":"https://api.github.com/users/msalle/following{/other_user}","gists_url":"https://api.github.com/users/msalle/gists{/gist_id}","starred_url":"https://api.github.com/users/msalle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msalle/subscriptions","organizations_url":"https://api.github.com/users/msalle/orgs","repos_url":"https://api.github.com/users/msalle/repos","events_url":"https://api.github.com/users/msalle/events{/privacy}","received_events_url":"https://api.github.com/users/msalle/received_events","type":"User","site_admin":false},"body":"Hi Andrea,\r\nhereby a new pull request.","created_at":"2017-01-12T11:33:36Z","updated_at":"2017-01-15T23:21:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"195d03c601e36b9893320487c546b983dc32bcd0","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/argus-authz/argus-pep-server/pulls/18/commits","review_comments_url":"https://api.github.com/repos/argus-authz/argus-pep-server/pulls/18/comments","review_comment_url":"https://api.github.com/repos/argus-authz/argus-pep-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/argus-authz/argus-pep-server/issues/18/comments","statuses_url":"https://api.github.com/repos/argus-authz/argus-pep-server/statuses/0f1c9fc4c0f6971968abdf3d43a5142e09877c0f","head":{"label":"msalle:new_pips_v2","ref":"new_pips_v2","sha":"0f1c9fc4c0f6971968abdf3d43a5142e09877c0f","user":{"login":"msalle","id":339484,"avatar_url":"https://avatars.githubusercontent.com/u/339484?v=3","gravatar_id":"","url":"https://api.github.com/users/msalle","html_url":"https://github.com/msalle","followers_url":"https://api.github.com/users/msalle/followers","following_url":"https://api.github.com/users/msalle/following{/other_user}","gists_url":"https://api.github.com/users/msalle/gists{/gist_id}","starred_url":"https://api.github.com/users/msalle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msalle/subscriptions","organizations_url":"https://api.github.com/users/msalle/orgs","repos_url":"https://api.github.com/users/msalle/repos","events_url":"https://api.github.com/users/msalle/events{/privacy}","received_events_url":"https://api.github.com/users/msalle/received_events","type":"User","site_admin":false},"repo":{"id":19693856,"name":"argus-pep-server","full_name":"msalle/argus-pep-server","owner":{"login":"msalle","id":339484,"avatar_url":"https://avatars.githubusercontent.com/u/339484?v=3","gravatar_id":"","url":"https://api.github.com/users/msalle","html_url":"https://github.com/msalle","followers_url":"https://api.github.com/users/msalle/followers","following_url":"https://api.github.com/users/msalle/following{/other_user}","gists_url":"https://api.github.com/users/msalle/gists{/gist_id}","starred_url":"https://api.github.com/users/msalle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msalle/subscriptions","organizations_url":"https://api.github.com/users/msalle/orgs","repos_url":"https://api.github.com/users/msalle/repos","events_url":"https://api.github.com/users/msalle/events{/privacy}","received_events_url":"https://api.github.com/users/msalle/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/msalle/argus-pep-server","description":"Argus PEP Server","fork":true,"url":"https://api.github.com/repos/msalle/argus-pep-server","forks_url":"https://api.github.com/repos/msalle/argus-pep-server/forks","keys_url":"https://api.github.com/repos/msalle/argus-pep-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/msalle/argus-pep-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/msalle/argus-pep-server/teams","hooks_url":"https://api.github.com/repos/msalle/argus-pep-server/hooks","issue_events_url":"https://api.github.com/repos/msalle/argus-pep-server/issues/events{/number}","events_url":"https://api.github.com/repos/msalle/argus-pep-server/events","assignees_url":"https://api.github.com/repos/msalle/argus-pep-server/assignees{/user}","branches_url":"https://api.github.com/repos/msalle/argus-pep-server/branches{/branch}","tags_url":"https://api.github.com/repos/msalle/argus-pep-server/tags","blobs_url":"https://api.github.com/repos/msalle/argus-pep-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/msalle/argus-pep-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/msalle/argus-pep-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/msalle/argus-pep-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/msalle/argus-pep-server/statuses/{sha}","languages_url":"https://api.github.com/repos/msalle/argus-pep-server/languages","stargazers_url":"https://api.github.com/repos/msalle/argus-pep-server/stargazers","contributors_url":"https://api.github.com/repos/msalle/argus-pep-server/contributors","subscribers_url":"https://api.github.com/repos/msalle/argus-pep-server/subscribers","subscription_url":"https://api.github.com/repos/msalle/argus-pep-server/subscription","commits_url":"https://api.github.com/repos/msalle/argus-pep-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/msalle/argus-pep-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/msalle/argus-pep-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/msalle/argus-pep-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/msalle/argus-pep-server/contents/{+path}","compare_url":"https://api.github.com/repos/msalle/argus-pep-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/msalle/argus-pep-server/merges","archive_url":"https://api.github.com/repos/msalle/argus-pep-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/msalle/argus-pep-server/downloads","issues_url":"https://api.github.com/repos/msalle/argus-pep-server/issues{/number}","pulls_url":"https://api.github.com/repos/msalle/argus-pep-server/pulls{/number}","milestones_url":"https://api.github.com/repos/msalle/argus-pep-server/milestones{/number}","notifications_url":"https://api.github.com/repos/msalle/argus-pep-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/msalle/argus-pep-server/labels{/name}","releases_url":"https://api.github.com/repos/msalle/argus-pep-server/releases{/id}","deployments_url":"https://api.github.com/repos/msalle/argus-pep-server/deployments","created_at":"2014-05-12T10:00:29Z","updated_at":"2014-05-12T12:08:16Z","pushed_at":"2017-01-15T23:18:49Z","git_url":"git://github.com/msalle/argus-pep-server.git","ssh_url":"git@github.com:msalle/argus-pep-server.git","clone_url":"https://github.com/msalle/argus-pep-server.git","svn_url":"https://github.com/msalle/argus-pep-server","homepage":null,"size":1643,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"1_7"}},"base":{"label":"argus-authz:1_7","ref":"1_7","sha":"18394688aebb80d9067493f1a0fa15d02c326dad","user":{"login":"argus-authz","id":1741773,"avatar_url":"https://avatars.githubusercontent.com/u/1741773?v=3","gravatar_id":"","url":"https://api.github.com/users/argus-authz","html_url":"https://github.com/argus-authz","followers_url":"https://api.github.com/users/argus-authz/followers","following_url":"https://api.github.com/users/argus-authz/following{/other_user}","gists_url":"https://api.github.com/users/argus-authz/gists{/gist_id}","starred_url":"https://api.github.com/users/argus-authz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/argus-authz/subscriptions","organizations_url":"https://api.github.com/users/argus-authz/orgs","repos_url":"https://api.github.com/users/argus-authz/repos","events_url":"https://api.github.com/users/argus-authz/events{/privacy}","received_events_url":"https://api.github.com/users/argus-authz/received_events","type":"Organization","site_admin":false},"repo":{"id":4432539,"name":"argus-pep-server","full_name":"argus-authz/argus-pep-server","owner":{"login":"argus-authz","id":1741773,"avatar_url":"https://avatars.githubusercontent.com/u/1741773?v=3","gravatar_id":"","url":"https://api.github.com/users/argus-authz","html_url":"https://github.com/argus-authz","followers_url":"https://api.github.com/users/argus-authz/followers","following_url":"https://api.github.com/users/argus-authz/following{/other_user}","gists_url":"https://api.github.com/users/argus-authz/gists{/gist_id}","starred_url":"https://api.github.com/users/argus-authz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/argus-authz/subscriptions","organizations_url":"https://api.github.com/users/argus-authz/orgs","repos_url":"https://api.github.com/users/argus-authz/repos","events_url":"https://api.github.com/users/argus-authz/events{/privacy}","received_events_url":"https://api.github.com/users/argus-authz/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/argus-authz/argus-pep-server","description":"Argus PEP Server","fork":false,"url":"https://api.github.com/repos/argus-authz/argus-pep-server","forks_url":"https://api.github.com/repos/argus-authz/argus-pep-server/forks","keys_url":"https://api.github.com/repos/argus-authz/argus-pep-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/argus-authz/argus-pep-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/argus-authz/argus-pep-server/teams","hooks_url":"https://api.github.com/repos/argus-authz/argus-pep-server/hooks","issue_events_url":"https://api.github.com/repos/argus-authz/argus-pep-server/issues/events{/number}","events_url":"https://api.github.com/repos/argus-authz/argus-pep-server/events","assignees_url":"https://api.github.com/repos/argus-authz/argus-pep-server/assignees{/user}","branches_url":"https://api.github.com/repos/argus-authz/argus-pep-server/branches{/branch}","tags_url":"https://api.github.com/repos/argus-authz/argus-pep-server/tags","blobs_url":"https://api.github.com/repos/argus-authz/argus-pep-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/argus-authz/argus-pep-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/argus-authz/argus-pep-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/argus-authz/argus-pep-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/argus-authz/argus-pep-server/statuses/{sha}","languages_url":"https://api.github.com/repos/argus-authz/argus-pep-server/languages","stargazers_url":"https://api.github.com/repos/argus-authz/argus-pep-server/stargazers","contributors_url":"https://api.github.com/repos/argus-authz/argus-pep-server/contributors","subscribers_url":"https://api.github.com/repos/argus-authz/argus-pep-server/subscribers","subscription_url":"https://api.github.com/repos/argus-authz/argus-pep-server/subscription","commits_url":"https://api.github.com/repos/argus-authz/argus-pep-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/argus-authz/argus-pep-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/argus-authz/argus-pep-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/argus-authz/argus-pep-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/argus-authz/argus-pep-server/contents/{+path}","compare_url":"https://api.github.com/repos/argus-authz/argus-pep-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/argus-authz/argus-pep-server/merges","archive_url":"https://api.github.com/repos/argus-authz/argus-pep-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/argus-authz/argus-pep-server/downloads","issues_url":"https://api.github.com/repos/argus-authz/argus-pep-server/issues{/number}","pulls_url":"https://api.github.com/repos/argus-authz/argus-pep-server/pulls{/number}","milestones_url":"https://api.github.com/repos/argus-authz/argus-pep-server/milestones{/number}","notifications_url":"https://api.github.com/repos/argus-authz/argus-pep-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/argus-authz/argus-pep-server/labels{/name}","releases_url":"https://api.github.com/repos/argus-authz/argus-pep-server/releases{/id}","deployments_url":"https://api.github.com/repos/argus-authz/argus-pep-server/deployments","created_at":"2012-05-24T12:30:38Z","updated_at":"2017-01-10T11:36:01Z","pushed_at":"2017-01-15T23:18:51Z","git_url":"git://github.com/argus-authz/argus-pep-server.git","ssh_url":"git@github.com:argus-authz/argus-pep-server.git","clone_url":"https://github.com/argus-authz/argus-pep-server.git","svn_url":"https://github.com/argus-authz/argus-pep-server","homepage":null,"size":15083,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":3,"default_branch":"1_7"}},"_links":{"self":{"href":"https://api.github.com/repos/argus-authz/argus-pep-server/pulls/18"},"html":{"href":"https://github.com/argus-authz/argus-pep-server/pull/18"},"issue":{"href":"https://api.github.com/repos/argus-authz/argus-pep-server/issues/18"},"comments":{"href":"https://api.github.com/repos/argus-authz/argus-pep-server/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/argus-authz/argus-pep-server/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/argus-authz/argus-pep-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/argus-authz/argus-pep-server/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/argus-authz/argus-pep-server/statuses/0f1c9fc4c0f6971968abdf3d43a5142e09877c0f"}}}}
{"actor":{"display_login":"msalle"}}