public NotebookRestrictions deepCopy() { return new NotebookRestrictions(this); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof NotebookRestrictions) return this.equals((NotebookRestrictions)that); return false; }
boolean this_present_noReadNotes = true && this.isSetNoReadNotes(); boolean that_present_noReadNotes = true && that.isSetNoReadNotes(); if (this_present_noReadNotes || that_present_noReadNotes) { if (!(this_present_noReadNotes && that_present_noReadNotes)) boolean this_present_noCreateNotes = true && this.isSetNoCreateNotes(); boolean that_present_noCreateNotes = true && that.isSetNoCreateNotes(); if (this_present_noCreateNotes || that_present_noCreateNotes) { if (!(this_present_noCreateNotes && that_present_noCreateNotes)) boolean this_present_noUpdateNotes = true && this.isSetNoUpdateNotes(); boolean that_present_noUpdateNotes = true && that.isSetNoUpdateNotes(); if (this_present_noUpdateNotes || that_present_noUpdateNotes) { if (!(this_present_noUpdateNotes && that_present_noUpdateNotes)) boolean this_present_noExpungeNotes = true && this.isSetNoExpungeNotes(); boolean that_present_noExpungeNotes = true && that.isSetNoExpungeNotes(); if (this_present_noExpungeNotes || that_present_noExpungeNotes) { if (!(this_present_noExpungeNotes && that_present_noExpungeNotes)) boolean this_present_noShareNotes = true && this.isSetNoShareNotes(); boolean that_present_noShareNotes = true && that.isSetNoShareNotes(); if (this_present_noShareNotes || that_present_noShareNotes) { if (!(this_present_noShareNotes && that_present_noShareNotes)) boolean this_present_noEmailNotes = true && this.isSetNoEmailNotes(); boolean that_present_noEmailNotes = true && that.isSetNoEmailNotes(); if (this_present_noEmailNotes || that_present_noEmailNotes) { if (!(this_present_noEmailNotes && that_present_noEmailNotes))
/** * Performs a deep copy on <i>other</i>. */ public NotebookRestrictions(NotebookRestrictions other) { System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length); this.noReadNotes = other.noReadNotes; this.noCreateNotes = other.noCreateNotes; this.noUpdateNotes = other.noUpdateNotes; this.noExpungeNotes = other.noExpungeNotes; this.noShareNotes = other.noShareNotes; this.noEmailNotes = other.noEmailNotes; this.noSendMessageToRecipients = other.noSendMessageToRecipients; this.noUpdateNotebook = other.noUpdateNotebook; this.noExpungeNotebook = other.noExpungeNotebook; this.noSetDefaultNotebook = other.noSetDefaultNotebook; this.noSetNotebookStack = other.noSetNotebookStack; this.noPublishToPublic = other.noPublishToPublic; this.noPublishToBusinessLibrary = other.noPublishToBusinessLibrary; this.noCreateTags = other.noCreateTags; this.noUpdateTags = other.noUpdateTags; this.noExpungeTags = other.noExpungeTags; this.noSetParentTag = other.noSetParentTag; this.noCreateSharedNotebooks = other.noCreateSharedNotebooks; if (other.isSetUpdateWhichSharedNotebookRestrictions()) { this.updateWhichSharedNotebookRestrictions = other.updateWhichSharedNotebookRestrictions; } if (other.isSetExpungeWhichSharedNotebookRestrictions()) { this.expungeWhichSharedNotebookRestrictions = other.expungeWhichSharedNotebookRestrictions; } }
/** * Checks writable permissions of {@link LinkedNotebook} on Linked account * * @param linkedNotebook */ public boolean isNotebookWritable(LinkedNotebook linkedNotebook) throws EDAMUserException, TException, EDAMSystemException, EDAMNotFoundException { Notebook notebook = getCorrespondingNotebook(linkedNotebook); return !notebook.getRestrictions().isNoCreateNotes(); }
case 17: // RESTRICTIONS if (field.type == TType.STRUCT) { this.restrictions = new NotebookRestrictions(); this.restrictions.read(iprot); } else { TProtocolUtil.skip(iprot, field.type);
/** * @return {@code true} if this linked notebook is writable. */ public boolean isNotebookWritable() throws EDAMUserException, TException, EDAMSystemException, EDAMNotFoundException { Notebook notebook = getCorrespondingNotebook(); return !notebook.getRestrictions().isNoCreateNotes(); }
/** * Performs a deep copy on <i>other</i>. */ public NotebookRestrictions(NotebookRestrictions other) { System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length); this.noReadNotes = other.noReadNotes; this.noCreateNotes = other.noCreateNotes; this.noUpdateNotes = other.noUpdateNotes; this.noExpungeNotes = other.noExpungeNotes; this.noShareNotes = other.noShareNotes; this.noEmailNotes = other.noEmailNotes; this.noSendMessageToRecipients = other.noSendMessageToRecipients; this.noUpdateNotebook = other.noUpdateNotebook; this.noExpungeNotebook = other.noExpungeNotebook; this.noSetDefaultNotebook = other.noSetDefaultNotebook; this.noSetNotebookStack = other.noSetNotebookStack; this.noPublishToPublic = other.noPublishToPublic; this.noPublishToBusinessLibrary = other.noPublishToBusinessLibrary; this.noCreateTags = other.noCreateTags; this.noUpdateTags = other.noUpdateTags; this.noExpungeTags = other.noExpungeTags; this.noSetParentTag = other.noSetParentTag; this.noCreateSharedNotebooks = other.noCreateSharedNotebooks; if (other.isSetUpdateWhichSharedNotebookRestrictions()) { this.updateWhichSharedNotebookRestrictions = other.updateWhichSharedNotebookRestrictions; } if (other.isSetExpungeWhichSharedNotebookRestrictions()) { this.expungeWhichSharedNotebookRestrictions = other.expungeWhichSharedNotebookRestrictions; } }
case 17: // RESTRICTIONS if (field.type == TType.STRUCT) { this.restrictions = new NotebookRestrictions(); this.restrictions.read(iprot); } else { TProtocolUtil.skip(iprot, field.type);
boolean this_present_noReadNotes = true && this.isSetNoReadNotes(); boolean that_present_noReadNotes = true && that.isSetNoReadNotes(); if (this_present_noReadNotes || that_present_noReadNotes) { if (!(this_present_noReadNotes && that_present_noReadNotes)) boolean this_present_noCreateNotes = true && this.isSetNoCreateNotes(); boolean that_present_noCreateNotes = true && that.isSetNoCreateNotes(); if (this_present_noCreateNotes || that_present_noCreateNotes) { if (!(this_present_noCreateNotes && that_present_noCreateNotes)) boolean this_present_noUpdateNotes = true && this.isSetNoUpdateNotes(); boolean that_present_noUpdateNotes = true && that.isSetNoUpdateNotes(); if (this_present_noUpdateNotes || that_present_noUpdateNotes) { if (!(this_present_noUpdateNotes && that_present_noUpdateNotes)) boolean this_present_noExpungeNotes = true && this.isSetNoExpungeNotes(); boolean that_present_noExpungeNotes = true && that.isSetNoExpungeNotes(); if (this_present_noExpungeNotes || that_present_noExpungeNotes) { if (!(this_present_noExpungeNotes && that_present_noExpungeNotes)) boolean this_present_noShareNotes = true && this.isSetNoShareNotes(); boolean that_present_noShareNotes = true && that.isSetNoShareNotes(); if (this_present_noShareNotes || that_present_noShareNotes) { if (!(this_present_noShareNotes && that_present_noShareNotes)) boolean this_present_noEmailNotes = true && this.isSetNoEmailNotes(); boolean that_present_noEmailNotes = true && that.isSetNoEmailNotes(); if (this_present_noEmailNotes || that_present_noEmailNotes) { if (!(this_present_noEmailNotes && that_present_noEmailNotes))
/** * Checks writable permissions of {@link LinkedNotebook} on Linked account * * @param linkedNotebook */ public boolean isNotebookWritable(LinkedNotebook linkedNotebook) throws EDAMUserException, TException, EDAMSystemException, EDAMNotFoundException { Notebook notebook = getCorrespondingNotebook(linkedNotebook); return !notebook.getRestrictions().isNoCreateNotes(); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof NotebookRestrictions) return this.equals((NotebookRestrictions)that); return false; }
public NotebookRestrictions deepCopy() { return new NotebookRestrictions(this); }
lastComparison = Boolean.valueOf(isSetNoReadNotes()).compareTo(typedOther.isSetNoReadNotes()); if (lastComparison != 0) { return lastComparison; if (isSetNoReadNotes()) { lastComparison = TBaseHelper.compareTo(this.noReadNotes, typedOther.noReadNotes); if (lastComparison != 0) { return lastComparison; lastComparison = Boolean.valueOf(isSetNoCreateNotes()).compareTo(typedOther.isSetNoCreateNotes()); if (lastComparison != 0) { return lastComparison; if (isSetNoCreateNotes()) { lastComparison = TBaseHelper.compareTo(this.noCreateNotes, typedOther.noCreateNotes); if (lastComparison != 0) { return lastComparison; lastComparison = Boolean.valueOf(isSetNoUpdateNotes()).compareTo(typedOther.isSetNoUpdateNotes()); if (lastComparison != 0) { return lastComparison; if (isSetNoUpdateNotes()) { lastComparison = TBaseHelper.compareTo(this.noUpdateNotes, typedOther.noUpdateNotes); if (lastComparison != 0) { return lastComparison; lastComparison = Boolean.valueOf(isSetNoExpungeNotes()).compareTo(typedOther.isSetNoExpungeNotes()); if (lastComparison != 0) { return lastComparison; if (isSetNoExpungeNotes()) { lastComparison = TBaseHelper.compareTo(this.noExpungeNotes, typedOther.noExpungeNotes);
if (!(this_present_restrictions && that_present_restrictions)) return false; if (!this.restrictions.equals(that.restrictions)) return false;
this.restrictions = new NotebookRestrictions(other.restrictions);
lastComparison = Boolean.valueOf(isSetNoReadNotes()).compareTo(typedOther.isSetNoReadNotes()); if (lastComparison != 0) { return lastComparison; if (isSetNoReadNotes()) { lastComparison = TBaseHelper.compareTo(this.noReadNotes, typedOther.noReadNotes); if (lastComparison != 0) { return lastComparison; lastComparison = Boolean.valueOf(isSetNoCreateNotes()).compareTo(typedOther.isSetNoCreateNotes()); if (lastComparison != 0) { return lastComparison; if (isSetNoCreateNotes()) { lastComparison = TBaseHelper.compareTo(this.noCreateNotes, typedOther.noCreateNotes); if (lastComparison != 0) { return lastComparison; lastComparison = Boolean.valueOf(isSetNoUpdateNotes()).compareTo(typedOther.isSetNoUpdateNotes()); if (lastComparison != 0) { return lastComparison; if (isSetNoUpdateNotes()) { lastComparison = TBaseHelper.compareTo(this.noUpdateNotes, typedOther.noUpdateNotes); if (lastComparison != 0) { return lastComparison; lastComparison = Boolean.valueOf(isSetNoExpungeNotes()).compareTo(typedOther.isSetNoExpungeNotes()); if (lastComparison != 0) { return lastComparison; if (isSetNoExpungeNotes()) { lastComparison = TBaseHelper.compareTo(this.noExpungeNotes, typedOther.noExpungeNotes);
if (!(this_present_restrictions && that_present_restrictions)) return false; if (!this.restrictions.equals(that.restrictions)) return false;
this.restrictions = new NotebookRestrictions(other.restrictions);
if (isSetNoReadNotes()) { sb.append("noReadNotes:"); sb.append(this.noReadNotes); first = false; if (isSetNoCreateNotes()) { if (!first) sb.append(", "); sb.append("noCreateNotes:"); if (isSetNoUpdateNotes()) { if (!first) sb.append(", "); sb.append("noUpdateNotes:"); if (isSetNoExpungeNotes()) { if (!first) sb.append(", "); sb.append("noExpungeNotes:"); if (isSetNoShareNotes()) { if (!first) sb.append(", "); sb.append("noShareNotes:"); if (isSetNoEmailNotes()) { if (!first) sb.append(", "); sb.append("noEmailNotes:"); if (isSetNoSendMessageToRecipients()) { if (!first) sb.append(", "); sb.append("noSendMessageToRecipients:");