<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ContentService in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/contentservice/m-p/306421#M259551</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am attempting to read&amp;nbsp; the content of a file in Alfresco. I have seen examples that use&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ContentService. Unforunately, when I try to use the example code, the ContentService&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;is not available.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have added ContentService as a managed property of my managed bean in faces-config.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;managed-property&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property-name&amp;gt;contentService&amp;lt;/property-name&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;value&amp;gt;#{ContentService}&amp;lt;/value&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/managed-property&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my java code, I am using&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ApplicationContext ctx = ApplicationContextHelper.getApplicationContext();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;final ServiceRegistry serviceRegistry = (ServiceRegistry) ctx.getBean(ServiceRegistry.SERVICE_REGISTRY);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// contentService is an instance variable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;this.contentService = serviceRegistry.getContentService();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am getting this Exception:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;javax.faces.el.EvaluationException: Exception while invoking expression #{DeployAssetQADialog.start}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;caused by:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;javax.faces.el.PropertyNotFoundException: Bean: com.XXXXXXXXXX.DeployAssetDialog, property: contentService&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone tell me if there is something that I am missing? Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Feb 2014 16:20:34 GMT</pubDate>
    <dc:creator>unknown-user</dc:creator>
    <dc:date>2014-02-28T16:20:34Z</dc:date>
    <item>
      <title>ContentService</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/contentservice/m-p/306421#M259551</link>
      <description>I am attempting to read&amp;nbsp; the content of a file in Alfresco. I have seen examples that useContentService. Unforunately, when I try to use the example code, the ContentServiceis not available.I have added ContentService as a managed property of my managed bean in faces-config.xml&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;managed-proper</description>
      <pubDate>Fri, 28 Feb 2014 16:20:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/contentservice/m-p/306421#M259551</guid>
      <dc:creator>unknown-user</dc:creator>
      <dc:date>2014-02-28T16:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: ContentService</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/contentservice/m-p/306422#M259552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Asked and answered here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://stackoverflow.com/questions/22106144/how-can-i-get-an-alfresco-contentservice-object" rel="nofollow noopener noreferrer"&gt;http://stackoverflow.com/questions/22106144/how-can-i-get-an-alfresco-contentservice-object&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2014 17:50:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/contentservice/m-p/306422#M259552</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2014-03-03T17:50:45Z</dc:date>
    </item>
  </channel>
</rss>

