{"action":"created","comment":{"url":"https://api.github.com/repos/dotCMS/core/pulls/comments/193197443","pull_request_review_id":126122942,"id":193197443,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MzE5NzQ0Mw==","diff_hunk":"@@ -0,0 +1,205 @@\n+package com.dotcms.business;\n+\n+import com.dotmarketing.beans.Host;\n+import com.dotmarketing.business.APILocator;\n+import com.dotmarketing.business.DotStateException;\n+import com.dotmarketing.exception.DotDataException;\n+import com.dotmarketing.exception.DotSecurityException;\n+import com.dotmarketing.portlets.contentlet.model.Contentlet;\n+import com.dotmarketing.portlets.fileassets.business.FileAsset;\n+import com.dotmarketing.portlets.fileassets.business.FileAssetAPI;\n+import com.dotmarketing.portlets.fileassets.business.IFileAsset;\n+import com.dotmarketing.portlets.folders.model.Folder;\n+import com.dotmarketing.portlets.structure.model.Structure;\n+import com.liferay.portal.model.User;\n+import java.io.File;\n+import java.io.IOException;\n+import java.util.List;\n+import java.util.Map;\n+\n+/**\n+ * @author Jonathan Gamba 6/1/18\n+ */\n+public class LazyFileAssetAPIWrapper implements FileAssetAPI {\n+\n+    private FileAssetAPI fileAssetAPI = null;\n+\n+    private FileAssetAPI getFileAssetAPI() {\n+\n+        if (null == this.fileAssetAPI) {\n+            synchronized (this) {\n+                if (null == this.fileAssetAPI) {\n+                    this.fileAssetAPI = APILocator.getFileAssetAPI();\n+                }\n+            }\n+        }\n+\n+        return fileAssetAPI;\n+    }\n+\n+    @Override\n+    public void createBaseFileAssetFields(Structure structure)\n+            throws DotDataException, DotStateException {\n+        this.getFileAssetAPI().createBaseFileAssetFields(structure);\n+    }\n+\n+    @Override\n+    public FileAsset fromContentlet(Contentlet con) throws DotStateException {\n+        return this.getFileAssetAPI().fromContentlet(con);\n+    }\n+\n+    @Override\n+    public List<FileAsset> fromContentlets(List<Contentlet> cons) throws DotStateException {\n+        return this.getFileAssetAPI().fromContentlets(cons);\n+    }\n+\n+    @Override\n+    public List<IFileAsset> fromContentletsI(List<Contentlet> cons) throws DotStateException {\n+        return this.getFileAssetAPI().fromContentletsI(cons);\n+    }\n+\n+    @Override\n+    public boolean isFileAsset(Contentlet c) {\n+        return this.getFileAssetAPI().isFileAsset(c);\n+    }\n+\n+    @Override\n+    public Map<String, String> getMetaDataMap(Contentlet contentlet, File binFile)\n+            throws DotDataException {\n+        return this.getFileAssetAPI().getMetaDataMap(contentlet, binFile);\n+    }\n+\n+    @Override\n+    public boolean fileNameExists(Host host, Folder folder, String fileName, String identifier)\n+            throws DotDataException {\n+        return this.getFileAssetAPI().fileNameExists(host, folder, fileName, identifier);\n+    }\n+\n+    @Override\n+    public boolean fileNameExists(Host host, Folder folder, String fileName, String identifier,\n+            long languageId) throws DotDataException {\n+        return this.getFileAssetAPI()\n+                .fileNameExists(host, folder, fileName, identifier, languageId);\n+    }\n+\n+    @Override\n+    public String getRelativeAssetPath(FileAsset fa) {\n+        return this.getFileAssetAPI().getRelativeAssetPath(fa);\n+    }\n+\n+    @Override\n+    public List<FileAsset> findFileAssetsByFolder(Folder parentFolder, User user,\n+            boolean respectFrontendRoles) throws DotDataException, DotSecurityException {\n+        return this.getFileAssetAPI()\n+                .findFileAssetsByFolder(parentFolder, user, respectFrontendRoles);\n+    }\n+\n+    @Override\n+    public List<FileAsset> findFileAssetsByHost(Host parentHost, User user,\n+            boolean respectFrontendRoles) throws DotDataException, DotSecurityException {\n+        return this.getFileAssetAPI().findFileAssetsByHost(parentHost, user, respectFrontendRoles);\n+    }\n+\n+    @Override\n+    public List<FileAsset> findFileAssetsByHost(Host parentHost, User user, boolean live,\n+            boolean working, boolean archived, boolean respectFrontendRoles)\n+            throws DotDataException, DotSecurityException {\n+        return this.getFileAssetAPI()\n+                .findFileAssetsByHost(parentHost, user, live, working, archived,\n+                        respectFrontendRoles);\n+    }\n+\n+    @Override\n+    public List<FileAsset> findFileAssetsByFolder(Folder parentFolder, String sortBy, boolean live,\n+            User user, boolean respectFrontendRoles) throws DotDataException, DotSecurityException {\n+        return this.getFileAssetAPI()\n+                .findFileAssetsByFolder(parentFolder, sortBy, live, user, respectFrontendRoles);\n+    }\n+\n+    @Override\n+    public List<FileAsset> findFileAssetsByFolder(Folder parentFolder, String sortBy, boolean live,\n+            boolean working, User user, boolean respectFrontendRoles)\n+            throws DotDataException, DotSecurityException {\n+        return this.getFileAssetAPI()\n+                .findFileAssetsByFolder(parentFolder, sortBy, live, working, user,\n+                        respectFrontendRoles);\n+    }\n+\n+    @Override\n+    public boolean renameFile(Contentlet fileAssetCont, String newName, User user,\n+            boolean respectFrontendRoles)","path":"dotCMS/src/main/java/com/dotcms/business/LazyFileAssetAPIWrapper.java","position":130,"original_position":130,"commit_id":"57fe253480c0a52bde795830ff8c82e5f8ae7446","original_commit_id":"57fe253480c0a52bde795830ff8c82e5f8ae7446","user":{"login":"codacy-bot","id":19940114,"node_id":"MDQ6VXNlcjE5OTQwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://app.codacy.com/assets/images/favicon.png) Issue found: [Parameter 'respectFrontendRoles' is not assigned and could be declared final](https://app.codacy.com/app/dotCMS/core/pullRequest?prid=1721338)","created_at":"2018-06-05T19:43:32Z","updated_at":"2018-06-05T19:43:32Z","html_url":"https://github.com/dotCMS/core/pull/14535#discussion_r193197443","pull_request_url":"https://api.github.com/repos/dotCMS/core/pulls/14535","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/dotCMS/core/pulls/comments/193197443"},"html":{"href":"https://github.com/dotCMS/core/pull/14535#discussion_r193197443"},"pull_request":{"href":"https://api.github.com/repos/dotCMS/core/pulls/14535"}}},"pull_request":{"url":"https://api.github.com/repos/dotCMS/core/pulls/14535","id":191881535,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkxODgxNTM1","html_url":"https://github.com/dotCMS/core/pull/14535","diff_url":"https://github.com/dotCMS/core/pull/14535.diff","patch_url":"https://github.com/dotCMS/core/pull/14535.patch","issue_url":"https://api.github.com/repos/dotCMS/core/issues/14535","number":14535,"state":"open","locked":false,"title":"Issue 13451 13453 jwt","user":{"login":"jgambarios","id":923947,"node_id":"MDQ6VXNlcjkyMzk0Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/923947?v=4","gravatar_id":"","url":"https://api.github.com/users/jgambarios","html_url":"https://github.com/jgambarios","followers_url":"https://api.github.com/users/jgambarios/followers","following_url":"https://api.github.com/users/jgambarios/following{/other_user}","gists_url":"https://api.github.com/users/jgambarios/gists{/gist_id}","starred_url":"https://api.github.com/users/jgambarios/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgambarios/subscriptions","organizations_url":"https://api.github.com/users/jgambarios/orgs","repos_url":"https://api.github.com/users/jgambarios/repos","events_url":"https://api.github.com/users/jgambarios/events{/privacy}","received_events_url":"https://api.github.com/users/jgambarios/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-05-31T21:41:15Z","updated_at":"2018-06-05T19:43:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"abc07f78c5c9322ae2516fd3673a3b9bbc0d38d7","assignee":null,"assignees":[],"requested_reviewers":[{"login":"wezell","id":934364,"node_id":"MDQ6VXNlcjkzNDM2NA==","avatar_url":"https://avatars2.githubusercontent.com/u/934364?v=4","gravatar_id":"","url":"https://api.github.com/users/wezell","html_url":"https://github.com/wezell","followers_url":"https://api.github.com/users/wezell/followers","following_url":"https://api.github.com/users/wezell/following{/other_user}","gists_url":"https://api.github.com/users/wezell/gists{/gist_id}","starred_url":"https://api.github.com/users/wezell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wezell/subscriptions","organizations_url":"https://api.github.com/users/wezell/orgs","repos_url":"https://api.github.com/users/wezell/repos","events_url":"https://api.github.com/users/wezell/events{/privacy}","received_events_url":"https://api.github.com/users/wezell/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/dotCMS/core/pulls/14535/commits","review_comments_url":"https://api.github.com/repos/dotCMS/core/pulls/14535/comments","review_comment_url":"https://api.github.com/repos/dotCMS/core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dotCMS/core/issues/14535/comments","statuses_url":"https://api.github.com/repos/dotCMS/core/statuses/57fe253480c0a52bde795830ff8c82e5f8ae7446","head":{"label":"dotCMS:issue-13451-13453-JWT","ref":"issue-13451-13453-JWT","sha":"57fe253480c0a52bde795830ff8c82e5f8ae7446","user":{"login":"dotCMS","id":1005263,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMDUyNjM=","avatar_url":"https://avatars3.githubusercontent.com/u/1005263?v=4","gravatar_id":"","url":"https://api.github.com/users/dotCMS","html_url":"https://github.com/dotCMS","followers_url":"https://api.github.com/users/dotCMS/followers","following_url":"https://api.github.com/users/dotCMS/following{/other_user}","gists_url":"https://api.github.com/users/dotCMS/gists{/gist_id}","starred_url":"https://api.github.com/users/dotCMS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotCMS/subscriptions","organizations_url":"https://api.github.com/users/dotCMS/orgs","repos_url":"https://api.github.com/users/dotCMS/repos","events_url":"https://api.github.com/users/dotCMS/events{/privacy}","received_events_url":"https://api.github.com/users/dotCMS/received_events","type":"Organization","site_admin":false},"repo":{"id":3729629,"node_id":"MDEwOlJlcG9zaXRvcnkzNzI5NjI5","name":"core","full_name":"dotCMS/core","owner":{"login":"dotCMS","id":1005263,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMDUyNjM=","avatar_url":"https://avatars3.githubusercontent.com/u/1005263?v=4","gravatar_id":"","url":"https://api.github.com/users/dotCMS","html_url":"https://github.com/dotCMS","followers_url":"https://api.github.com/users/dotCMS/followers","following_url":"https://api.github.com/users/dotCMS/following{/other_user}","gists_url":"https://api.github.com/users/dotCMS/gists{/gist_id}","starred_url":"https://api.github.com/users/dotCMS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotCMS/subscriptions","organizations_url":"https://api.github.com/users/dotCMS/orgs","repos_url":"https://api.github.com/users/dotCMS/repos","events_url":"https://api.github.com/users/dotCMS/events{/privacy}","received_events_url":"https://api.github.com/users/dotCMS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dotCMS/core","description":"Source Code for dotCMS Java Enterprise Content Management System","fork":false,"url":"https://api.github.com/repos/dotCMS/core","forks_url":"https://api.github.com/repos/dotCMS/core/forks","keys_url":"https://api.github.com/repos/dotCMS/core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotCMS/core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotCMS/core/teams","hooks_url":"https://api.github.com/repos/dotCMS/core/hooks","issue_events_url":"https://api.github.com/repos/dotCMS/core/issues/events{/number}","events_url":"https://api.github.com/repos/dotCMS/core/events","assignees_url":"https://api.github.com/repos/dotCMS/core/assignees{/user}","branches_url":"https://api.github.com/repos/dotCMS/core/branches{/branch}","tags_url":"https://api.github.com/repos/dotCMS/core/tags","blobs_url":"https://api.github.com/repos/dotCMS/core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotCMS/core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotCMS/core/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotCMS/core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotCMS/core/statuses/{sha}","languages_url":"https://api.github.com/repos/dotCMS/core/languages","stargazers_url":"https://api.github.com/repos/dotCMS/core/stargazers","contributors_url":"https://api.github.com/repos/dotCMS/core/contributors","subscribers_url":"https://api.github.com/repos/dotCMS/core/subscribers","subscription_url":"https://api.github.com/repos/dotCMS/core/subscription","commits_url":"https://api.github.com/repos/dotCMS/core/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotCMS/core/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotCMS/core/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotCMS/core/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotCMS/core/contents/{+path}","compare_url":"https://api.github.com/repos/dotCMS/core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotCMS/core/merges","archive_url":"https://api.github.com/repos/dotCMS/core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotCMS/core/downloads","issues_url":"https://api.github.com/repos/dotCMS/core/issues{/number}","pulls_url":"https://api.github.com/repos/dotCMS/core/pulls{/number}","milestones_url":"https://api.github.com/repos/dotCMS/core/milestones{/number}","notifications_url":"https://api.github.com/repos/dotCMS/core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotCMS/core/labels{/name}","releases_url":"https://api.github.com/repos/dotCMS/core/releases{/id}","deployments_url":"https://api.github.com/repos/dotCMS/core/deployments","created_at":"2012-03-15T15:24:14Z","updated_at":"2018-06-05T14:25:51Z","pushed_at":"2018-06-05T19:38:57Z","git_url":"git://github.com/dotCMS/core.git","ssh_url":"git@github.com:dotCMS/core.git","clone_url":"https://github.com/dotCMS/core.git","svn_url":"https://github.com/dotCMS/core","homepage":"http://dotcms.com","size":330507,"stargazers_count":373,"watchers_count":373,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":313,"mirror_url":null,"archived":false,"open_issues_count":1896,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":313,"open_issues":1896,"watchers":373,"default_branch":"master"}},"base":{"label":"dotCMS:master","ref":"master","sha":"613716713431f36819bc0738b3c41c5bbf04882c","user":{"login":"dotCMS","id":1005263,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMDUyNjM=","avatar_url":"https://avatars3.githubusercontent.com/u/1005263?v=4","gravatar_id":"","url":"https://api.github.com/users/dotCMS","html_url":"https://github.com/dotCMS","followers_url":"https://api.github.com/users/dotCMS/followers","following_url":"https://api.github.com/users/dotCMS/following{/other_user}","gists_url":"https://api.github.com/users/dotCMS/gists{/gist_id}","starred_url":"https://api.github.com/users/dotCMS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotCMS/subscriptions","organizations_url":"https://api.github.com/users/dotCMS/orgs","repos_url":"https://api.github.com/users/dotCMS/repos","events_url":"https://api.github.com/users/dotCMS/events{/privacy}","received_events_url":"https://api.github.com/users/dotCMS/received_events","type":"Organization","site_admin":false},"repo":{"id":3729629,"node_id":"MDEwOlJlcG9zaXRvcnkzNzI5NjI5","name":"core","full_name":"dotCMS/core","owner":{"login":"dotCMS","id":1005263,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMDUyNjM=","avatar_url":"https://avatars3.githubusercontent.com/u/1005263?v=4","gravatar_id":"","url":"https://api.github.com/users/dotCMS","html_url":"https://github.com/dotCMS","followers_url":"https://api.github.com/users/dotCMS/followers","following_url":"https://api.github.com/users/dotCMS/following{/other_user}","gists_url":"https://api.github.com/users/dotCMS/gists{/gist_id}","starred_url":"https://api.github.com/users/dotCMS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotCMS/subscriptions","organizations_url":"https://api.github.com/users/dotCMS/orgs","repos_url":"https://api.github.com/users/dotCMS/repos","events_url":"https://api.github.com/users/dotCMS/events{/privacy}","received_events_url":"https://api.github.com/users/dotCMS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dotCMS/core","description":"Source Code for dotCMS Java Enterprise Content Management System","fork":false,"url":"https://api.github.com/repos/dotCMS/core","forks_url":"https://api.github.com/repos/dotCMS/core/forks","keys_url":"https://api.github.com/repos/dotCMS/core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotCMS/core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotCMS/core/teams","hooks_url":"https://api.github.com/repos/dotCMS/core/hooks","issue_events_url":"https://api.github.com/repos/dotCMS/core/issues/events{/number}","events_url":"https://api.github.com/repos/dotCMS/core/events","assignees_url":"https://api.github.com/repos/dotCMS/core/assignees{/user}","branches_url":"https://api.github.com/repos/dotCMS/core/branches{/branch}","tags_url":"https://api.github.com/repos/dotCMS/core/tags","blobs_url":"https://api.github.com/repos/dotCMS/core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotCMS/core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotCMS/core/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotCMS/core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotCMS/core/statuses/{sha}","languages_url":"https://api.github.com/repos/dotCMS/core/languages","stargazers_url":"https://api.github.com/repos/dotCMS/core/stargazers","contributors_url":"https://api.github.com/repos/dotCMS/core/contributors","subscribers_url":"https://api.github.com/repos/dotCMS/core/subscribers","subscription_url":"https://api.github.com/repos/dotCMS/core/subscription","commits_url":"https://api.github.com/repos/dotCMS/core/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotCMS/core/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotCMS/core/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotCMS/core/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotCMS/core/contents/{+path}","compare_url":"https://api.github.com/repos/dotCMS/core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotCMS/core/merges","archive_url":"https://api.github.com/repos/dotCMS/core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotCMS/core/downloads","issues_url":"https://api.github.com/repos/dotCMS/core/issues{/number}","pulls_url":"https://api.github.com/repos/dotCMS/core/pulls{/number}","milestones_url":"https://api.github.com/repos/dotCMS/core/milestones{/number}","notifications_url":"https://api.github.com/repos/dotCMS/core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotCMS/core/labels{/name}","releases_url":"https://api.github.com/repos/dotCMS/core/releases{/id}","deployments_url":"https://api.github.com/repos/dotCMS/core/deployments","created_at":"2012-03-15T15:24:14Z","updated_at":"2018-06-05T14:25:51Z","pushed_at":"2018-06-05T19:38:57Z","git_url":"git://github.com/dotCMS/core.git","ssh_url":"git@github.com:dotCMS/core.git","clone_url":"https://github.com/dotCMS/core.git","svn_url":"https://github.com/dotCMS/core","homepage":"http://dotcms.com","size":330507,"stargazers_count":373,"watchers_count":373,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":313,"mirror_url":null,"archived":false,"open_issues_count":1896,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":313,"open_issues":1896,"watchers":373,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dotCMS/core/pulls/14535"},"html":{"href":"https://github.com/dotCMS/core/pull/14535"},"issue":{"href":"https://api.github.com/repos/dotCMS/core/issues/14535"},"comments":{"href":"https://api.github.com/repos/dotCMS/core/issues/14535/comments"},"review_comments":{"href":"https://api.github.com/repos/dotCMS/core/pulls/14535/comments"},"review_comment":{"href":"https://api.github.com/repos/dotCMS/core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dotCMS/core/pulls/14535/commits"},"statuses":{"href":"https://api.github.com/repos/dotCMS/core/statuses/57fe253480c0a52bde795830ff8c82e5f8ae7446"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"codacy-bot"}}