• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java ExchangeService类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中microsoft.exchange.webservices.data.core.ExchangeService的典型用法代码示例。如果您正苦于以下问题:Java ExchangeService类的具体用法?Java ExchangeService怎么用?Java ExchangeService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ExchangeService类属于microsoft.exchange.webservices.data.core包,在下文中一共展示了ExchangeService类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: internalWritePropertiesToXml

import microsoft.exchange.webservices.data.core.ExchangeService; //导入依赖的package包/类
/**
 * Write property to XML.
 *
 * @param writer the writer
 * @throws Exception the exception
 */
@Override
public void internalWritePropertiesToXml(EwsServiceXmlWriter writer)
    throws Exception {
  super.internalWritePropertiesToXml(writer);

  this.getDaysOfTheWeek().writeToXml(writer,
      XmlElementNames.DaysOfWeek);
  if (this.firstDayOfWeek != null) {

    EwsUtilities
        .validatePropertyVersion((ExchangeService) writer.getService(), ExchangeVersion.Exchange2010_SP1,
                                 "FirstDayOfWeek");

    writer.writeElementValue(
        XmlNamespace.Types,
        XmlElementNames.FirstDayOfWeek,
        this.firstDayOfWeek);
  }

}
 
开发者ID:OfficeDev,项目名称:ews-java-api,代码行数:27,代码来源:Recurrence.java


示例2: UserConfiguration

import microsoft.exchange.webservices.data.core.ExchangeService; //导入依赖的package包/类
/**
 * Initializes a new instance of <see cref="UserConfiguration"/> class.
 *
 * @param service             The service to which the user configuration is bound.
 * @param requestedProperties The property requested for this user configuration.
 * @throws Exception the exception
 */
public UserConfiguration(ExchangeService service, EnumSet<UserConfigurationProperties> requestedProperties)
    throws Exception {
  EwsUtilities.validateParam(service, "service");

  if (service.getRequestedServerVersion().ordinal() < UserConfiguration.ObjectVersion.ordinal()) {
    throw new ServiceVersionException(String.format(
        "The object type %s is only valid for Exchange Server version %s or later versions.", this
            .getClass().getName(), UserConfiguration.ObjectVersion));
  }

  this.service = service;
  this.isNew = true;

  this.initializeProperties(requestedProperties);
}
 
开发者ID:OfficeDev,项目名称:ews-java-api,代码行数:23,代码来源:UserConfiguration.java


示例3: StreamingSubscriptionConnection

import microsoft.exchange.webservices.data.core.ExchangeService; //导入依赖的package包/类
/**
 * Initializes a new instance of the StreamingSubscriptionConnection class.
 *
 * @param service  The ExchangeService instance this connection uses to connect
 *                 to the server.
 * @param lifetime The maximum time, in minutes, the connection will remain open.
 *                 Lifetime must be between 1 and 30.
 * @throws Exception
 */
public StreamingSubscriptionConnection(ExchangeService service, int lifetime)
    throws Exception {
  EwsUtilities.validateParam(service, "service");

  EwsUtilities.validateClassVersion(service,
      ExchangeVersion.Exchange2010_SP1, this.getClass().getName());

  if (lifetime < 1 || lifetime > 30) {
    throw new ArgumentOutOfRangeException("lifetime");
  }

  this.session = service;
  this.subscriptions = new HashMap<String, StreamingSubscription>();
  this.connectionTimeout = lifetime;
}
 
开发者ID:OfficeDev,项目名称:ews-java-api,代码行数:25,代码来源:StreamingSubscriptionConnection.java


示例4: create

import microsoft.exchange.webservices.data.core.ExchangeService; //导入依赖的package包/类
@Override
public boolean create(FolderType type) throws MessagingException {
    try {
        ExchangeService service = store.getService();
        service.createFolder(new Folder(service),
                store.getRootFolderId());
    } catch (Exception e) {
        throw new MessagingException("Unable to create folder", e);
    }
    return true;
}
 
开发者ID:philipwhiuk,项目名称:q-mail,代码行数:12,代码来源:EwsFolder.java


示例5: getExchangeService

import microsoft.exchange.webservices.data.core.ExchangeService; //导入依赖的package包/类
@PostConstruct
private ExchangeService getExchangeService() {
	final ExchangeService exchangeService = new ExchangeService();
	exchangeService.setCredentials(new WebCredentials(exchangeConnectionProperties.getCredentials().getUsername(), exchangeConnectionProperties.getCredentials().getPassword(),exchangeConnectionProperties.getCredentials().getDomain()));
	exchangeService.setUrl(exchangeConnectionProperties.getUri());
	return exchangeService;
}
 
