/** * Validate request. * * @throws microsoft.exchange.webservices.data.ServiceLocalException the service local exception * @throws Exception the exception */ @Override protected void validate() throws ServiceLocalException, Exception { super.validate(); EwsUtilities.validateParam(this.name, "name"); EwsUtilities.validateParam(this.parentFolderId, "parentFolderId"); this.getParentFolderId().validate(this.getService().getRequestedServerVersion()); }
/** * Validate request. * * @throws Exception the exception */ @Override protected void validate() throws Exception { super.validate(); EwsUtilities.validateParamCollection(this.getAttachments().iterator(), "Attachments"); for (int i = 0; i < this.getAdditionalProperties().size(); i++) { EwsUtilities.validateParam( this.getAdditionalProperties().get(i), String.format("AdditionalProperties[%d]", i)); } }
/** * * 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 */); }
/** * Validate the request. * * @throws ServiceLocalException the service local exception * @throws Exception the exception */ @Override protected void validate() throws ServiceLocalException, Exception { super.validate(); EwsUtilities.validateNonBlankStringParam(this.getSubscriptionId(), "SubscriptionId"); }
/** * Validate request. * * @throws Exception the exception */ protected void validate() throws Exception { super.validate(); EwsUtilities.validateParamCollection(this.ids.iterator(), "Ids"); }