{"id":652,"date":"2015-09-29T11:25:35","date_gmt":"2015-09-29T16:25:35","guid":{"rendered":"https:\/\/gja.rfl.mybluehost.me\/website_fd74af1b\/webcenter-content-user-security-check-in-ridc-call-for-specific-content\/"},"modified":"2026-03-04T19:16:47","modified_gmt":"2026-03-04T19:16:47","slug":"webcenter-content-user-security-check-in-ridc-call-for-specific-content","status":"publish","type":"post","link":"https:\/\/onwardpath.com\/intelligence\/webcenter-content-user-security-check-in-ridc-call-for-specific-content\/","title":{"rendered":"WebCenter Content User Security Check in RIDC call for Specific Content"},"content":{"rendered":"\n<p class=\"\">User Security Check in RIDC call for Specific Content<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>\nIdcClientManager m_clientManager = new IdcClientManager ();\nIdcClient m_client = m_clientManager.createClient(\"&lt;Your Hostname : Port&gt;\/cs\/idcplg\");\n\n\/\/RIDC superuser context\nIdcContext m_superuser = new IdcContext(\"sysadmin\", \"idc\");\n\n\/\/Examples of the three concrete cache classes\nIUserSecurityCache m_SGCache = new UserSecurityGroupsCache (m_client, 20, 1000);\nIUserSecurityCache m_SGAcctCache = new UserSGAccountsCache (m_client, 20, 1000, 20000);\nIUserSecurityCache m_SGAcctAclCache = new UserSGAcctAclCache(m_client, 20, 1000, 20000, m_superuser);\nDataBinder dataBinder = m_client.createBinder ();\ndataBinder.putLocal (\"IdcService\", \"DOC_INFO\");\ndataBinder.putLocal (\"dID\", \"&lt;dID of Specific Content&gt;\");\nServiceResponse response1 = m_client.sendRequest(m_superuser, dataBinder);\ndataBinder = response1.getResponseAsBinder();\n\n\/\/Get the document information (typically in the first row of DOC_INFO)\nDataObject docInfo = dataBinder.getResultSet (\"DOC_INFO\").getRows ().get (0);\nIdcContext context = new IdcContext(&lt;User Name for Whom to Check Access&gt;,&lt;Correct Password&gt;);\nCacheId ccID= new CacheId (context.getUser (), context);\n\n\/\/Get the access level for this document by this user\nint access = m_SGAcctAclCache.getAccessLevelForDocument (ccID, docInfo);\n\n\/\/access level in Content Server form (1=Read, 3=Write, 7=Delete)\n<\/strong><\/pre>\n\n\n\n<p class=\"\">&nbsp;<\/p>\n\n\n\n<p class=\"\">Here if access returns 1 then user have Read Access<\/p>\n\n\n\n<p class=\"\">if 3 user have&nbsp;Write&nbsp;Access<br>If 7 user have&nbsp;Delete&nbsp;Access<\/p>\n","protected":false},"excerpt":{"rendered":"<p>User Security Check in RIDC call for Specific Content IdcClientManager m_clientManager = new IdcClientManager (); IdcClient m_client = m_clientManager.createClient(&#8220;&lt;Your Hostname : Port&gt;\/cs\/idcplg&#8221;); \/\/RIDC superuser context IdcContext m_superuser = new IdcContext(&#8220;sysadmin&#8221;, &#8220;idc&#8221;); \/\/Examples of the three concrete cache classes IUserSecurityCache m_SGCache = new UserSecurityGroupsCache (m_client, 20, 1000); IUserSecurityCache m_SGAcctCache = new UserSGAccountsCache (m_client, 20, 1000, 20000); [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":4188,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[37,19],"tags":[60,55,63],"class_list":["post-652","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology-blog","category-webcenter","tag-ridc","tag-ucm","tag-webcenter-content"],"jetpack_featured_media_url":"https:\/\/onwardpath.com\/intelligence\/wp-content\/uploads\/2020\/09\/25-user-security.jpg","_links":{"self":[{"href":"https:\/\/onwardpath.com\/intelligence\/wp-json\/wp\/v2\/posts\/652","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/onwardpath.com\/intelligence\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/onwardpath.com\/intelligence\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/onwardpath.com\/intelligence\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/onwardpath.com\/intelligence\/wp-json\/wp\/v2\/comments?post=652"}],"version-history":[{"count":3,"href":"https:\/\/onwardpath.com\/intelligence\/wp-json\/wp\/v2\/posts\/652\/revisions"}],"predecessor-version":[{"id":6919,"href":"https:\/\/onwardpath.com\/intelligence\/wp-json\/wp\/v2\/posts\/652\/revisions\/6919"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/onwardpath.com\/intelligence\/wp-json\/wp\/v2\/media\/4188"}],"wp:attachment":[{"href":"https:\/\/onwardpath.com\/intelligence\/wp-json\/wp\/v2\/media?parent=652"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/onwardpath.com\/intelligence\/wp-json\/wp\/v2\/categories?post=652"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/onwardpath.com\/intelligence\/wp-json\/wp\/v2\/tags?post=652"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}