chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yannick MOLINET (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CMIS-758) GetChildren does not return all children
Date Wed, 26 Feb 2014 17:25:19 GMT

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

Yannick MOLINET commented on CMIS-758:
--------------------------------------

here is my code :

IOperationContext newContext = session.CreateOperationContext();
IItemEnumerable<ICmisObject> children = remoteFolder.GetChildren(newContext);

remoteFolder is a valid IFolder object.

With this code is must obtain the full content, but as you can see in screenshot, I got only
100 items on 272.
If I understand, I must set PageNumItems in operation context to obtain a collection of 272
items ? So I must determine how many items is present in the remote folder to set correctly
the operation context ?


> GetChildren does not return all children
> ----------------------------------------
>
>                 Key: CMIS-758
>                 URL: https://issues.apache.org/jira/browse/CMIS-758
>             Project: Chemistry
>          Issue Type: Bug
>          Components: dotcmis
>    Affects Versions: DotCMIS 0.6
>            Reporter: Yannick MOLINET
>            Assignee: Florian Müller
>             Fix For: DotCMIS 0.6
>
>         Attachments: screenshot-1.jpg, screenshot-2.jpg
>
>
> GetChildren does not return all children
> The source code below returns only the items from the first page, instead of the full
content.
> So if remoteFolder contains more than 100 items, only the first 100 items are returned.
> Note: Default context is used, so PageNumItems is 100.
> foreach (ICmisObject cmisObject in remoteFolder.GetChildren())
> {
> }
> Thanks,
> Yannick



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message