【问题标题】:Sorting Messages with GroupWise API使用 GroupWise API 对消息进行排序
【发布时间】:2012-02-28 12:59:50
【问题描述】:

是否可以使用对象 API 对 GroupWise 消息进行排序?

我知道过滤器和查询,但是我找不到过滤器和查询表达式的任何排序运算符。

【问题讨论】:

    标签: novell groupwise


    【解决方案1】:

    您将不得不使用我所知道的光标(没有加载所有内容)。

    <?php
    
    /* $this is a class that extends SoapClient using the groupwise.wsdl */
    $q = (object)[
        'folderType' => 'Mailbox',
        'view' => 'count unreadCount'
    ];
    
    $folder = $this->getFolderRequest($q);
    
    $q = (object)[
        'container' => $folder->folder->id,
        'view' => 'subject peek noDownload'
    ];
    
    $cursor = $this->createCursorRequest($q);
    
    $q = (object)[
        'container' => $data->folder->id,
        'cursor' => $cursor->cursor,
        'position' => 'end',
        'count' => 20,
        'forward' => TRUE
    ];
    
    $msgs = $this->readCursorRequest($q);
    
    var_dump($msgs);
    
    /* You could also throw readCursorRequest() in a loop and track offset + position for more intensive purposes */
    ?>
    

    更多阅读:https://www.novell.com/documentation/developer/groupwise_sdk/gwsdk_gwwebservices/data/b7m3i3x.html

    【讨论】:

    • 哎呀!抱歉我看错了,我以为这是针对网络服务的。
    猜你喜欢
    • 2013-09-14
    • 1970-01-01
    • 1970-01-01
    • 2017-10-11
    • 2021-03-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-05-10
    相关资源
    最近更新 更多