public interface CalendarService
extends com.appiancorp.services.ContextSensitiveService
SystemCalendar
Modifier and Type | Field and Description |
---|---|
static boolean |
createCalendar$UPDATES |
static boolean |
deleteCalendar$UPDATES |
static boolean |
getCalendar$UPDATES |
static boolean |
getCalendarsPaging$UPDATES |
static boolean |
getDefaultCalendar$UPDATES |
static boolean |
updateCalendar$UPDATES |
static boolean |
updateDefaultCalendar$UPDATES |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
createCalendar(WorkingCalendar calendar)
Creates a calendar.
|
void |
deleteCalendar(java.lang.Long id)
Deletes a calendar
|
WorkingCalendar |
getCalendar(java.lang.Long id)
Gets a calendar.
|
ResultPage |
getCalendarsPaging(int startIndex,
int batchSize,
java.lang.Integer sortProperty,
java.lang.Integer sortOrder)
Retrieves calendars in the system, paging the results.
|
SystemCalendar |
getDefaultCalendar()
Deprecated.
use
getCalendar |
void |
updateCalendar(WorkingCalendar calendar)
Updates a calendar.
|
void |
updateDefaultCalendar(SystemCalendar defaultCalendar_)
Deprecated.
use
updateCalendar |
static final boolean getDefaultCalendar$UPDATES
static final boolean updateDefaultCalendar$UPDATES
static final boolean getCalendar$UPDATES
static final boolean createCalendar$UPDATES
static final boolean updateCalendar$UPDATES
static final boolean deleteCalendar$UPDATES
static final boolean getCalendarsPaging$UPDATES
SystemCalendar getDefaultCalendar()
getCalendar
void updateDefaultCalendar(SystemCalendar defaultCalendar_) throws PrivilegeException
updateCalendar
defaultCalendar_
- new SystemCalendar
to set.PrivilegeException
- if the current user does not have permission to update
the system calendar. Only System Administrators may update the system
calendar.WorkingCalendar getCalendar(java.lang.Long id) throws InvalidCalendarException
id
- the id of the calendar to retrieveInvalidCalendarException
- if no calendar exists with the given idjava.lang.Long createCalendar(WorkingCalendar calendar) throws PrivilegeException
calendar
- the calendar to createPrivilegeException
- if the current user does not have permission to create a calendar.
Only System Administrators may create calendars.java.lang.NullPointerException
- if the calendar name is not setjava.lang.IllegalArgumentException
- if the calendar name is not uniquevoid updateCalendar(WorkingCalendar calendar) throws InvalidCalendarException, PrivilegeException
calendar
- the calendar to updateInvalidCalendarException
- if no calendar exists with the given idPrivilegeException
- if the current user does not have permission to update the calendar.
Only System Administrators may create calendars.java.lang.NullPointerException
- if the calendar name is not setjava.lang.IllegalArgumentException
- if the calendar name is not uniquevoid deleteCalendar(java.lang.Long id) throws InvalidCalendarException, PrivilegeException
id
- the id of the calendar to deleteInvalidCalendarException
- if no calendar exists with the given idPrivilegeException
- if the current user does not have permission to delete the calendar.
Only System Administrators may delete calendars.ResultPage getCalendarsPaging(int startIndex, int batchSize, java.lang.Integer sortProperty, java.lang.Integer sortOrder)
startIndex_
- the index into the collection of total results at which to start. Negative
numbers are treated as zeros.batchSize_
- the number of results to return. Use
Constants.COUNT_ALL
to return the entire
collection.sortProperty_
- the property by which the results will be sorted. Should be one of the
SORT_BY_XXX
constants defined in TaskSummary
.sortOrder_
- The order in which to sort the results. This should be either
Constants.SORT_ORDER_ASCENDING
or
Constants.SORT_ORDER_DESCENDING
.ResultPage
containing a list of WorkingCalendar
objectsCopyright © 2003-2024 Appian Corporation. All Rights Reserved.