cancel
Showing results for 
Search instead for 
Did you mean: 

How to inject SiteService in my custom class?

mbel
Star Contributor
Star Contributor

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 me.

Thank you in advance.

1 ACCEPTED ANSWER

You also need to add the setter, ie.

public void setSiteService(SiteService siteService)  

   this.siteService = siteService

}

Regards,

Jan

View answer in original post

22 REPLIES 22

Please ask this as a separate question (related to CMIS / OpenCMIS) - thanks.

By default the  maximum number of search results that alfresco  perform permission checks is 1000

If you want to search more than 1000 ,you should add following settings into your alfresco-global.properties file

system.acl.maxPermissionChecks=5000

But It will reduce performance.

douglascrp
World-Class Innovator
World-Class Innovator