本文整理匯總了Java中org.alfresco.service.cmr.calendar.CalendarRecurrenceHelper類的典型用法代碼示例。如果您正苦於以下問題:Java CalendarRecurrenceHelper類的具體用法?Java CalendarRecurrenceHelper怎麽用?Java CalendarRecurrenceHelper使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
CalendarRecurrenceHelper類屬於org.alfresco.service.cmr.calendar包,在下文中一共展示了CalendarRecurrenceHelper類的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: buildParams
import org.alfresco.service.cmr.calendar.CalendarRecurrenceHelper; //導入依賴的package包/類
private static StringBuffer buildParams(Map<String, String> params, StringBuffer text, Map<String, String> days)
{
int day = params.get("BYDAY").split(",").length;
if(day == 7){
text.append(CalendarRecurrenceHelper.DAY);
}
if(day == 5){
text.append(CalendarRecurrenceHelper.WEEKDAYS);
}
if(day == 2){
text.append(CalendarRecurrenceHelper.WEEKENDS);
}
if(day != 7 && day != 5 && day != 2){
text.append(days.get(params.get("BYDAY")));
}
return text;
}
示例2: buildDailyRecurrences
import org.alfresco.service.cmr.calendar.CalendarRecurrenceHelper; //導入依賴的package包/類
protected static void buildDailyRecurrences(Calendar currentDate, long duration, List<Date> dates,
Map<String,String> params, Date onOrAfter, Date until, boolean firstOnly, int interval)
{
CalendarRecurrenceHelper.buildDailyRecurrences(
currentDate, duration, dates, params, onOrAfter, until, firstOnly, interval);
}
示例3: buildWeeklyRecurrences
import org.alfresco.service.cmr.calendar.CalendarRecurrenceHelper; //導入依賴的package包/類
protected static void buildWeeklyRecurrences(Calendar currentDate, long duration, List<Date> dates,
Map<String,String> params, Date onOrAfter, Date until, boolean firstOnly, int interval)
{
CalendarRecurrenceHelper.buildWeeklyRecurrences(
currentDate, duration, dates, params, onOrAfter, until, firstOnly, interval);
}
示例4: buildMonthlyRecurrences
import org.alfresco.service.cmr.calendar.CalendarRecurrenceHelper; //導入依賴的package包/類
protected static void buildMonthlyRecurrences(Calendar currentDate, long duration, List<Date> dates,
Map<String,String> params, Date onOrAfter, Date until, boolean firstOnly, int interval)
{
CalendarRecurrenceHelper.buildMonthlyRecurrences(
currentDate, duration, dates, params, onOrAfter, until, firstOnly, interval);
}
示例5: buildYearlyRecurrences
import org.alfresco.service.cmr.calendar.CalendarRecurrenceHelper; //導入依賴的package包/類
protected static void buildYearlyRecurrences(Calendar currentDate, long duration, List<Date> dates,
Map<String,String> params, Date onOrAfter, Date until, boolean firstOnly, int interval)
{
CalendarRecurrenceHelper.buildYearlyRecurrences(
currentDate, duration, dates, params, onOrAfter, until, firstOnly, interval);
}
示例6: fixOutlookRecurrenceQuirks
import org.alfresco.service.cmr.calendar.CalendarRecurrenceHelper; //導入依賴的package包/類
protected static Map<String,String> fixOutlookRecurrenceQuirks(Map<String,String> params)
{
return CalendarRecurrenceHelper.fixOutlookRecurrenceQuirks(params);
}