{"id":15,"date":"2015-08-04T19:15:00","date_gmt":"2015-08-04T19:15:00","guid":{"rendered":""},"modified":"2020-01-17T07:40:49","modified_gmt":"2020-01-17T07:40:49","slug":"resource-resolver-object-in-aem6-x-services","status":"publish","type":"post","link":"https:\/\/lhotsetechnologies.com\/blog\/resource-resolver-object-in-aem6-x-services\/","title":{"rendered":"Resource Resolver Object in AEM6.x Services"},"content":{"rendered":"<div dir=\"ltr\" style=\"text-align: left;\">\n<div style=\"text-align: justify;\"><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\">As we know that <b><i>getAdministrativeResourceResolver()<\/i><\/b> method has been deprecated from <b><i>ResourceResolverFactory<\/i><\/b> interface in AEM6 and above versions. Then the question is-<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\"><b>Q1). How to get ResourceResolver object in Sling services in AEM6.0 and above versions?<\/b><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\">If you are working with AEM6 or AEM6.1 then you have two options-<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\">If you know the credentials of a User and want that user credential in your service, then go with <b><i>getResourceResolver() <\/i><\/b>method.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-family: Times, Times New Roman, serif;\"><i>Map&lt;String, Object&gt; param = new HashMap&lt;String, Object&gt;(); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-family: Times, Times New Roman, serif;\"><i>param.put(ResourceResolverFactory.USER,&#8221;admin&#8221;);<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-family: Times, Times New Roman, serif;\"><i>param.put(ResourceResolverFactory.PASSWORD,&#8221;admin&#8221;.toCharArray());<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-family: Times, Times New Roman, serif;\"><i>try {<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-family: Times, Times New Roman, serif;\"><i>&nbsp; &nbsp; &nbsp; resourceResolver = resourceResolverFactory.getResourceResolver(param);<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-family: Times, Times New Roman, serif;\"><i>}catch (Exception e){<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-family: Times, Times New Roman, serif;\"><i>&nbsp; &nbsp; &nbsp; System.out.println(e.getMessage());<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-family: Times, Times New Roman, serif;\"><i>}<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\">If you don&#8217;t have user credentials and want to access ResourceResolver object then you have to use<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\">getServiceResourceResolver() method. as shown below &#8211;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-family: Times, Times New Roman, serif;\"><i>Map&lt;String, Object&gt; param = new HashMap&lt;String, Object&gt;();<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-family: Times, Times New Roman, serif;\"><i>param.put(ResourceResolverFactory.SUBSERVICE,&#8221;testService&#8221;);<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-family: Times, Times New Roman, serif;\"><i>try {<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-family: Times, Times New Roman, serif;\"><i>&nbsp; &nbsp; resourceResolver = resourceResolverFactory.getServiceResourceResolver(param);<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-family: Times, Times New Roman, serif;\"><i>}catch (Exception e){<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-family: Times, Times New Roman, serif;\"><i>&nbsp; &nbsp; System.out.println(e.getMessage());<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-family: Times, Times New Roman, serif;\"><i>}<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-family: Times, Times New Roman, serif;\"><span style=\"color: #274e13; font-weight: bold;\">Note<\/span><span style=\"color: #274e13; font-weight: bold;\">:<\/span><span style=\"color: #274e13; font-weight: bold;\"> &#8211; <\/span><i><span style=\"color: #660000;\">In this case you have to add a configuration in your Felix Console to your AEM instance.<\/span><\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\"><b>Q2). What configuration I need to do for AEM6.0?<\/b><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\">For AEM6.0, &nbsp;configuration steps are-<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\">Go to Felix Console configuration tab i.e. <a href=\"http:\/\/localhost:4502\/system\/console\/configMgr\">http:\/\/localhost:4502\/system\/console\/configMgr<\/a><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\">Search for User Mapping as shown in figure-<\/span><\/div>\n<div style=\"clear: both; text-align: center;\"><a style=\"clear: left; float: left; margin-bottom: 1em; margin-right: 1em;\" href=\"http:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2015\/08\/userMapping.png\"><img fetchpriority=\"high\" decoding=\"async\" src=\"http:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2015\/08\/userMapping-300x61.png\" width=\"640\" height=\"129\" border=\"0\"><\/a><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\">Click on this service to edit it&#8217;s configuration.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\">Here you have to add one entry and the syntax of the entry is-<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\"><b>&#8220;Bundle symbolic Name&#8221;:&#8221;SubServieName&#8221;=&#8221;User Name&#8221;<\/b><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\"><b>1. Bundle symbolic Name:- <\/b>&nbsp;Here you have to add the bundle symbolic name where you are creating a service.<\/span><br \/>\n<span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\"><br \/>\n<\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\"><b>2.&nbsp;SubServieNaem:- <\/b>This is the name you provided as a value of &nbsp;<b><i>ResourceResolverFactory.SUBSERVICE<\/i><\/b> property i.e. <b><i>&#8220;testService&#8221;<\/i><\/b>.<\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\"><b>3. User Name:- <\/b>This &nbsp;is the user name for ex. <b>&#8220;admin&#8221;&nbsp;<\/b>So in my case this configuration field value becomes <b><i>&#8220;com.blog.blog-bundles:testService=admin&#8221;&nbsp;<\/i><\/b><\/span><span style=\"color: #274e13; font-family: Times, 'Times New Roman', serif;\">After adding <\/span><span style=\"color: #274e13; font-family: Times, 'Times New Roman', serif;\">this entry to <\/span><span style=\"color: #274e13; font-family: Times, 'Times New Roman', serif;\">configuration looks like-<\/span><\/div>\n<div style=\"clear: both; text-align: center;\"><a style=\"clear: left; float: left; margin-bottom: 1em; margin-right: 1em;\" href=\"http:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2015\/08\/second.png\"><img decoding=\"async\" src=\"http:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2015\/08\/second-300x73.png\" width=\"640\" height=\"154\" border=\"0\"><\/a><\/div>\n<div>&nbsp;<\/div>\n<div>\n<p>&nbsp;<\/p>\n<p>Now everything is set for AEM6.0.<\/p>\n<\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\"><b>Q3). Will these configurations work for AEM6.1?<\/b><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\">No<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\"><b>Q4). What configuration, do I need for AEM6.1?<\/b><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\">If you are working with AEM6.1 that you have to complete all steps explained for AEM6.0. To make these configurations &nbsp;working for AEM6.1, you have to ensure that the <b><i>&#8220;jcr:PrimaryType&#8221;<\/i><\/b> of your user is <b><i>&#8220;rep:SystemUser&#8221;<\/i><\/b> i.e if you are trying to use &#8220;admin&#8221; user. Then it will not work as it&#8217;s <b><i>&#8220;jcr:PrimaryType&#8221;<\/i><\/b> value is &nbsp;<b><i>&#8220;rep:User&#8221;<\/i><\/b>.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\"><b>Q5). What do you mean by &#8220;jcr:PrimaryType&#8221; as &#8220;rep:SystemUser&#8221;?<\/b><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\">It means that user is just not a repository user. It must be system user.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\"><b>Q6). How to create System User in AEM6.0?<\/b><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\">For creating System Users, follow these steps-<\/span><\/div>\n<div style=\"text-align: justify;\">&nbsp;<\/div>\n<div style=\"clear: both; text-align: center;\">&nbsp;<\/div>\n<p><a style=\"clear: left; float: left; margin-bottom: 1em; margin-right: 1em;\" href=\"http:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2015\/08\/4.png\"><br \/>\n<\/a><a style=\"clear: left; float: left; margin-bottom: 1em; margin-right: 1em;\" href=\"http:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2015\/08\/4.png\"><br \/>\n<\/a><a style=\"clear: left; float: left; margin-bottom: 1em; margin-right: 1em;\" href=\"http:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2015\/08\/4.png\"><img decoding=\"async\" src=\"http:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2015\/08\/4-300x120.png\" width=\"400\" height=\"160\" border=\"0\"><\/a><a style=\"clear: left; float: left; margin-bottom: 1em; margin-right: 1em;\" href=\"http:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2015\/08\/userMapping.png\"><br \/>\n<\/a><a style=\"clear: left; float: left; margin-bottom: 1em; margin-right: 1em;\" href=\"http:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2015\/08\/userMapping.png\"><br \/>\n<\/a>&nbsp;<\/p>\n<ol>\n<li><span style=\"color: #274e13; font-family: Times, 'Times New Roman', serif;\">Go to CRX Explorer <\/span><a style=\"font-family: Times, 'Times New Roman', serif;\" href=\"http:\/\/localhost:6502\/crx\/explorer\/index.jsp\">http:\/\/localhost:6502\/crx\/explorer\/index.jsp<\/a><\/li>\n<li><span style=\"color: #274e13; font-family: Times, 'Times New Roman', serif;\">Login as Administrator, i.e. <\/span><span style=\"color: #274e13; font-family: Times, 'Times New Roman', serif;\">using<\/span><span style=\"color: #274e13; font-family: Times, 'Times New Roman', serif;\"> <b><i>&#8220;admin: admin&#8221;<\/i><\/b><\/span><\/li>\n<li><span style=\"color: #274e13; font-family: Times, 'Times New Roman', serif;\"><span style=\"color: #274e13; font-family: Times, 'Times New Roman', serif;\">Click on &#8220;User Administration&#8221;, you will see a screen just like this-<\/span><\/span>&nbsp;<\/li>\n<li><span style=\"color: #274e13; font-family: Times, 'Times New Roman', serif;\">Here you will see <\/span>a<span style=\"color: #274e13; font-family: Times, 'Times New Roman', serif;\"> option of <b><i>&#8220;Create System User&#8221;<\/i><\/b>, Click on this button.<\/span><\/li>\n<li><span style=\"color: #274e13; font-family: Times, 'Times New Roman', serif;\">Add a value for User Id field for ex. <b><i>&#8220;<\/i><\/b><\/span>testUser<span style=\"color: #274e13; font-family: Times, 'Times New Roman', serif;\"><i style=\"font-weight: bold;\">&#8220;<\/i>.<i style=\"font-weight: bold;\">&nbsp;<\/i><\/span><\/li>\n<li><span style=\"color: #274e13; font-family: Times, 'Times New Roman', serif;\">Click on green button.&nbsp;<\/span><span style=\"color: #274e13; font-family: Times, 'Times New Roman', serif;\">Close the window.&nbsp;<\/span><span style=\"font-family: Times, 'Times New Roman', serif;\"><span style=\"color: #274e13;\">Go to CRXDE Lite, your <\/span><b><i><span style=\"color: #274e13;\">&#8220;<\/span><\/i><\/b><\/span><i><span style=\"color: #274e13;\"><b>testUser<\/b><\/span><\/i><span style=\"font-family: Times, 'Times New Roman', serif;\"><b><i><span style=\"color: #274e13;\">&#8220;<\/span><\/i><\/b><span style=\"color: #274e13;\"> will be created under <b><i>\/home\/system<\/i><\/b> directory. If you are not able to find then search for <\/span><b><i><span style=\"color: #274e13;\">&#8220;<\/span><\/i><\/b><\/span><i><span style=\"color: #274e13;\"><b>testUser<\/b><\/span><\/i><span style=\"font-family: Times, 'Times New Roman', serif;\"><b><i><span style=\"color: #274e13;\">&#8220;<\/span><\/i><\/b><span style=\"color: #274e13;\"> in home screen. You will get the location.<\/span><\/span><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\"><b>Q7). How to use this user?<\/b><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\">In your <b><i>&#8220;Apache Sling Service User Mapper Service&#8221;<\/i><\/b> configuration changes your entry from-<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000; font-family: Times, Times New Roman, serif;\"><i>com.blog.blog-bundles:testService=admin to com.blog.blog-bundles:testService=testUser<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\"><b>Q8). Should I do this configuration at &#8220;Apache Sling Service User Mapper Service&#8221; configuration or should I create a &#8220;Apache Sling Service User Mapper Service Amendment&#8221; service configuration?<\/b><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\">You can do it by both ways. But as <b><i>&#8220;Apache Sling Service User Mapper Service&#8221;<\/i><\/b> is a service factory in AEM6.1 so as best practices you should create another service configuration by clicking on plus button at the front of <b><i>&#8220;Apache Sling Service User Mapper Service Amendment&#8221;<\/i><\/b>.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\">When you click on <b><i>&#8220;+&#8221;<\/i><\/b> button, one new configuration will be created at the end. Click on that &nbsp;service and do this configuration there. Your code will work in the same manner as working before.<\/span><\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<p><strong>Happy Coding<\/strong><br \/>\n<strong>Namah Shivay<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>As we know that getAdministrativeResourceResolver() method has been deprecated from ResourceResolverFactory interface in AEM6 and above versions. Then the question [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,33,42,41,43],"tags":[],"class_list":["post-15","post","type-post","status-publish","format-standard","hentry","category-aem","category-cq","category-how-to-use-resource-resolver-object-in-aem6-1","category-resource-resolver-object-in-aem","category-resource-resolver-object-in-aem6-x-services"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Resource Resolver Object in AEM6.x Services - AEM Blog | Lhotse Technologies<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/lhotsetechnologies.com\/blog\/resource-resolver-object-in-aem6-x-services\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Resource Resolver Object in AEM6.x Services - AEM Blog | Lhotse Technologies\" \/>\n<meta property=\"og:description\" content=\"As we know that getAdministrativeResourceResolver() method has been deprecated from ResourceResolverFactory interface in AEM6 and above versions. Then the question [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/lhotsetechnologies.com\/blog\/resource-resolver-object-in-aem6-x-services\/\" \/>\n<meta property=\"og:site_name\" content=\"AEM Blog | Lhotse Technologies\" \/>\n<meta property=\"article:published_time\" content=\"2015-08-04T19:15:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-01-17T07:40:49+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2015\/08\/userMapping-300x61.png\" \/>\n<meta name=\"author\" content=\"Team Lhotse\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Team Lhotse\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/resource-resolver-object-in-aem6-x-services\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/resource-resolver-object-in-aem6-x-services\/\"},\"author\":{\"name\":\"Team Lhotse\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/person\/fd7bee89b050d7c7195fc75b681b053d\"},\"headline\":\"Resource Resolver Object in AEM6.x Services\",\"datePublished\":\"2015-08-04T19:15:00+00:00\",\"dateModified\":\"2020-01-17T07:40:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/resource-resolver-object-in-aem6-x-services\/\"},\"wordCount\":731,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/resource-resolver-object-in-aem6-x-services\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2015\/08\/userMapping-300x61.png\",\"articleSection\":[\"AEM\",\"CQ\",\"How to use resource resolver object in AEM6.1\",\"resource resolver object in AEM\",\"Resource Resolver Object in AEM6.x Services\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/lhotsetechnologies.com\/blog\/resource-resolver-object-in-aem6-x-services\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/resource-resolver-object-in-aem6-x-services\/\",\"url\":\"https:\/\/lhotsetechnologies.com\/blog\/resource-resolver-object-in-aem6-x-services\/\",\"name\":\"Resource Resolver Object in AEM6.x Services - AEM Blog | Lhotse Technologies\",\"isPartOf\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/resource-resolver-object-in-aem6-x-services\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/resource-resolver-object-in-aem6-x-services\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2015\/08\/userMapping-300x61.png\",\"datePublished\":\"2015-08-04T19:15:00+00:00\",\"dateModified\":\"2020-01-17T07:40:49+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/resource-resolver-object-in-aem6-x-services\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/lhotsetechnologies.com\/blog\/resource-resolver-object-in-aem6-x-services\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/resource-resolver-object-in-aem6-x-services\/#primaryimage\",\"url\":\"https:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2015\/08\/userMapping.png\",\"contentUrl\":\"https:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2015\/08\/userMapping.png\",\"width\":1024,\"height\":208},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/resource-resolver-object-in-aem6-x-services\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/lhotsetechnologies.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Resource Resolver Object in AEM6.x Services\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#website\",\"url\":\"https:\/\/lhotsetechnologies.com\/blog\/\",\"name\":\"AEM Blog | Lhotse Technologies\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/lhotsetechnologies.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#organization\",\"name\":\"AEM Blog | Lhotse Technologies\",\"url\":\"https:\/\/lhotsetechnologies.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2019\/07\/lhotse-logo.png\",\"contentUrl\":\"https:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2019\/07\/lhotse-logo.png\",\"width\":539,\"height\":172,\"caption\":\"AEM Blog | Lhotse Technologies\"},\"image\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/person\/fd7bee89b050d7c7195fc75b681b053d\",\"name\":\"Team Lhotse\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"caption\":\"Team Lhotse\"},\"url\":\"https:\/\/lhotsetechnologies.com\/blog\/author\/team-lhotse\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Resource Resolver Object in AEM6.x Services - AEM Blog | Lhotse Technologies","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/lhotsetechnologies.com\/blog\/resource-resolver-object-in-aem6-x-services\/","og_locale":"en_US","og_type":"article","og_title":"Resource Resolver Object in AEM6.x Services - AEM Blog | Lhotse Technologies","og_description":"As we know that getAdministrativeResourceResolver() method has been deprecated from ResourceResolverFactory interface in AEM6 and above versions. Then the question [&hellip;]","og_url":"https:\/\/lhotsetechnologies.com\/blog\/resource-resolver-object-in-aem6-x-services\/","og_site_name":"AEM Blog | Lhotse Technologies","article_published_time":"2015-08-04T19:15:00+00:00","article_modified_time":"2020-01-17T07:40:49+00:00","og_image":[{"url":"http:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2015\/08\/userMapping-300x61.png","type":"","width":"","height":""}],"author":"Team Lhotse","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Team Lhotse","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/lhotsetechnologies.com\/blog\/resource-resolver-object-in-aem6-x-services\/#article","isPartOf":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/resource-resolver-object-in-aem6-x-services\/"},"author":{"name":"Team Lhotse","@id":"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/person\/fd7bee89b050d7c7195fc75b681b053d"},"headline":"Resource Resolver Object in AEM6.x Services","datePublished":"2015-08-04T19:15:00+00:00","dateModified":"2020-01-17T07:40:49+00:00","mainEntityOfPage":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/resource-resolver-object-in-aem6-x-services\/"},"wordCount":731,"commentCount":0,"publisher":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/#organization"},"image":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/resource-resolver-object-in-aem6-x-services\/#primaryimage"},"thumbnailUrl":"http:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2015\/08\/userMapping-300x61.png","articleSection":["AEM","CQ","How to use resource resolver object in AEM6.1","resource resolver object in AEM","Resource Resolver Object in AEM6.x Services"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/lhotsetechnologies.com\/blog\/resource-resolver-object-in-aem6-x-services\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/lhotsetechnologies.com\/blog\/resource-resolver-object-in-aem6-x-services\/","url":"https:\/\/lhotsetechnologies.com\/blog\/resource-resolver-object-in-aem6-x-services\/","name":"Resource Resolver Object in AEM6.x Services - AEM Blog | Lhotse Technologies","isPartOf":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/resource-resolver-object-in-aem6-x-services\/#primaryimage"},"image":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/resource-resolver-object-in-aem6-x-services\/#primaryimage"},"thumbnailUrl":"http:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2015\/08\/userMapping-300x61.png","datePublished":"2015-08-04T19:15:00+00:00","dateModified":"2020-01-17T07:40:49+00:00","breadcrumb":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/resource-resolver-object-in-aem6-x-services\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/lhotsetechnologies.com\/blog\/resource-resolver-object-in-aem6-x-services\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/lhotsetechnologies.com\/blog\/resource-resolver-object-in-aem6-x-services\/#primaryimage","url":"https:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2015\/08\/userMapping.png","contentUrl":"https:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2015\/08\/userMapping.png","width":1024,"height":208},{"@type":"BreadcrumbList","@id":"https:\/\/lhotsetechnologies.com\/blog\/resource-resolver-object-in-aem6-x-services\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/lhotsetechnologies.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Resource Resolver Object in AEM6.x Services"}]},{"@type":"WebSite","@id":"https:\/\/lhotsetechnologies.com\/blog\/#website","url":"https:\/\/lhotsetechnologies.com\/blog\/","name":"AEM Blog | Lhotse Technologies","description":"","publisher":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/lhotsetechnologies.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/lhotsetechnologies.com\/blog\/#organization","name":"AEM Blog | Lhotse Technologies","url":"https:\/\/lhotsetechnologies.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2019\/07\/lhotse-logo.png","contentUrl":"https:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2019\/07\/lhotse-logo.png","width":539,"height":172,"caption":"AEM Blog | Lhotse Technologies"},"image":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/person\/fd7bee89b050d7c7195fc75b681b053d","name":"Team Lhotse","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","caption":"Team Lhotse"},"url":"https:\/\/lhotsetechnologies.com\/blog\/author\/team-lhotse\/"}]}},"_links":{"self":[{"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/15","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/comments?post=15"}],"version-history":[{"count":3,"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/15\/revisions"}],"predecessor-version":[{"id":562,"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/15\/revisions\/562"}],"wp:attachment":[{"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/media?parent=15"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/categories?post=15"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/tags?post=15"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}