public SavedSearch deepCopy() { return new SavedSearch(this); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof SavedSearch) return this.equals((SavedSearch)that); return false; }
/** * Performs a deep copy on <i>other</i>. */ public SavedSearch(SavedSearch other) { System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length); if (other.isSetGuid()) { this.guid = other.guid; } if (other.isSetName()) { this.name = other.name; } if (other.isSetQuery()) { this.query = other.query; } if (other.isSetFormat()) { this.format = other.format; } this.updateSequenceNum = other.updateSequenceNum; if (other.isSetScope()) { this.scope = new SavedSearchScope(other.scope); } }
case 2: // SEARCH if (field.type == TType.STRUCT) { this.search = new com.evernote.edam.type.SavedSearch(); this.search.read(iprot); } else { TProtocolUtil.skip(iprot, field.type);
log.auditLog("Start : createSearch"); NoteStoreClient noteStoreClient = EvernoteUtil.getNoteStoreClient(messageContext); SavedSearch savedSearch = new SavedSearch(); savedSearch.setName(name); savedSearch.setQuery(query); savedSearch.setScope(scope); SavedSearch search = noteStoreClient.createSearch(savedSearch); OMElement omResponse = EvernoteUtil.parseResponse("create.search.success"); EvernoteUtil.addElement(omResponse,"search-guid",search.getGuid()); EvernoteUtil.preparePayload(messageContext,omResponse ); log.auditLog("Stop : createSearch");
OMElement omResponse = EvernoteUtil.parseResponse("get.search.success"); OMElement omSearch = EvernoteUtil.createOMElement("search"); EvernoteUtil.addAttribute(omSearch,"guid",search.getGuid()); EvernoteUtil.addElement(omSearch,"name",search.getName()); EvernoteUtil.addElement(omSearch,"query",search.getQuery()); omResponse.addChild(omSearch); EvernoteUtil.preparePayload(messageContext,omResponse);
case 2: // SEARCH if (field.type == TType.STRUCT) { this.search = new com.evernote.edam.type.SavedSearch(); this.search.read(iprot); } else { TProtocolUtil.skip(iprot, field.type);
/** * Performs a deep copy on <i>other</i>. */ public SavedSearch(SavedSearch other) { System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length); if (other.isSetGuid()) { this.guid = other.guid; } if (other.isSetName()) { this.name = other.name; } if (other.isSetQuery()) { this.query = other.query; } if (other.isSetFormat()) { this.format = other.format; } this.updateSequenceNum = other.updateSequenceNum; if (other.isSetScope()) { this.scope = new SavedSearchScope(other.scope); } }
case 2: // SEARCH if (field.type == TType.STRUCT) { this.search = new com.evernote.edam.type.SavedSearch(); this.search.read(iprot); } else { TProtocolUtil.skip(iprot, field.type);
public SavedSearch deepCopy() { return new SavedSearch(this); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof SavedSearch) return this.equals((SavedSearch)that); return false; }
boolean this_present_guid = true && this.isSetGuid(); boolean that_present_guid = true && that.isSetGuid(); if (this_present_guid || that_present_guid) { if (!(this_present_guid && that_present_guid)) boolean this_present_name = true && this.isSetName(); boolean that_present_name = true && that.isSetName(); if (this_present_name || that_present_name) { if (!(this_present_name && that_present_name)) boolean this_present_query = true && this.isSetQuery(); boolean that_present_query = true && that.isSetQuery(); if (this_present_query || that_present_query) { if (!(this_present_query && that_present_query)) boolean this_present_format = true && this.isSetFormat(); boolean that_present_format = true && that.isSetFormat(); if (this_present_format || that_present_format) { if (!(this_present_format && that_present_format)) boolean this_present_updateSequenceNum = true && this.isSetUpdateSequenceNum(); boolean that_present_updateSequenceNum = true && that.isSetUpdateSequenceNum(); if (this_present_updateSequenceNum || that_present_updateSequenceNum) { if (!(this_present_updateSequenceNum && that_present_updateSequenceNum)) boolean this_present_scope = true && this.isSetScope(); boolean that_present_scope = true && that.isSetScope(); if (this_present_scope || that_present_scope) { if (!(this_present_scope && that_present_scope))
case 2: // SEARCH if (field.type == TType.STRUCT) { this.search = new com.evernote.edam.type.SavedSearch(); this.search.read(iprot); } else { TProtocolUtil.skip(iprot, field.type);
/** * Performs a deep copy on <i>other</i>. */ public updateSearch_args(updateSearch_args other) { if (other.isSetAuthenticationToken()) { this.authenticationToken = other.authenticationToken; } if (other.isSetSearch()) { this.search = new com.evernote.edam.type.SavedSearch(other.search); } }
boolean this_present_guid = true && this.isSetGuid(); boolean that_present_guid = true && that.isSetGuid(); if (this_present_guid || that_present_guid) { if (!(this_present_guid && that_present_guid)) boolean this_present_name = true && this.isSetName(); boolean that_present_name = true && that.isSetName(); if (this_present_name || that_present_name) { if (!(this_present_name && that_present_name)) boolean this_present_query = true && this.isSetQuery(); boolean that_present_query = true && that.isSetQuery(); if (this_present_query || that_present_query) { if (!(this_present_query && that_present_query)) boolean this_present_format = true && this.isSetFormat(); boolean that_present_format = true && that.isSetFormat(); if (this_present_format || that_present_format) { if (!(this_present_format && that_present_format)) boolean this_present_updateSequenceNum = true && this.isSetUpdateSequenceNum(); boolean that_present_updateSequenceNum = true && that.isSetUpdateSequenceNum(); if (this_present_updateSequenceNum || that_present_updateSequenceNum) { if (!(this_present_updateSequenceNum && that_present_updateSequenceNum)) boolean this_present_scope = true && this.isSetScope(); boolean that_present_scope = true && that.isSetScope(); if (this_present_scope || that_present_scope) { if (!(this_present_scope && that_present_scope))
_elem124 = new com.evernote.edam.type.SavedSearch(); _elem124.read(iprot); this.success.add(_elem124);
/** * Performs a deep copy on <i>other</i>. */ public createSearch_args(createSearch_args other) { if (other.isSetAuthenticationToken()) { this.authenticationToken = other.authenticationToken; } if (other.isSetSearch()) { this.search = new com.evernote.edam.type.SavedSearch(other.search); } }
lastComparison = Boolean.valueOf(isSetGuid()).compareTo(typedOther.isSetGuid()); if (lastComparison != 0) { return lastComparison; if (isSetGuid()) { lastComparison = TBaseHelper.compareTo(this.guid, typedOther.guid); if (lastComparison != 0) { return lastComparison; lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName()); if (lastComparison != 0) { return lastComparison; if (isSetName()) { lastComparison = TBaseHelper.compareTo(this.name, typedOther.name); if (lastComparison != 0) { return lastComparison; lastComparison = Boolean.valueOf(isSetQuery()).compareTo(typedOther.isSetQuery()); if (lastComparison != 0) { return lastComparison; if (isSetQuery()) { lastComparison = TBaseHelper.compareTo(this.query, typedOther.query); if (lastComparison != 0) { return lastComparison; lastComparison = Boolean.valueOf(isSetFormat()).compareTo(typedOther.isSetFormat()); if (lastComparison != 0) { return lastComparison; if (isSetFormat()) { lastComparison = TBaseHelper.compareTo(this.format, typedOther.format);
_elem124 = new com.evernote.edam.type.SavedSearch(); _elem124.read(iprot); this.success.add(_elem124);