chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian Müller (JIRA) <j...@apache.org>
Subject [jira] [Commented] (CMIS-888) Make RepositoryInfo Cacheable
Date Fri, 30 Jan 2015 11:53:34 GMT

    [ https://issues.apache.org/jira/browse/CMIS-888?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14298529#comment-14298529
] 

Florian Müller commented on CMIS-888:
-------------------------------------

>From a CMIS spec point of view the repository info could be different every time you log
on. Features could have been turned on or off meanwhile.
The repository info could even be different for different users. An admin user might see more
capabilities then an ordinary user.

If you need short-time caching, keep the whole session object. (You can also serialize and
deserialize it).

> Make RepositoryInfo Cacheable
> -----------------------------
>
>                 Key: CMIS-888
>                 URL: https://issues.apache.org/jira/browse/CMIS-888
>             Project: Chemistry
>          Issue Type: Improvement
>          Components: opencmis-client-bindings
>    Affects Versions: OpenCMIS 0.12.0
>            Reporter: Francesco Uliana
>            Priority: Minor
>
> each time I create a new org.apache.chemistry.opencmis.client.api.Session with org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl#createSession(..)
 the cmis client perform an HTTP GET request to "/alfresco/api/-default-/public/cmis/versions/1.1/atom?repositoryId=-default".
> The response from alfresco is always the same, could you allow some kind of policy to
cache globally RepositoryInfo?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message