/* ** GENEREATED FILE - DO NOT MODIFY ** */
package com.wilutions.mslib.uccollaborationlib;
import com.wilutions.com.*;
/**
* ContactManager.
* Represents a contact and group manager.
*/
@CoClass(guid="{43EAF09A-5DD2-4CE7-9B03-FCEED187BF48}")
public class ContactManager extends Dispatch implements IContactManager {
static boolean __typelib__loaded = __TypeLib.load();
@DeclDISPID(1610743808) public IGroupCollection getGroups() throws ComException {
final Object obj = this._dispatchCall(1610743808,"Groups", DISPATCH_PROPERTYGET,null);
if (obj == null) return null;
return Dispatch.as(obj, com.wilutions.mslib.uccollaborationlib.impl.IGroupCollectionImpl.class);
}
@DeclDISPID(1610743809) public IContact GetContactByUri(final String _contactUri) throws ComException {
assert(_contactUri != null);
final Object obj = this._dispatchCall(1610743809,"GetContactByUri", DISPATCH_METHOD,null,_contactUri);
if (obj == null) return null;
return Dispatch.as(obj, com.wilutions.mslib.uccollaborationlib.impl.IContactImpl.class);
}
@DeclDISPID(1610743810) public IAsynchronousOperation Lookup(final String _lookupString, final Object _contactsAndGroupsCallback, final Object _state) throws ComException {
assert(_lookupString != null);
assert(_contactsAndGroupsCallback != null);
assert(_state != null);
final Object obj = this._dispatchCall(1610743810,"Lookup", DISPATCH_METHOD,null,_lookupString,_contactsAndGroupsCallback,_state);
if (obj == null) return null;
return Dispatch.as(obj, com.wilutions.mslib.uccollaborationlib.impl.IAsynchronousOperationImpl.class);
}
@DeclDISPID(1610743811) public IContactSubscription CreateSubscription() throws ComException {
final Object obj = this._dispatchCall(1610743811,"CreateSubscription", DISPATCH_METHOD,null);
if (obj == null) return null;
return Dispatch.as(obj, com.wilutions.mslib.uccollaborationlib.impl.IContactSubscriptionImpl.class);
}
@DeclDISPID(1610743812) public IAsynchronousOperation Search(final String _searchString, final SearchProviders _providers, final SearchFields _searchFields, final SearchOptions _searchOptions, final Integer _maxResults, final Object _contactsAndGroupsCallback, final Object _state) throws ComException {
assert(_searchString != null);
assert(_providers != null);
assert(_searchFields != null);
assert(_searchOptions != null);
assert(_maxResults != null);
assert(_contactsAndGroupsCallback != null);
assert(_state != null);
final Object obj = this._dispatchCall(1610743812,"Search", DISPATCH_METHOD,null,_searchString,_providers.value,_searchFields.value,_searchOptions.value,_maxResults,_contactsAndGroupsCallback,_state);
if (obj == null) return null;
return Dispatch.as(obj, com.wilutions.mslib.uccollaborationlib.impl.IAsynchronousOperationImpl.class);
}
@DeclDISPID(1610743813) public IAsynchronousOperation RemoveContactFromAllGroups(final IContact _contact, final Object _contactsAndGroupsCallback, final Object _state) throws ComException {
assert(_contactsAndGroupsCallback != null);
assert(_state != null);
final Object obj = this._dispatchCall(1610743813,"RemoveContactFromAllGroups", DISPATCH_METHOD,null,(_contact!=null?_contact:Dispatch.NULL),_contactsAndGroupsCallback,_state);
if (obj == null) return null;
return Dispatch.as(obj, com.wilutions.mslib.uccollaborationlib.impl.IAsynchronousOperationImpl.class);
}
@DeclDISPID(1610743814) public String GetSearchProviderID(final SearchProviders _provider) throws ComException {
assert(_provider != null);
final Object obj = this._dispatchCall(1610743814,"GetSearchProviderID", DISPATCH_METHOD,null,_provider.value);
if (obj == null) return null;
return (String)obj;
}
@DeclDISPID(1610743815) public IAsynchronousOperation AddCustomGroup(final String _customGroupName, final Object _contactsAndGroupsCallback, final Object _state) throws ComException {
assert(_customGroupName != null);
assert(_contactsAndGroupsCallback != null);
assert(_state != null);
final Object obj = this._dispatchCall(1610743815,"AddCustomGroup", DISPATCH_METHOD,null,_customGroupName,_contactsAndGroupsCallback,_state);
if (obj == null) return null;
return Dispatch.as(obj, com.wilutions.mslib.uccollaborationlib.impl.IAsynchronousOperationImpl.class);
}
@DeclDISPID(1610743816) public IAsynchronousOperation AddDistributionGroup(final IDistributionGroup _distributionGroup, final Object _contactsAndGroupsCallback, final Object _state) throws ComException {
assert(_contactsAndGroupsCallback != null);
assert(_state != null);
final Object obj = this._dispatchCall(1610743816,"AddDistributionGroup", DISPATCH_METHOD,null,(_distributionGroup!=null?_distributionGroup:Dispatch.NULL),_contactsAndGroupsCallback,_state);
if (obj == null) return null;
return Dispatch.as(obj, com.wilutions.mslib.uccollaborationlib.impl.IAsynchronousOperationImpl.class);
}
@DeclDISPID(1610743817) public IAsynchronousOperation RemoveGroup(final IGroup _group, final Object _contactsAndGroupsCallback, final Object _state) throws ComException {
assert(_contactsAndGroupsCallback != null);
assert(_state != null);
final Object obj = this._dispatchCall(1610743817,"RemoveGroup", DISPATCH_METHOD,null,(_group!=null?_group:Dispatch.NULL),_contactsAndGroupsCallback,_state);
if (obj == null) return null;
return Dispatch.as(obj, com.wilutions.mslib.uccollaborationlib.impl.IAsynchronousOperationImpl.class);
}
@DeclDISPID(1610743818) public void SuspendSubscriptions() throws ComException {
this._dispatchCall(1610743818,"SuspendSubscriptions", DISPATCH_METHOD,null);
}
@DeclDISPID(1610743819) public void ResumeSubscriptions() throws ComException {
this._dispatchCall(1610743819,"ResumeSubscriptions", DISPATCH_METHOD,null);
}
@DeclDISPID(1610743820) public SearchFields GetSearchFields() throws ComException {
final Object obj = this._dispatchCall(1610743820,"GetSearchFields", DISPATCH_METHOD,null);
if (obj == null) return null;
return SearchFields.valueOf((Integer)obj);
}
@DeclDISPID(1610743821) public SearchProviderStatusType GetSearchProviderStatus(final SearchProviders _provider) throws ComException {
assert(_provider != null);
final Object obj = this._dispatchCall(1610743821,"GetSearchProviderStatus", DISPATCH_METHOD,null,_provider.value);
if (obj == null) return null;
return SearchProviderStatusType.valueOf((Integer)obj);
}
@DeclDISPID(1610743822) public String GetExpertSearchQueryString(final String _searchString) throws ComException {
assert(_searchString != null);
final Object obj = this._dispatchCall(1610743822,"GetExpertSearchQueryString", DISPATCH_METHOD,null,_searchString);
if (obj == null) return null;
return (String)obj;
}
@DeclDISPID(1610743823) public IContact GetSelfContact() throws ComException {
final Object obj = this._dispatchCall(1610743823,"GetSelfContact", DISPATCH_METHOD,null);
if (obj == null) return null;
return Dispatch.as(obj, com.wilutions.mslib.uccollaborationlib.impl.IContactImpl.class);
}
@DeclDISPID(1610743824) public IContact GetContactByTel(final String _telUri) throws ComException {
assert(_telUri != null);
final Object obj = this._dispatchCall(1610743824,"GetContactByTel", DISPATCH_METHOD,null,_telUri);
if (obj == null) return null;
return Dispatch.as(obj, com.wilutions.mslib.uccollaborationlib.impl.IContactImpl.class);
}
public ContactManager() throws ComException {
super("{43EAF09A-5DD2-4CE7-9B03-FCEED187BF48}", "{E6B3F5FA-4208-4C37-AE07-F6435B68D693}");
}
protected ContactManager(long ndisp) {
super(ndisp);
}
public String toString() {
return "[ContactManager" + super.toString() + "]";
}
}