<?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 Re: How to inject SiteService in my custom class? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-inject-siteservice-in-my-custom-class/m-p/284828#M237958</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try to use org.springframework.beans.factory.annotation.Autowired.&lt;/P&gt;&lt;P&gt;I'm not clear what you mean about the second question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Nov 2016 12:45:18 GMT</pubDate>
    <dc:creator>kaynezhang</dc:creator>
    <dc:date>2016-11-07T12:45:18Z</dc:date>
    <item>
      <title>How to inject SiteService in my custom class?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-inject-siteservice-in-my-custom-class/m-p/284821#M237951</link>
      <description>Hello,I would like to use some of the methods in Alfresco's SiteService and respectively its implementation.For example - I want to list all currently created Sites in Alfresco system in a Java code.What exactly should I inject in my code and what bean should I include.....Its not exactly clear for</description>
      <pubDate>Mon, 07 Nov 2016 08:29:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-inject-siteservice-in-my-custom-class/m-p/284821#M237951</guid>
      <dc:creator>mbel</dc:creator>
      <dc:date>2016-11-07T08:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to inject SiteService in my custom class?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-inject-siteservice-in-my-custom-class/m-p/284822#M237952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If&amp;nbsp; you want to develop alfresc&amp;nbsp; extensions&amp;nbsp; you can refer to &lt;A _jive_internal="true" href="https://community.alfresco.com/docs/DOC-5146-amp-files" rel="nofollow noopener noreferrer"&gt;building and packaging extensions into AMPs using Apache Maven&lt;/A&gt; ,add&amp;nbsp;&amp;nbsp; &amp;lt;property name="siteService" ref="SiteService"/&amp;gt; into your spring module context.&lt;/P&gt;&lt;P&gt;If you want to develop client application ,you can use apache commons httpclient to call alfresco site webscript api.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2016 08:45:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-inject-siteservice-in-my-custom-class/m-p/284822#M237952</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2016-11-07T08:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to inject SiteService in my custom class?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-inject-siteservice-in-my-custom-class/m-p/284823#M237953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alternatively, you can also inject the ServiceRegistry into your custom bean XML extension file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="java" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14785099729259697 jive_text_macro" data-hasrefreshed="true" data-renderedposition="58_8_1332_16" jivemacro_uid="_14785099729259697"&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #e8bf6a;"&gt;&amp;lt;property &lt;/SPAN&gt;&lt;SPAN style="color: #bababa;"&gt;name&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;="serviceRegistry" &lt;/SPAN&gt;&lt;SPAN style="color: #bababa;"&gt;ref&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;="ServiceRegistry"&lt;/SPAN&gt;&lt;SPAN style="color: #e8bf6a;"&gt;/&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then get the SiteService locally (or other public services, as needed):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="java" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14785099946911834" data-hasrefreshed="true" data-renderedposition="149_8_1332_192" jivemacro_uid="_14785099946911834"&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #cc7832;"&gt;private &lt;/SPAN&gt;ServiceRegistry &lt;SPAN style="color: #9876aa;"&gt;serviceRegistry&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;public void &lt;/SPAN&gt;&lt;SPAN style="color: #ffc66d;"&gt;setServiceRegistry&lt;/SPAN&gt;(ServiceRegistry serviceRegistry) &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;{&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #cc7832;"&gt;this&lt;/SPAN&gt;.serviceRegistry = serviceRegistry&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;}&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;public void myMethod()&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;{&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SiteService siteService = serviceRegistry.getSiteService()&lt;SPAN style="color: #cc7832;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // ... more here&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;}&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2016 09:09:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-inject-siteservice-in-my-custom-class/m-p/284823#M237953</guid>
      <dc:creator>janv</dc:creator>
      <dc:date>2016-11-07T09:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to inject SiteService in my custom class?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-inject-siteservice-in-my-custom-class/m-p/284824#M237954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have already generated AMP using maven and have folder 'context' with 2 xml service-context and webscript-context.&lt;/P&gt;&lt;P&gt;I want the SiteService as property in my java CustomWebScript class, so I have define the CustomWebScript class in webscript-context.xml&lt;/P&gt;&lt;P&gt; &amp;lt;bean id="webscript.custom.get"&amp;nbsp; class="xxx.demoamp.CustomWebScript" parent="webscript" &amp;gt;&amp;lt;/bean&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I include in this bean &lt;SPAN style="color: #727174; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;&amp;lt;property name="siteService" ref="SiteService"/&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;lt;bean id="webscript.custom.get" class="xxx.demoamp.CustomWebScript"&amp;nbsp; parent="webscript" &amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #727174; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;&amp;lt;property name="siteService" ref="SiteService"/&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/bean&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also included&amp;nbsp; private SiteService siteService; as field in my custom Java class.&lt;/P&gt;&lt;P&gt;I receive the following error... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'webscript.custom.get' defined in class path resource [alfresco/module/xxx/context/webscript-context.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException:&lt;/P&gt;&lt;P&gt;Invalid property 'siteService' of bean class [xxx.demoamp.CustomWebScript]: Bean property 'siteService' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So maybe I don't understand how exactly it works or I miss something...&lt;/P&gt;&lt;P&gt;Thank you in advance for your assistance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2016 12:04:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-inject-siteservice-in-my-custom-class/m-p/284824#M237954</guid>
      <dc:creator>mbel</dc:creator>
      <dc:date>2016-11-07T12:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to inject SiteService in my custom class?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-inject-siteservice-in-my-custom-class/m-p/284825#M237955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You also need to add the setter, ie.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #0088e1; background-color: inherit; font-size: 9pt !important;"&gt;public&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #0088e1; background-color: inherit; font-size: 9pt !important;"&gt;void&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt; setSiteService(&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;SiteService&lt;/SPAN&gt; s&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;iteService&lt;/SPAN&gt;)&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;{&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #0088e1; background-color: inherit; font-size: 9pt !important;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt;.&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;s&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;iteService&lt;/SPAN&gt; = &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;s&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;iteService&lt;/SPAN&gt;;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;} &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2016 12:08:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-inject-siteservice-in-my-custom-class/m-p/284825#M237955</guid>
      <dc:creator>janv</dc:creator>
      <dc:date>2016-11-07T12:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to inject SiteService in my custom class?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-inject-siteservice-in-my-custom-class/m-p/284826#M237956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes,you need to add setter method in your &lt;SPAN style="color: #727174; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;xxx.demoamp.CustomWebScript class&lt;/SPAN&gt; as @Jan Vonka said &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2016 12:39:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-inject-siteservice-in-my-custom-class/m-p/284826#M237956</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2016-11-07T12:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to inject SiteService in my custom class?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-inject-siteservice-in-my-custom-class/m-p/284827#M237957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After added the setting everything is working fine. Thanks!&lt;/P&gt;&lt;P&gt;Would it work with @Inject or @Autowired annotations above the field or ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general I can use the existing webscript -&amp;gt; /alfresco/service/api/sites using HttpConnection and get the json object.&lt;/P&gt;&lt;P&gt;However, I will need the server context(host,port) or something in order not to hard-coded it , could you please advise with that option as well ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2016 12:40:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-inject-siteservice-in-my-custom-class/m-p/284827#M237957</guid>
      <dc:creator>mbel</dc:creator>
      <dc:date>2016-11-07T12:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to inject SiteService in my custom class?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-inject-siteservice-in-my-custom-class/m-p/284828#M237958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try to use org.springframework.beans.factory.annotation.Autowired.&lt;/P&gt;&lt;P&gt;I'm not clear what you mean about the second question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2016 12:45:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-inject-siteservice-in-my-custom-class/m-p/284828#M237958</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2016-11-07T12:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to inject SiteService in my custom class?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-inject-siteservice-in-my-custom-class/m-p/284829#M237959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, My second questions is based on your 2nd suggestion "&lt;SPAN style="color: #727174; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;,you can use apache commons httpclient to call alfresco site webscript api."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;URL loginUrl = new URL("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:8080/alfresco/service/api/sites" rel="nofollow noopener noreferrer" target="_blank"&gt;http://localhost:8080/alfresco/service/api/sites&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;HttpURLConnection connection = (HttpURLConnection) loginUrl.openConnection();&lt;/P&gt;&lt;P&gt;connection.setRequestMethod("GET");&lt;/P&gt;&lt;P&gt;connection.connect();&lt;/P&gt;&lt;P&gt;InputStream is = connection.getInputStream(); &lt;/P&gt;&lt;P&gt;//... and get the json object...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dont want to hard code the &lt;A href="http://localhost:8080/" title="http://localhost:8080/" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/&lt;/A&gt; (since it can be changed) I want to get the current server/url context or something...not sure if there is such thing at all.&lt;/P&gt;&lt;P&gt;Or there is some other internal option all webscripts to communicate each other?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will be really glad if you can answer me to the above questions as I am new with Alfresco and trying to understand how it works.....&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2016 13:02:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-inject-siteservice-in-my-custom-class/m-p/284829#M237959</guid>
      <dc:creator>mbel</dc:creator>
      <dc:date>2016-11-07T13:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to inject SiteService in my custom class?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-inject-siteservice-in-my-custom-class/m-p/284830#M237960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;You can configure the base part(&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:8080/alfresco/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://localhost:8080/alfresco/&lt;/A&gt;&lt;SPAN&gt;) in a property file in your application,every time when you call webscript api,you can build the full url by concating base part and path part.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2016 15:51:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-inject-siteservice-in-my-custom-class/m-p/284830#M237960</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2016-11-07T15:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to inject SiteService in my custom class?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-inject-siteservice-in-my-custom-class/m-p/284831#M237961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just found that there is SysAdminParams service, which provide the protocol, host, port and alfresco context.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2016 08:56:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-inject-siteservice-in-my-custom-class/m-p/284831#M237961</guid>
      <dc:creator>mbel</dc:creator>
      <dc:date>2016-11-08T08:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to inject SiteService in my custom class?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-inject-siteservice-in-my-custom-class/m-p/284832#M237962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You want to call webscript api in alfresco ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2016 13:01:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-inject-siteservice-in-my-custom-class/m-p/284832#M237962</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2016-11-08T13:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to inject SiteService in my custom class?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-inject-siteservice-in-my-custom-class/m-p/284833#M237963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;B&gt;Jan Vonka&lt;/B&gt;​ is this a safe method as ServiceRegistry is providing lower case service beans?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2016 13:05:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-inject-siteservice-in-my-custom-class/m-p/284833#M237963</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2016-11-08T13:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to inject SiteService in my custom class?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-inject-siteservice-in-my-custom-class/m-p/284834#M237964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;B&gt;Angel Borroy&lt;/B&gt; Are you sure ? In general, ServiceRegistry returns upper-case public service beans.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2016 13:12:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-inject-siteservice-in-my-custom-class/m-p/284834#M237964</guid>
      <dc:creator>janv</dc:creator>
      <dc:date>2016-11-08T13:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to inject SiteService in my custom class?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-inject-siteservice-in-my-custom-class/m-p/284835#M237965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;B&gt;Jan Vonka&lt;/B&gt;​ You are right: &lt;A href="https://github.com/Alfresco/community-edition/blob/master/projects/repository/source/java/org/alfresco/service/ServiceRegistry.java#L112" title="https://github.com/Alfresco/community-edition/blob/master/projects/repository/source/java/org/alfresco/service/ServiceRegistry.java#L112" rel="nofollow noopener noreferrer"&gt;community-edition/ServiceRegistry.java at master · Alfresco/community-edition · GitHub&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My mistake, thanks for the clarification!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2016 13:21:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-inject-siteservice-in-my-custom-class/m-p/284835#M237965</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2016-11-08T13:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to inject SiteService in my custom class?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-inject-siteservice-in-my-custom-class/m-p/284836#M237966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;ServiceRegistry do return upper-case public service beans,but&amp;nbsp; but getting some service bean via the ServiceRegistry is not recommended any more.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2016 13:22:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-inject-siteservice-in-my-custom-class/m-p/284836#M237966</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2016-11-08T13:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to inject SiteService in my custom class?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-inject-siteservice-in-my-custom-class/m-p/284837#M237967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;I have the following code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&amp;nbsp; String query = "SELECT * FROM cmis:document";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; OperationContext oc = session.createOperationContext();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; oc.setMaxItemsPerPage(1000000);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; resultado = session.query(query.toString(), false, oc);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B&lt;SPAN lang="en"&gt;ut I have more than 5 thousand documents and the cmis returns me only a thousand. How do I increase the number of pages that it searches? I believe he is bringing a page with only his maximum (thousand documents).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2016 13:25:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-inject-siteservice-in-my-custom-class/m-p/284837#M237967</guid>
      <dc:creator>gustavosandrade</dc:creator>
      <dc:date>2016-11-08T13:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to inject SiteService in my custom class?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-inject-siteservice-in-my-custom-class/m-p/284838#M237968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well....as an other option. The SiteService is now working and I use the method findSites() to list all sites, however the returned object is different than this one in the /api/sites, so if I want to get the json object from /api/sites, I don't know other option....&lt;/P&gt;&lt;P&gt;If you know, I will be glad if you share it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2016 13:40:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-inject-siteservice-in-my-custom-class/m-p/284838#M237968</guid>
      <dc:creator>mbel</dc:creator>
      <dc:date>2016-11-08T13:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to inject SiteService in my custom class?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-inject-siteservice-in-my-custom-class/m-p/284839#M237969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please ask this as a separate question (related to CMIS / OpenCMIS) - thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2016 13:49:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-inject-siteservice-in-my-custom-class/m-p/284839#M237969</guid>
      <dc:creator>janv</dc:creator>
      <dc:date>2016-11-08T13:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to inject SiteService in my custom class?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-inject-siteservice-in-my-custom-class/m-p/284840#M237970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By default the&amp;nbsp; maximum number of search results that alfresco&amp;nbsp; perform permission checks is 1000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to search more than 1000 ,you should add following settings into your alfresco-global.properties file&lt;/P&gt;&lt;P&gt;system.acl.maxPermissionChecks=5000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But It will reduce performance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2016 13:53:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-inject-siteservice-in-my-custom-class/m-p/284840#M237970</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2016-11-08T13:53:32Z</dc:date>
    </item>
  </channel>
</rss>

