/** * Validates this instance. * * @throws Exception the exception */ @Override public void validate() throws Exception { super.validate(); if (this.getSearchParameters() != null) { this.getSearchParameters().validate(); } }
/** * validates request. * * @throws ServiceLocalException the service local exception * @throws Exception the exception */ @Override protected void validate() throws ServiceLocalException, Exception { super.validate(); EwsUtilities.validateParamCollection(this.getFolders().iterator(), "Folders"); for (int i = 0; i < this.getFolders().size(); i++) { Folder folder = this.getFolders().get(i); if ((folder == null) || folder.isNew()) { throw new IllegalArgumentException(String.format("Folders[%d] is either null or does not have an Id.", i)); } folder.validate(); } }
/** * Validate request. * * @throws Exception the exception */ @Override protected void validate() throws Exception { super.validate(); EwsUtilities.validateParam(this.getFolders(), "Folders"); // Validate each folder. for (Folder folder : this.getFolders()) { folder.validate(); } }
/** * Validates this instance. * * @throws Exception the exception */ @Override public void validate() throws Exception { super.validate(); if (this.getSearchParameters() != null) { this.getSearchParameters().validate(); } }
/** * validates request. * * @throws ServiceLocalException the service local exception * @throws Exception the exception */ @Override protected void validate() throws ServiceLocalException, Exception { super.validate(); EwsUtilities.validateParamCollection(this.getFolders().iterator(), "Folders"); for (int i = 0; i < this.getFolders().size(); i++) { Folder folder = this.getFolders().get(i); if ((folder == null) || folder.isNew()) { throw new IllegalArgumentException(String.format("Folders[%d] is either null or does not have an Id.", i)); } folder.validate(); } }
/** * Validate request. * * @throws Exception the exception */ @Override protected void validate() throws Exception { super.validate(); EwsUtilities.validateParam(this.getFolders(), "Folders"); // Validate each folder. for (Folder folder : this.getFolders()) { folder.validate(); } }