开发者ID:candrews,项目名称:availability,代码行数:8,代码来源:ExchangeAvailabilityService.java


示例6: GetPhoneCallResponse

import microsoft.exchange.webservices.data.core.ExchangeService; //导入依赖的package包/类
/**
 * Initializes a new instance of the GetPhoneCallResponse class.
 *
 * @param service the service
 */
public GetPhoneCallResponse(ExchangeService service) {
  super();
  EwsUtilities.ewsAssert(service != null, "GetPhoneCallResponse.ctor", "service is null");

  this.phoneCall = new PhoneCall(service);
}
 
开发者ID:OfficeDev,项目名称:ews-java-api,代码行数:12,代码来源:GetPhoneCallResponse.java


示例7: getPropertyInstance

import microsoft.exchange.webservices.data.core.ExchangeService; //导入依赖的package包/类
/**
 * Gets the property instance.
 *
 * @param propertyBag     The property bag.
 * @param complexProperty The property instance.
 * @return True if the instance is newly created.
 */
private boolean getPropertyInstance(
  final PropertyBag propertyBag, final OutParam<ComplexProperty> complexProperty
) {
  final ServiceObject owner = propertyBag.getOwner();
  final ExchangeService service = owner.getService();

  if (!propertyBag.tryGetValue(this, complexProperty)
      || !hasFlag(PropertyDefinitionFlags.ReuseInstance, service.getRequestedServerVersion())) {
    complexProperty.setParam(createPropertyInstance(owner));
    return true;
  }
  return false;
}
 
开发者ID:OfficeDev,项目名称:ews-java-api,代码行数:21,代码来源:ComplexPropertyDefinitionBase.java


示例8: getObjectInstance

import microsoft.exchange.webservices.data.core.ExchangeService; //导入依赖的package包/类
/**
 * Gets the object instance.
 *
 * @param service        The service.
 * @param xmlElementName Name of the XML element.
 * @return Folder
 * @throws Exception the exception
 */
private Folder getObjectInstance(ExchangeService service,
    String xmlElementName) throws Exception {
  if (this.folder != null) {
    return this.folder;
  } else {
    return EwsUtilities.createEwsObjectFromXmlElementName(Folder.class, service, xmlElementName);
  }
}
 
开发者ID:OfficeDev,项目名称:ews-java-api,代码行数:17,代码来源:CreateFolderResponse.java


示例9: PhoneCall

import microsoft.exchange.webservices.data.core.ExchangeService; //导入依赖的package包/类
/**
 * PhoneCall Constructor.
 *
 * @param service the service
 */
public PhoneCall(ExchangeService service) {
  EwsUtilities.ewsAssert(service != null, "PhoneCall.ctor", "service is null");

  this.service = service;
  this.state = PhoneCallState.Connecting;
  this.connectionFailureCause = ConnectionFailureCause.None;
  this.sipResponseText = PhoneCall.SuccessfullResponseText;
  this.sipResponseCode = PhoneCall.SuccessfullResponseCode;
}
 
开发者ID:OfficeDev,项目名称:ews-java-api,代码行数:15,代码来源:PhoneCall.java


示例10: SubscriptionBase

import microsoft.exchange.webservices.data.core.ExchangeService; //导入依赖的package包/类
/**
 * Instantiates a new subscription base.
 *
 * @param service the service
 * @throws Exception the exception
 */
protected SubscriptionBase(ExchangeService service) throws Exception {
  EwsUtilities.validateParam(service, "service");
  // EwsUtilities.validateParam(service, "service");

  this.service = service;
}
 
开发者ID:OfficeDev,项目名称:ews-java-api,代码行数:13,代码来源:SubscriptionBase.java


示例11: getObjectInstance

import microsoft.exchange.webservices.data.core.ExchangeService; //导入依赖的package包/类
/**
 * Gets the folder instance.
 *
 * @param service        The service.
 * @param xmlElementName Name of the XML element.
 * @return folder
 * @throws Exception the exception
 */
private Folder getObjectInstance(ExchangeService service,
    String xmlElementName) throws Exception {
  if (this.getFolder() != null) {
    return this.getFolder();
  } else {
    return EwsUtilities.createEwsObjectFromXmlElementName(Folder.class,
        service, xmlElementName);
  }
}
 
开发者ID:OfficeDev,项目名称:ews-java-api,代码行数:18,代码来源:GetFolderResponse.java


示例12: createServiceResponse

import microsoft.exchange.webservices.data.core.ExchangeService; //导入依赖的package包/类
/**
 * Creates the service response.
 *
 * @param service       The Service
 * @param responseIndex the response index
 * @return Service response.
 */
