
com.microsoft.exchange.services.odata.model.Events Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mail-calendar-contact Show documentation
Show all versions of mail-calendar-contact Show documentation
Java SDK for Office 365 Mail-Calendar-Contact services
The newest version!
package com.microsoft.exchange.services.odata.model;
import com.msopentech.odatajclient.engine.client.http.HttpClientException;
import com.msopentech.odatajclient.engine.communication.ODataClientErrorException;
import com.msopentech.odatajclient.engine.communication.ODataServerErrorException;
import com.microsoft.office.proxy.OfficeEntityContainerFactory;
import com.microsoft.office.proxy.OfficeEntitySet;
import com.msopentech.odatajclient.proxy.api.AbstractEntityCollection;
import com.msopentech.odatajclient.proxy.api.Query;
import com.msopentech.odatajclient.proxy.api.annotations.EntitySet;
import com.msopentech.odatajclient.proxy.api.annotations.CompoundKey;
import com.msopentech.odatajclient.proxy.api.annotations.CompoundKeyElement;
import com.microsoft.exchange.services.odata.model.system.*;
import com.microsoft.exchange.services.odata.model.system.types.*;
import com.microsoft.exchange.services.odata.model.*;
import com.microsoft.exchange.services.odata.model.types.*;
import com.google.common.util.concurrent.ListenableFuture;
// EdmSimpleType property imports
import com.msopentech.odatajclient.engine.data.ODataDuration;
import com.msopentech.odatajclient.engine.data.ODataTimestamp;
import com.msopentech.odatajclient.engine.data.metadata.edm.geospatial.Geospatial;
import com.msopentech.odatajclient.engine.data.metadata.edm.geospatial.GeospatialCollection;
import com.msopentech.odatajclient.engine.data.metadata.edm.geospatial.LineString;
import com.msopentech.odatajclient.engine.data.metadata.edm.geospatial.MultiLineString;
import com.msopentech.odatajclient.engine.data.metadata.edm.geospatial.MultiPoint;
import com.msopentech.odatajclient.engine.data.metadata.edm.geospatial.MultiPolygon;
import com.msopentech.odatajclient.engine.data.metadata.edm.geospatial.Point;
import com.msopentech.odatajclient.engine.data.metadata.edm.geospatial.Polygon;
import java.math.BigDecimal;
import java.net.URI;
import java.util.UUID;
import java.io.Serializable;
import java.util.Collection;
import java.util.Iterator;
/** Default IEvents implementation. */
public class Events implements IEvents {
/** Proxy to communicate with service. */
private IEvents mProxy;
/**
* Constructor.
*
* @param proxy proxy to communicate with service.
*/
public Events(IEvents proxy) {
mProxy = proxy;
}
/**
* {@inheritDoc}
*/
public Iterator iterator() throws HttpClientException, ODataServerErrorException, ODataClientErrorException {
return mProxy.iterator();
}
/**
* {@inheritDoc}
*/
public void clear() {
mProxy.clear();
}
/**
* {@inheritDoc}
*/
public Long count() {
return mProxy.count();
}
/**
* {@inheritDoc}
*/
public ListenableFuture countAsync() {
return mProxy.countAsync();
}
/**
* {@inheritDoc}
*/
public Query createQuery() {
return mProxy.createQuery();
}
/**
* {@inheritDoc}
*/
public > Query createQuery(Class arg0) {
return mProxy.createQuery(arg0);
}
/**
* {@inheritDoc}
*/
public void delete(String key) throws IllegalArgumentException, HttpClientException, ODataServerErrorException, ODataClientErrorException {
mProxy.delete(key); }
/**
* {@inheritDoc}
*/
public void delete(Iterable arg0) throws HttpClientException, ODataServerErrorException, ODataClientErrorException {
mProxy.delete(arg0);
}
/**
* {@inheritDoc}
*/
public Boolean exists(String key) throws IllegalArgumentException, HttpClientException, ODataServerErrorException, ODataClientErrorException {
return mProxy.exists(key); }
/**
* {@inheritDoc}
*/
public ListenableFuture existsAsync(String key) {
return mProxy.existsAsync(key);
}
/**
* {@inheritDoc}
*/
public IEvent get(String key) throws IllegalArgumentException, HttpClientException, ODataServerErrorException, ODataClientErrorException {
return mProxy.get(key); }
/**
* {@inheritDoc}
*/
public ListenableFuture getAsync(String key) throws IllegalArgumentException, HttpClientException, ODataServerErrorException, ODataClientErrorException {
return mProxy.getAsync(key); }
/**
* {@inheritDoc}
*/
public S get(String key, Class arg1) throws IllegalArgumentException, HttpClientException, ODataServerErrorException, ODataClientErrorException {
return mProxy.get(key, arg1);
}
/**
* {@inheritDoc}
*/
public ListenableFuture getAsync(String key, Class arg1) throws IllegalArgumentException, HttpClientException, ODataServerErrorException, ODataClientErrorException {
return mProxy.getAsync(key, arg1);
}
/**
* {@inheritDoc}
*/
public IEventCollection getAll() throws HttpClientException, ODataServerErrorException, ODataClientErrorException {
return mProxy.getAll();
}
/**
* {@inheritDoc}
*/
public ListenableFuture getAllAsync() throws HttpClientException, ODataServerErrorException, ODataClientErrorException {
return mProxy.getAllAsync();
}
/**
* {@inheritDoc}
*/
public > SEC getAll(Class arg0) throws HttpClientException, ODataServerErrorException, ODataClientErrorException {
return mProxy.getAll(arg0);
}
/**
* {@inheritDoc}
*/
public > ListenableFuture getAllAsync(Class arg0) throws HttpClientException, ODataServerErrorException, ODataClientErrorException {
return mProxy.getAllAsync(arg0);
}
/**
* {@inheritDoc}
*/
public boolean retainAll(Collection> c) {
return mProxy.retainAll(c);
}
/**
* {@inheritDoc}
*/
public boolean removeAll(Collection> c) {
return mProxy.removeAll(c);
}
/**
* {@inheritDoc}
*/
public boolean remove(Object o) {
return mProxy.remove(o);
}
/**
* {@inheritDoc}
*/
public boolean add(IEvent e) {
return mProxy.add(e);
}
/**
* {@inheritDoc}
*/
public boolean addAll(Collection extends IEvent> c) {
return mProxy.addAll(c);
}
/**
* {@inheritDoc}
*/
public boolean contains(Object o) {
return mProxy.contains(o);
}
/**
* {@inheritDoc}
*/
public boolean containsAll(Collection> c) {
return mProxy.contains(c);
}
/**
* {@inheritDoc}
*/
public T[] toArray(T[] a) {
return mProxy.toArray(a);
}
/**
* {@inheritDoc}
*/
public Object[] toArray() {
return mProxy.toArray();
}
/**
* {@inheritDoc}
*/
public boolean isEmpty() {
return mProxy.isEmpty();
}
/**
* {@inheritDoc}
*/
public int size() {
return mProxy.size();
}
/**
* {@inheritDoc}
*/
public void fetch() {
mProxy.fetch();
}
/**
* {@inheritDoc}
*/
public ListenableFuture fetchAsync() {
return mProxy.fetchAsync();
}
/**
* {@inheritDoc}
*/
public com.microsoft.exchange.services.odata.model.types.IEvent newEvent(String calendarId) {
return mProxy.newEvent(calendarId);
}
/**
* {@inheritDoc}
*/
public com.microsoft.exchange.services.odata.model.types.IEventCollection newEventCollection() {
return mProxy.newEventCollection();
}
/**
* Creates a new event in specified calendar.
*/
public static IEvent newEvent(ICalendar calendar) {
return OfficeEntityContainerFactory.getInstance().getEntityContainer(EntityContainer.class).getEvents().newEvent(calendar.getId());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy