若要從刪除記錄資料庫傳回項目,請以展開模式或壓縮模式使用 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_lasmod WCAP 指令。fetch_deletedcomponents 指令應與 fetchcomponents_by_lasmod 指令配合使用。
如需有關 WCAP 指令的更多資訊,請參閱「Sun Java System Calendar Server 6 2005Q4 Developer’s Guide」。