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;
}
Aggregations