{"action":"created","comment":{"url":"https://api.github.com/repos/wso2/product-mdm/pulls/comments/25753710","id":25753710,"diff_hunk":"@@ -0,0 +1,128 @@\n+/*\n+ * Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.\n+ *\n+ *  WSO2 Inc. licenses this file to you under the Apache License,\n+ *  Version 2.0 (the \"License\"); you may not use this file except\n+ *  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,\n+ *  software distributed under the License is distributed on an\n+ *  \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n+ *  KIND, either express or implied. See the License for the\n+ *  specific language governing permissions and limitations\n+ *  under the License.\n+ */\n+\n+package org.wso2.carbon.mdm.mobileservices.windows.common.util;\n+\n+import org.apache.commons.logging.Log;\n+import org.apache.commons.logging.LogFactory;\n+import org.w3c.dom.Document;\n+import org.wso2.carbon.mdm.mobileservices.windows.common.Constants;\n+import org.xml.sax.SAXException;\n+import javax.servlet.ServletContext;\n+import javax.servlet.ServletContextEvent;\n+import javax.servlet.ServletContextListener;\n+import javax.xml.parsers.DocumentBuilder;\n+import javax.xml.parsers.DocumentBuilderFactory;\n+import javax.xml.parsers.ParserConfigurationException;\n+import java.io.File;\n+import java.io.IOException;\n+\n+import org.wso2.carbon.mdm.mobileservices.windows.common.beans.WindowsPluginProperties;\n+\n+/**\n+ * This class performs one time operations.\n+ */\n+public class ConfigInitializerContextListener implements ServletContextListener {\n+\n+    public static final int INITIAL_VALUE = 0;\n+    private static Log log = LogFactory.getLog(ConfigInitializerContextListener.class);\n+    private enum PropertyName {","path":"modules/mobile-agents/windows/jax-rs/src/main/java/org/wso2/carbon/mdm/mobileservices/windows/common/util/ConfigInitializerContextListener.java","position":44,"original_position":44,"commit_id":"03f3fb46acdd3c6d30d498ffc0b3c7f21562ea7c","original_commit_id":"03f3fb46acdd3c6d30d498ffc0b3c7f21562ea7c","user":{"login":"asokaravinda","id":9691383,"avatar_url":"https://avatars.githubusercontent.com/u/9691383?v=3","gravatar_id":"","url":"https://api.github.com/users/asokaravinda","html_url":"https://github.com/asokaravinda","followers_url":"https://api.github.com/users/asokaravinda/followers","following_url":"https://api.github.com/users/asokaravinda/following{/other_user}","gists_url":"https://api.github.com/users/asokaravinda/gists{/gist_id}","starred_url":"https://api.github.com/users/asokaravinda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asokaravinda/subscriptions","organizations_url":"https://api.github.com/users/asokaravinda/orgs","repos_url":"https://api.github.com/users/asokaravinda/repos","events_url":"https://api.github.com/users/asokaravinda/events{/privacy}","received_events_url":"https://api.github.com/users/asokaravinda/received_events","type":"User","site_admin":false},"body":"Here the enum attributes refers to all the properties within the property file which, some of are related to key store (two passwords) and other three are properties of the certificate. Please comment if that needs to be changed","created_at":"2015-03-04T05:54:06Z","updated_at":"2015-03-04T05:54:06Z","html_url":"https://github.com/wso2/product-mdm/pull/17#discussion_r25753710","pull_request_url":"https://api.github.com/repos/wso2/product-mdm/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/wso2/product-mdm/pulls/comments/25753710"},"html":{"href":"https://github.com/wso2/product-mdm/pull/17#discussion_r25753710"},"pull_request":{"href":"https://api.github.com/repos/wso2/product-mdm/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/wso2/product-mdm/pulls/17","id":29440001,"html_url":"https://github.com/wso2/product-mdm/pull/17","diff_url":"https://github.com/wso2/product-mdm/pull/17.diff","patch_url":"https://github.com/wso2/product-mdm/pull/17.patch","issue_url":"https://api.github.com/repos/wso2/product-mdm/issues/17","number":17,"state":"open","locked":false,"title":"Windows MDM Enrolment","user":{"login":"asokaravinda","id":9691383,"avatar_url":"https://avatars.githubusercontent.com/u/9691383?v=3","gravatar_id":"","url":"https://api.github.com/users/asokaravinda","html_url":"https://github.com/asokaravinda","followers_url":"https://api.github.com/users/asokaravinda/followers","following_url":"https://api.github.com/users/asokaravinda/following{/other_user}","gists_url":"https://api.github.com/users/asokaravinda/gists{/gist_id}","starred_url":"https://api.github.com/users/asokaravinda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asokaravinda/subscriptions","organizations_url":"https://api.github.com/users/asokaravinda/orgs","repos_url":"https://api.github.com/users/asokaravinda/repos","events_url":"https://api.github.com/users/asokaravinda/events{/privacy}","received_events_url":"https://api.github.com/users/asokaravinda/received_events","type":"User","site_admin":false},"body":"This has below services implemented,\r\nDiscovery Services (GET and POST)\r\nMS-XCEP Protocol\r\nMS-WSTEP Protocol\r\nSyncML","created_at":"2015-02-17T13:00:40Z","updated_at":"2015-03-04T05:54:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"343ac3403cc78826165960597bd781c7a5b61bb5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wso2/product-mdm/pulls/17/commits","review_comments_url":"https://api.github.com/repos/wso2/product-mdm/pulls/17/comments","review_comment_url":"https://api.github.com/repos/wso2/product-mdm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wso2/product-mdm/issues/17/comments","statuses_url":"https://api.github.com/repos/wso2/product-mdm/statuses/03f3fb46acdd3c6d30d498ffc0b3c7f21562ea7c","head":{"label":"asokaravinda:master","ref":"master","sha":"03f3fb46acdd3c6d30d498ffc0b3c7f21562ea7c","user":{"login":"asokaravinda","id":9691383,"avatar_url":"https://avatars.githubusercontent.com/u/9691383?v=3","gravatar_id":"","url":"https://api.github.com/users/asokaravinda","html_url":"https://github.com/asokaravinda","followers_url":"https://api.github.com/users/asokaravinda/followers","following_url":"https://api.github.com/users/asokaravinda/following{/other_user}","gists_url":"https://api.github.com/users/asokaravinda/gists{/gist_id}","starred_url":"https://api.github.com/users/asokaravinda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asokaravinda/subscriptions","organizations_url":"https://api.github.com/users/asokaravinda/orgs","repos_url":"https://api.github.com/users/asokaravinda/repos","events_url":"https://api.github.com/users/asokaravinda/events{/privacy}","received_events_url":"https://api.github.com/users/asokaravinda/received_events","type":"User","site_admin":false},"repo":{"id":30906592,"name":"product-mdm","full_name":"asokaravinda/product-mdm","owner":{"login":"asokaravinda","id":9691383,"avatar_url":"https://avatars.githubusercontent.com/u/9691383?v=3","gravatar_id":"","url":"https://api.github.com/users/asokaravinda","html_url":"https://github.com/asokaravinda","followers_url":"https://api.github.com/users/asokaravinda/followers","following_url":"https://api.github.com/users/asokaravinda/following{/other_user}","gists_url":"https://api.github.com/users/asokaravinda/gists{/gist_id}","starred_url":"https://api.github.com/users/asokaravinda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asokaravinda/subscriptions","organizations_url":"https://api.github.com/users/asokaravinda/orgs","repos_url":"https://api.github.com/users/asokaravinda/repos","events_url":"https://api.github.com/users/asokaravinda/events{/privacy}","received_events_url":"https://api.github.com/users/asokaravinda/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/asokaravinda/product-mdm","description":"","fork":true,"url":"https://api.github.com/repos/asokaravinda/product-mdm","forks_url":"https://api.github.com/repos/asokaravinda/product-mdm/forks","keys_url":"https://api.github.com/repos/asokaravinda/product-mdm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/asokaravinda/product-mdm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/asokaravinda/product-mdm/teams","hooks_url":"https://api.github.com/repos/asokaravinda/product-mdm/hooks","issue_events_url":"https://api.github.com/repos/asokaravinda/product-mdm/issues/events{/number}","events_url":"https://api.github.com/repos/asokaravinda/product-mdm/events","assignees_url":"https://api.github.com/repos/asokaravinda/product-mdm/assignees{/user}","branches_url":"https://api.github.com/repos/asokaravinda/product-mdm/branches{/branch}","tags_url":"https://api.github.com/repos/asokaravinda/product-mdm/tags","blobs_url":"https://api.github.com/repos/asokaravinda/product-mdm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/asokaravinda/product-mdm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/asokaravinda/product-mdm/git/refs{/sha}","trees_url":"https://api.github.com/repos/asokaravinda/product-mdm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/asokaravinda/product-mdm/statuses/{sha}","languages_url":"https://api.github.com/repos/asokaravinda/product-mdm/languages","stargazers_url":"https://api.github.com/repos/asokaravinda/product-mdm/stargazers","contributors_url":"https://api.github.com/repos/asokaravinda/product-mdm/contributors","subscribers_url":"https://api.github.com/repos/asokaravinda/product-mdm/subscribers","subscription_url":"https://api.github.com/repos/asokaravinda/product-mdm/subscription","commits_url":"https://api.github.com/repos/asokaravinda/product-mdm/commits{/sha}","git_commits_url":"https://api.github.com/repos/asokaravinda/product-mdm/git/commits{/sha}","comments_url":"https://api.github.com/repos/asokaravinda/product-mdm/comments{/number}","issue_comment_url":"https://api.github.com/repos/asokaravinda/product-mdm/issues/comments{/number}","contents_url":"https://api.github.com/repos/asokaravinda/product-mdm/contents/{+path}","compare_url":"https://api.github.com/repos/asokaravinda/product-mdm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/asokaravinda/product-mdm/merges","archive_url":"https://api.github.com/repos/asokaravinda/product-mdm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/asokaravinda/product-mdm/downloads","issues_url":"https://api.github.com/repos/asokaravinda/product-mdm/issues{/number}","pulls_url":"https://api.github.com/repos/asokaravinda/product-mdm/pulls{/number}","milestones_url":"https://api.github.com/repos/asokaravinda/product-mdm/milestones{/number}","notifications_url":"https://api.github.com/repos/asokaravinda/product-mdm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/asokaravinda/product-mdm/labels{/name}","releases_url":"https://api.github.com/repos/asokaravinda/product-mdm/releases{/id}","created_at":"2015-02-17T07:18:06Z","updated_at":"2015-03-03T17:05:01Z","pushed_at":"2015-03-03T17:05:01Z","git_url":"git://github.com/asokaravinda/product-mdm.git","ssh_url":"git@github.com:asokaravinda/product-mdm.git","clone_url":"https://github.com/asokaravinda/product-mdm.git","svn_url":"https://github.com/asokaravinda/product-mdm","homepage":null,"size":9156,"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":"master"}},"base":{"label":"wso2:master","ref":"master","sha":"81afb3dde9ffaa4bae8907676dd83bb1d25febe1","user":{"login":"wso2","id":533043,"avatar_url":"https://avatars.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"repo":{"id":29459213,"name":"product-mdm","full_name":"wso2/product-mdm","owner":{"login":"wso2","id":533043,"avatar_url":"https://avatars.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wso2/product-mdm","description":"","fork":false,"url":"https://api.github.com/repos/wso2/product-mdm","forks_url":"https://api.github.com/repos/wso2/product-mdm/forks","keys_url":"https://api.github.com/repos/wso2/product-mdm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wso2/product-mdm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wso2/product-mdm/teams","hooks_url":"https://api.github.com/repos/wso2/product-mdm/hooks","issue_events_url":"https://api.github.com/repos/wso2/product-mdm/issues/events{/number}","events_url":"https://api.github.com/repos/wso2/product-mdm/events","assignees_url":"https://api.github.com/repos/wso2/product-mdm/assignees{/user}","branches_url":"https://api.github.com/repos/wso2/product-mdm/branches{/branch}","tags_url":"https://api.github.com/repos/wso2/product-mdm/tags","blobs_url":"https://api.github.com/repos/wso2/product-mdm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wso2/product-mdm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wso2/product-mdm/git/refs{/sha}","trees_url":"https://api.github.com/repos/wso2/product-mdm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wso2/product-mdm/statuses/{sha}","languages_url":"https://api.github.com/repos/wso2/product-mdm/languages","stargazers_url":"https://api.github.com/repos/wso2/product-mdm/stargazers","contributors_url":"https://api.github.com/repos/wso2/product-mdm/contributors","subscribers_url":"https://api.github.com/repos/wso2/product-mdm/subscribers","subscription_url":"https://api.github.com/repos/wso2/product-mdm/subscription","commits_url":"https://api.github.com/repos/wso2/product-mdm/commits{/sha}","git_commits_url":"https://api.github.com/repos/wso2/product-mdm/git/commits{/sha}","comments_url":"https://api.github.com/repos/wso2/product-mdm/comments{/number}","issue_comment_url":"https://api.github.com/repos/wso2/product-mdm/issues/comments{/number}","contents_url":"https://api.github.com/repos/wso2/product-mdm/contents/{+path}","compare_url":"https://api.github.com/repos/wso2/product-mdm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wso2/product-mdm/merges","archive_url":"https://api.github.com/repos/wso2/product-mdm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wso2/product-mdm/downloads","issues_url":"https://api.github.com/repos/wso2/product-mdm/issues{/number}","pulls_url":"https://api.github.com/repos/wso2/product-mdm/pulls{/number}","milestones_url":"https://api.github.com/repos/wso2/product-mdm/milestones{/number}","notifications_url":"https://api.github.com/repos/wso2/product-mdm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wso2/product-mdm/labels{/name}","releases_url":"https://api.github.com/repos/wso2/product-mdm/releases{/id}","created_at":"2015-01-19T07:36:01Z","updated_at":"2015-03-04T02:23:56Z","pushed_at":"2015-03-04T02:23:56Z","git_url":"git://github.com/wso2/product-mdm.git","ssh_url":"git@github.com:wso2/product-mdm.git","clone_url":"https://github.com/wso2/product-mdm.git","svn_url":"https://github.com/wso2/product-mdm","homepage":null,"size":11299,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":1,"forks":7,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wso2/product-mdm/pulls/17"},"html":{"href":"https://github.com/wso2/product-mdm/pull/17"},"issue":{"href":"https://api.github.com/repos/wso2/product-mdm/issues/17"},"comments":{"href":"https://api.github.com/repos/wso2/product-mdm/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/wso2/product-mdm/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/wso2/product-mdm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wso2/product-mdm/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/wso2/product-mdm/statuses/03f3fb46acdd3c6d30d498ffc0b3c7f21562ea7c"}}}}