/** * Validate request. * * @throws ServiceLocalException the service local exception * @throws Exception the exception */ protected void validate() throws ServiceLocalException, Exception { super.validate(); EwsUtilities.validateParam(this.propertySet, "PropertySet"); this.propertySet .validateForRequest(this, false /* summaryPropertiesOnly */); }
/** * Validates this view. * * @param request The request using this view. * @throws ServiceValidationException the service validation exception * @throws ServiceVersionException the service version exception */ public void internalValidate(ServiceRequestBase request) throws ServiceValidationException, ServiceVersionException { if (this.getPropertySet() != null) { this.getPropertySet().internalValidate(); this.getPropertySet().validateForRequest( request, true /* summaryPropertiesOnly */); } }
/** * Validates request. * * @throws Exception the exception */ @Override protected void validate() throws Exception { super.validate(); EwsUtilities.validateParam(this.getPropertySet(), "PropertySet"); if (this.getSyncFolderId() != null) { this.getSyncFolderId().validate( this.getService().getRequestedServerVersion()); } this.getPropertySet() .validateForRequest(this, false /* summaryPropertiesOnly */); }
/** * Validates request. * * @throws Exception the exception */ @Override protected void validate() throws Exception { super.validate(); EwsUtilities.validateParam(this.getPropertySet(), "PropertySet"); EwsUtilities.validateParam(this.getSyncFolderId(), "SyncFolderId"); this.getSyncFolderId().validate( this.getService().getRequestedServerVersion()); // SyncFolderItemsScope enum was introduced with Exchange2010. Only // value NormalItems is valid with previous server versions. if (this.getService().getRequestedServerVersion().compareTo( ExchangeVersion.Exchange2010) < 0 && this.syncScope != SyncFolderItemsScope.NormalItems) { throw new ServiceVersionException(String.format( "Enumeration value %s in enumeration type %s is only valid for Exchange version %s or later.", this .getSyncScope().toString(), this.getSyncScope() .name(), ExchangeVersion.Exchange2010)); } // SyncFolderItems can only handle summary property this.getPropertySet() .validateForRequest(this, true /* summaryPropertiesOnly */); }
/** * Validate request. * * @throws ServiceLocalException the service local exception * @throws Exception the exception */ protected void validate() throws ServiceLocalException, Exception { super.validate(); EwsUtilities.validateParam(this.propertySet, "PropertySet"); this.propertySet .validateForRequest(this, false /* summaryPropertiesOnly */); }
/** * Validates this view. * * @param request The request using this view. * @throws ServiceValidationException the service validation exception * @throws ServiceVersionException the service version exception */ public void internalValidate(ServiceRequestBase request) throws ServiceValidationException, ServiceVersionException { if (this.getPropertySet() != null) { this.getPropertySet().internalValidate(); this.getPropertySet().validateForRequest( request, true /* summaryPropertiesOnly */); } }
/** * Validates request. * * @throws Exception the exception */ @Override protected void validate() throws Exception { super.validate(); EwsUtilities.validateParam(this.getPropertySet(), "PropertySet"); if (this.getSyncFolderId() != null) { this.getSyncFolderId().validate( this.getService().getRequestedServerVersion()); } this.getPropertySet() .validateForRequest(this, false /* summaryPropertiesOnly */); }
/** * Validates request. * * @throws Exception the exception */ @Override protected void validate() throws Exception { super.validate(); EwsUtilities.validateParam(this.getPropertySet(), "PropertySet"); EwsUtilities.validateParam(this.getSyncFolderId(), "SyncFolderId"); this.getSyncFolderId().validate( this.getService().getRequestedServerVersion()); // SyncFolderItemsScope enum was introduced with Exchange2010. Only // value NormalItems is valid with previous server versions. if (this.getService().getRequestedServerVersion().compareTo( ExchangeVersion.Exchange2010) < 0 && this.syncScope != SyncFolderItemsScope.NormalItems) { throw new ServiceVersionException(String.format( "Enumeration value %s in enumeration type %s is only valid for Exchange version %s or later.", this .getSyncScope().toString(), this.getSyncScope() .name(), ExchangeVersion.Exchange2010)); } // SyncFolderItems can only handle summary property this.getPropertySet() .validateForRequest(this, true /* summaryPropertiesOnly */); }