Package com.appiancorp.suiteapi.process
Interface CalendarService
- All Superinterfaces:
com.appiancorp.services.ContextSensitiveService,Service
public interface CalendarService
extends com.appiancorp.services.ContextSensitiveService
This service provides methods which retrieve and update calendars in the system.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.Fields inherited from interface com.appiancorp.services.ContextSensitiveService
SET_SERVICE_CONTEXT_METHOD_NAME -
Method Summary
Modifier and TypeMethodDescriptioncreateCalendar(WorkingCalendar calendar) Creates a calendar.voiddeleteCalendar(Long id) Deletes a calendargetCalendar(Long id) Gets a calendar.getCalendarsPaging(int startIndex, int batchSize, Integer sortProperty, Integer sortOrder) Retrieves calendars in the system, paging the results.Deprecated.voidupdateCalendar(WorkingCalendar calendar) Updates a calendar.voidupdateDefaultCalendar(SystemCalendar defaultCalendar_) Methods inherited from interface com.appiancorp.services.ContextSensitiveService
setServiceContext
-
Field Details
-
getDefaultCalendar$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
updateDefaultCalendar$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getCalendar$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
createCalendar$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
updateCalendar$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
deleteCalendar$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getCalendarsPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
-
Method Details
-
getDefaultCalendar
Deprecated.Retrieves the default calendar for process. There is no security for retrieving the system calendar.- Returns:
- The default calendar for process.
-
updateDefaultCalendar
@Deprecated @Write(K_PROCESS_DESIGN) void updateDefaultCalendar(SystemCalendar defaultCalendar_) throws PrivilegeException Sets the default calendar for process.- Parameters:
defaultCalendar_- newSystemCalendarto set.- Throws:
PrivilegeException- if the current user does not have permission to update the system calendar. Only System Administrators may update the system calendar.
-
getCalendar
Gets a calendar.- Parameters:
id- the id of the calendar to retrieve- Returns:
- the calendar
- Throws:
InvalidCalendarException- if no calendar exists with the given id
-
createCalendar
Creates a calendar.- Parameters:
calendar- the calendar to create- Returns:
- the id of the newly created calendar
- Throws:
PrivilegeException- if the current user does not have permission to create a calendar. Only System Administrators may create calendars.NullPointerException- if the calendar name is not setIllegalArgumentException- if the calendar name is not unique
-
updateCalendar
@Write(K_PROCESS_DESIGN) void updateCalendar(WorkingCalendar calendar) throws InvalidCalendarException, PrivilegeException Updates a calendar.- Parameters:
calendar- the calendar to update- Throws:
InvalidCalendarException- 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.NullPointerException- if the calendar name is not setIllegalArgumentException- if the calendar name is not unique
-
deleteCalendar
@Write(K_PROCESS_DESIGN) void deleteCalendar(Long id) throws InvalidCalendarException, PrivilegeException Deletes a calendar- Parameters:
id- the id of the calendar to delete- Throws:
InvalidCalendarException- 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.
-
getCalendarsPaging
@Read(K_PROCESS_DESIGN) ResultPage getCalendarsPaging(int startIndex, int batchSize, Integer sortProperty, Integer sortOrder) Retrieves calendars in the system, paging the results.- Parameters:
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. UseConstants.COUNT_ALLto return the entire collection.sortProperty- the property by which the results will be sorted. Should be one of theSORT_BY_XXXconstants defined inTaskSummary.sortOrder- The order in which to sort the results. This should be eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING.- Returns:
- a
ResultPagecontaining a list ofWorkingCalendarobjects
-
getCalendar(java.lang.Long)