Teqnology
Teqnology

Reputation: 1298

Alfresco CMIS limit size and time query

we are developing a front end integrated with Alfresco, we are using CMIS protocol to execute queries against different istances of Alfresco, but we would like to set a limit to a maximum time and a maximum results that a query could give. Is this achievable with CMIS standard, or is only manageable with acl permissions in alfresco.global.properties (blocking lucene)? We would like not to touch these settings in Alfresco. Thanks

Upvotes: 1

Views: 5870

Answers (3)

Joaquín
Joaquín

Reputation: 11

You only have to change a couple of configuration parameters in file repository.properties which is located in Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco. This parameters are:

system.acl.maxPermissionChecks system.readpermissions.bulkfetchsize

You could set them to the value you want. Default values are set to 1000.

Upvotes: 0

Florian Müller
Florian Müller

Reputation: 3235

If you are using the AtomPub binding via HTTP directly and you are using HTTP GET, then you can add the the URL parameter maxItems to the query URL.

If you are using HTTP POST for the query, you have to add the maxItems parameters to the payload. See: http://docs.oasis-open.org/cmis/CMIS/v1.0/cs01/cmis-spec-v1.0.html#_Toc243905541

Upvotes: 3

Jeff Potts
Jeff Potts

Reputation: 10538

The CMIS specification makes no provision for limiting the maximum time it takes to return a query result. Neither does the OpenCMIS library, that I know of.

However, you can limit the number of search results that come back by setting maxItems. If you are using OpenCMIS you can do this by passing in an OperationContext on which you've called the setMaxItemsPerPage method.

Upvotes: 4

Related Questions