use of com.zimbra.soap.admin.type.CalendarResourceSelector in project zm-mailbox by Zimbra.
the class SoapProvisioning method get.
@Override
public CalendarResource get(CalendarResourceBy keyType, String key) throws ServiceException {
try {
GetCalendarResourceRequest req = new GetCalendarResourceRequest(new CalendarResourceSelector(SoapProvisioning.toJaxb(keyType), key));
GetCalendarResourceResponse resp = invokeJaxb(req);
return new SoapCalendarResource(resp.getCalResource(), this);
} catch (ServiceException e) {
if (e.getCode().equals(AccountServiceException.NO_SUCH_CALENDAR_RESOURCE))
return null;
else
throw e;
}
}
Aggregations