use of com.zimbra.soap.admin.message.GetAllAccountLoggersRequest in project zm-mailbox by Zimbra.
the class SoapProvisioning method getAllAccountLoggers.
/**
* Returns all account loggers for the given server. The <tt>Map</tt>'s key is
* the account name, and values are all the <tt>AccountLogger</tt> objects for
* that account.
*
* @server the server name, or <tt>null</tt> for the local server
*/
public Map<String, List<AccountLogger>> getAllAccountLoggers(String server) throws ServiceException {
if (server == null) {
server = getLocalServer().getName();
}
GetAllAccountLoggersResponse resp = invokeJaxb(new GetAllAccountLoggersRequest(), server);
Map<String, List<AccountLogger>> result = new HashMap<String, List<AccountLogger>>();
for (AccountLoggerInfo acctLogger : resp.getLoggers()) {
String acctName = acctLogger.getName();
result.put(acctName, accountLoggersFromLoggerInfos(acctLogger.getLoggers(), acctName));
}
return result;
}
Aggregations