本小節描述如何查詢刪除記錄資料庫。
若要從刪除記錄資料庫傳回項目,請以展開模式或壓縮模式使用 fetch_deletedcomponents WCAP 指令:
以下資訊說明何時及如何指定每一種模式。
展開模式 (recurring = 0)
如果 recurring 參數為 0,則 fetch_deletedcomponents 會傳回符合條件的週期性事件之所有實例,但不傳回週期性事件的主要元件。
壓縮模式 (recurring = 1)
如果 recurring 參數為 1,則 fetch_deletedcomponents 會傳回非週期性事件以及所有週期性事件的主要元件,但不傳回個別週期性事件。
如果刪除了週期性鏈中的所有實例,則主要元件會傳回 dtstart、dtend、rrules、rdates、exrules、exdates 及 uid 參數。
此外,fetch_deletedcomponents 指令不會傳回與仍處於使用中的已刪除週期性實例相關的主要元件。若要傳回使用中的主要元件,請使用 fetchcomponents_by_lastmod WCAP 指令。fetch_deletedcomponents 指令應與 fetchcomponents_by_lastmod 指令配合使用。
如需有關 WCAP 指令的更多資訊,請參閱 「Sun Java System Calendar Server 6.3 WCAP Developer’s Guide」。