/** * Initializes a new instance. * * @param propertyDefinition The definition of the extended property. * @throws Exception the exception */ protected ExtendedProperty(ExtendedPropertyDefinition propertyDefinition) throws Exception { this(); EwsUtilities.validateParam(propertyDefinition, "propertyDefinition"); this.propertyDefinition = propertyDefinition; }
/** * Initializes a new instance. * * @param uniqueId The unique id. * @throws Exception the exception */ public ServiceId(String uniqueId) throws Exception { this(); EwsUtilities.validateParam(uniqueId, "uniqueId"); this.uniqueId = uniqueId; }
public AsyncRequestResult(ServiceRequestBase serviceRequest, HttpWebRequest webRequest, Future<?> task, Object asyncState) throws Exception { EwsUtilities.validateParam(serviceRequest, "serviceRequest"); EwsUtilities.validateParam(webRequest, "webRequest"); EwsUtilities.validateParam(task, "task"); this.serviceRequest = serviceRequest; this.webRequest = webRequest; this.asyncState = asyncState; this.task = task; }
/** * 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; }
/** * Defines an implicit conversion of UniqueBody into a string. * * @param messageBody the message body * @return string containing the text of the UniqueBody * @throws Exception the exception */ public static String getStringFromUniqueBody(UniqueBody messageBody) throws Exception { EwsUtilities.validateParam(messageBody, "messageBody"); return messageBody.text; }
/** * Validate request. * * @throws Exception */ public void validate() throws Exception { EwsUtilities.validateParam(this.conversationId, "conversationId"); }
/** * Validates this instance. */ @Override protected void internalValidate() throws Exception { EwsUtilities.validateParam(this.ruleId, "RuleId"); }
/** * Validates this instance. * * @throws Exception the exception */ public void validate() throws Exception { EwsUtilities.validateParam(this.smtpAddress, "SmtpAddress"); } }
/** * Validates this instance. * * @throws Exception */ @Override protected void internalValidate() throws Exception { EwsUtilities.validateParam(this.rule, "Rule"); }
/** * Validate request. * * @throws Exception the exception */ @Override protected void validate() throws Exception { super.validate(); EwsUtilities.validateParam(this.userConfiguration, "userConfiguration"); }
/** * Removes an e-mail address from the collection. * * @param emailAddress The e-mail address to remove. * @return True if the email address was successfully removed from the * collection, false otherwise. * @throws Exception the exception */ public boolean remove(EmailAddress emailAddress) throws Exception { EwsUtilities.validateParam(emailAddress, "emailAddress"); return this.internalRemove(emailAddress); }
/** * Validate this instance. */ @Override protected void internalValidate() throws Exception { EwsUtilities.validateParam(this.getMailbox(), "mailbox"); } }
/** * Validate request. * * @throws Exception the exception */ @Override protected void validate() throws Exception { super.validate(); EwsUtilities.validateParam(this.itemIds, "ItemIds"); }
/** * Removes an attendee from the collection. * * @param attendee the attendee * @return True if the attendee was successfully removed from the * collection, false otherwise. * @throws Exception the exception */ public boolean remove(Attendee attendee) throws Exception { EwsUtilities.validateParam(attendee, "attendee"); return this.internalRemove(attendee); }
/** * Validate request. * * @throws Exception the exception */ @Override protected void validate() throws Exception { super.validate(); EwsUtilities.validateParam(this.userConfiguration, "userConfiguration"); }
/** * Validate request. * * @throws Exception the exception */ @Override protected void validate() throws Exception { super.validate(); EwsUtilities.validateParam(this.getSmtpAddress(), "SmtpAddress"); EwsUtilities.validateParam(this.getOofSettings(), "OofSettings"); }
/** * Expands a group by retrieving a list of its members. Calling this * method results in a call to EWS. * * @param smtpAddress the smtp address * @return An ExpandGroupResults containing the members of the group. * @throws Exception the exception */ public ExpandGroupResults expandGroup(String smtpAddress) throws Exception { EwsUtilities.validateParam(smtpAddress, "smtpAddress"); return this.expandGroup(new EmailAddress(smtpAddress)); }
/** * Validate request. * * @throws ServiceLocalException the service local exception * @throws Exception the exception */ @Override protected void validate() throws ServiceLocalException, Exception { super.validate(); EwsUtilities.validateParam(this.getMailbox(), "Mailbox"); }
/** * Validate request. * * @throws Exception the exception */ @Override protected void validate() throws Exception { super.validate(); EwsUtilities.validateParam(this.getSmtpAddress(), "SmtpAddress"); }
/** * Validates request. * * @throws Exception on error */ @Override protected void validate() throws Exception { super.validate(); EwsUtilities.validateParam(this.getFolderIds(), "FolderIds"); this.getFolderIds().validate(this.getService(). getRequestedServerVersion()); }