/** * Deletes the object. * * @param deleteMode the delete mode * @param sendCancellationsMode the send cancellations mode * @param affectedTaskOccurrences the affected task occurrences * @throws ServiceLocalException the service local exception * @throws Exception the exception */ @Override protected void internalDelete(DeleteMode deleteMode, SendCancellationsMode sendCancellationsMode, AffectedTaskOccurrence affectedTaskOccurrences) throws ServiceLocalException, Exception { this.throwIfThisIsNew(); this.throwIfThisIsAttachment(); // If sendCancellationsMode is null, use the default value that's // appropriate for item type. if (sendCancellationsMode == null) { sendCancellationsMode = this.getDefaultSendCancellationsMode(); } // If affectedTaskOccurrences is null, use the default value that's // appropriate for item type. if (affectedTaskOccurrences == null) { affectedTaskOccurrences = this.getDefaultAffectedTaskOccurrences(); } this.getService().deleteItem(this.getId(), deleteMode, sendCancellationsMode, affectedTaskOccurrences); }
/** * Deletes the object. * * @param deleteMode the delete mode * @param sendCancellationsMode the send cancellations mode * @param affectedTaskOccurrences the affected task occurrences * @throws ServiceLocalException the service local exception * @throws Exception the exception */ @Override protected void internalDelete(DeleteMode deleteMode, SendCancellationsMode sendCancellationsMode, AffectedTaskOccurrence affectedTaskOccurrences) throws ServiceLocalException, Exception { this.throwIfThisIsNew(); this.throwIfThisIsAttachment(); // If sendCancellationsMode is null, use the default value that's // appropriate for item type. if (sendCancellationsMode == null) { sendCancellationsMode = this.getDefaultSendCancellationsMode(); } // If affectedTaskOccurrences is null, use the default value that's // appropriate for item type. if (affectedTaskOccurrences == null) { affectedTaskOccurrences = this.getDefaultAffectedTaskOccurrences(); } this.getService().deleteItem(this.getId(), deleteMode, sendCancellationsMode, affectedTaskOccurrences); }