使用GroupWise API对消息进行排序

时间:2012-02-28 12:59:51

标签: novell groupwise

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

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

1 个答案:

答案 0 :(得分:0)

你必须使用我所知道的光标(没有加载所有东西)。

<?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