Search in sources :

Example 1 with AccountsAttrib

use of com.zimbra.soap.admin.type.AccountsAttrib in project zm-mailbox by Zimbra.

the class WaitSetBase method handleQuery.

@Override
public synchronized WaitSetInfo handleQuery() {
    WaitSetInfo info = WaitSetInfo.createForWaitSetIdOwnerInterestsLastAccessDate(mWaitSetId, mOwnerAccountId, WaitSetRequest.expandInterestStr(defaultInterest), mLastAccessedTime);
    if (mCurrentErrors.size() > 0) {
        for (WaitSetError error : mCurrentErrors) {
            info.addError(new IdAndType(error.accountId, error.error.name()));
        }
    }
    // signaled accounts
    if (mCurrentSignalledAccounts.size() > 0) {
        StringBuilder signaledStr = new StringBuilder();
        for (String accountId : mCurrentSignalledAccounts) {
            if (signaledStr.length() > 0)
                signaledStr.append(",");
            signaledStr.append(accountId);
        }
        info.setSignalledAccounts(new AccountsAttrib(signaledStr.toString()));
    }
    return info;
}
Also used : WaitSetInfo(com.zimbra.soap.admin.type.WaitSetInfo) AccountsAttrib(com.zimbra.soap.admin.type.AccountsAttrib) IdAndType(com.zimbra.soap.type.IdAndType)

Aggregations

AccountsAttrib (com.zimbra.soap.admin.type.AccountsAttrib)1 WaitSetInfo (com.zimbra.soap.admin.type.WaitSetInfo)1 IdAndType (com.zimbra.soap.type.IdAndType)1