@Override
protected ServiceResponse createServiceResponse(ExchangeService service,
    int responseIndex) {
  return new GetFolderResponse(this.getFolderIds()
      .getFolderIdWrapperList(responseIndex).getFolder(), this
      .getPropertySet());
}
 
开发者ID:OfficeDev,项目名称:ews-java-api,代码行数:15,代码来源:GetFolderRequestForLoad.java


示例13: createServiceResponse

import microsoft.exchange.webservices.data.core.ExchangeService; //导入依赖的package包/类
/**
 * Creates the service response.
 *
 * @param service       the service
 * @param responseIndex the response index
 * @return Service response.
 * @throws Exception the exception
 */
@Override
protected GetUserConfigurationResponse createServiceResponse(
    ExchangeService service, int responseIndex) throws Exception {
  // In the case of UserConfiguration.Load(), this.userConfiguration is
  // set.
  if (this.userConfiguration == null) {
    this.userConfiguration = new UserConfiguration(service,
        this.properties);
    this.userConfiguration.setName(this.name);
    this.userConfiguration.setParentFolderId(this.parentFolderId);
  }

  return new GetUserConfigurationResponse(this.userConfiguration);
}
 
开发者ID:OfficeDev,项目名称:ews-java-api,代码行数:23,代码来源:GetUserConfigurationRequest.java


示例14: setUpBaseClass

import microsoft.exchange.webservices.data.core.ExchangeService; //导入依赖的package包/类
/**
 * Setup Mocks
 *
 * @throws Exception
 */
@BeforeClass
public static final void setUpBaseClass() throws Exception {
  // Mock up ExchangeServiceBase
  exchangeServiceBaseMock = new ExchangeServiceBase() {
    @Override
    protected void processHttpErrorResponse(HttpWebRequest httpWebResponse, Exception webException)
        throws Exception {
      throw webException;
    }
  };
  exchangeServiceMock = new ExchangeService();
}
 
开发者ID:OfficeDev,项目名称:ews-java-api,代码行数:18,代码来源:BaseTest.java


示例15: ResolveNamesResponse

import microsoft.exchange.webservices.data.core.ExchangeService; //导入依赖的package包/类
/**
 * Initializes a new instance of the class.
 *
 * @param service the service
 */
public ResolveNamesResponse(ExchangeService service) {
  super();
  EwsUtilities.ewsAssert(service != null, "ResolveNamesResponse.ctor", "service is null");

  this.resolutions = new NameResolutionCollection(service);
}
 
开发者ID:OfficeDev,项目名称:ews-java-api,代码行数:12,代码来源:ResolveNamesResponse.java


示例16: ServiceObject

import microsoft.exchange.webservices.data.core.ExchangeService; //导入依赖的package包/类
/**
 * Internal constructor.
 *
 * @param service the service
 * @throws Exception the exception
 */
protected ServiceObject(ExchangeService service) throws Exception {
  EwsUtilities.validateParam(service, "service");
  EwsUtilities.validateServiceObjectVersion(this, service
      .getRequestedServerVersion());
  this.service = service;
  this.propertyBag = new PropertyBag(this);
}
 
开发者ID:OfficeDev,项目名称:ews-java-api,代码行数:14,代码来源:ServiceObject.java


示例17: getService

import microsoft.exchange.webservices.data.core.ExchangeService; //导入依赖的package包/类
public ExchangeService getService() {
    return service;
}
 
开发者ID:philipwhiuk,项目名称:q-mail,代码行数:4,代码来源:EwsStore.java


示例18: getService

import microsoft.exchange.webservices.data.core.ExchangeService; //导入依赖的package包/类
private ExchangeService getService() {
	return service;
}
 
开发者ID:gartcimore,项目名称:javamail4ews,代码行数:4,代码来源:EwsTransport.java


示例19: getService

import microsoft.exchange.webservices.data.core.ExchangeService; //导入依赖的package包/类
protected ExchangeService getService() {
	return service;
}
 
开发者ID:gartcimore,项目名称:javamail4ews,代码行数:4,代码来源:EwsStore.java


示例20: getService

import microsoft.exchange.webservices.data.core.ExchangeService; //导入依赖的package包/类
protected ExchangeService getService() {
    EwsStore lStore = getStore();
    return lStore.getService();
}
 
开发者ID:gartcimore,项目名称:javamail4ews,代码行数:5,代码来源:EwsFolder.java



注:本文中的microsoft.exchange.webservices.data.core.ExchangeService类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java DataSourcesResult类代码示例发布时间:2022-05-22
下一篇:
Java XmldbURI类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap