public interface RecurringEventEnablerAdminSession extends OsidSession
This session creates and removes recurring event enablers. The data for
create and update is provided via the RecurringEventEnablerForm.
| Modifier and Type | Method and Description |
|---|---|
void |
aliasEventEnabler(Id recurringEventEnablerId,
Id aliasId)
Adds an
Id to a RecurringEventEnabler
for the purpose of creating compatibility. |
boolean |
canCreateRecurringEventEnabler()
Tests if this user can create recurring event enablers.
|
boolean |
canCreateRecurringEventEnablerWithRecordTypes(Type[] recurringEventEnablerRecordTypes)
Tests if this user can create a single
RecurringEventEnabler
using the desired record types. |
boolean |
canDeleteEventEnablers()
Tests if this user can delete recurring event enablers.
|
boolean |
canManageEventEnablerAliases()
Tests if this user can manage
Id aliases for recurring
event enablers. |
boolean |
canUpdateRecurringEventEnablers()
Tests if this user can update recurring event enablers.
|
RecurringEventEnabler |
createRecurringEventEnabler(RecurringEventEnablerForm recurringEventEnablerForm)
Creates a new
RecurringEventEnabler. |
void |
deleteEventEnabler(Id recurringEventEnablerId)
Deletes a
RecurringEventEnabler. |
Calendar |
getCalendar()
Gets the
Calendar associated with this session. |
Id |
getCalendarId()
Gets the
Calendar Id associated with
this session. |
RecurringEventEnablerForm |
getRecurringEventEnablerFormForCreate(Type[] recurringEventEnablerRecordTypes)
Gets the recurring event enabler form for creating new recurring event
enablers.
|
RecurringEventEnablerForm |
getRecurringEventEnablerFormForUpdate(Id recurringEventEnablerId)
Gets the recurring event enabler form for updating an existing
recurring event enabler.
|
void |
updateRecurringEventEnabler(RecurringEventEnablerForm recurringEventEnablerForm)
Updates an existing recurring event enabler.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getCalendarId()
Calendar Id associated with
this session. Calendar Id associated with this sessionmandatory - This method must be implemented. Calendar getCalendar() throws OperationFailedException, PermissionDeniedException
Calendar associated with this session.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canCreateRecurringEventEnabler()
RecurringEventEnabler
will result in a PERMISSION_DENIED. This is
intended as a hint to an application that may opt not to offer create
operations to an unauthorized user. false if RecurringEventEnabler
creation is not authorized, true otherwisemandatory - This method must be implemented. boolean canCreateRecurringEventEnablerWithRecordTypes(Type[] recurringEventEnablerRecordTypes)
RecurringEventEnabler
using the desired record types. While
CalendarRulesManager.getRecurringEventEnablerRecordTypes() can
be used to examine which records are supported, this method tests
which record(s) are required for creating a specific
RecurringEventEnabler. Providing an empty array tests if a
RecurringEventEnabler can be created with no records.recurringEventEnablerRecordTypes - array of recurring event
enabler record types true if RecurringEventEnabler
creation using the specified record Types is
supported, false otherwiseNullArgumentException -
recurringEventEnablerRecordTypes is null
mandatory - This method must be implemented. RecurringEventEnablerForm getRecurringEventEnablerFormForCreate(Type[] recurringEventEnablerRecordTypes) throws OperationFailedException, PermissionDeniedException
recurringEventEnablerRecordTypes - array of recurring event
enabler record typesNullArgumentException -
recurringEventEnablerRecordTypes is null
OperationFailedException - unable to complete requestPermissionDeniedException - authorization failureUnsupportedException - unable to get form for requested
record typesmandatory - This method must be implemented. RecurringEventEnabler createRecurringEventEnabler(RecurringEventEnablerForm recurringEventEnablerForm) throws OperationFailedException, PermissionDeniedException
RecurringEventEnabler. recurringEventEnablerForm - the form for this
RecurringEventEnabler RecurringEventEnabler IllegalStateException -
recurringEventEnablerForm already used in a create
transactionInvalidArgumentException - one or more of the form
elements is invalidNullArgumentException -
recurringEventEnablerForm is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failureUnsupportedException - recurringEventEnablerForm
did not originate from
getRecurringEventEnablerFormForCreate() mandatory - This method must be implemented. boolean canUpdateRecurringEventEnablers()
RecurringEventEnabler
will result in a PERMISSION_DENIED. This is
intended as a hint to an application that may opt not to offer update
operations to an unauthorized user. false if RecurringEventEnabler
modification is not authorized, true otherwisemandatory - This method must be implemented. RecurringEventEnablerForm getRecurringEventEnablerFormForUpdate(Id recurringEventEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
recurringEventEnablerId - the Id of the
RecurringEventEnabler NotFoundException - recurringEventEnablerId
is not foundNullArgumentException - recurringEventEnablerId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void updateRecurringEventEnabler(RecurringEventEnablerForm recurringEventEnablerForm) throws OperationFailedException, PermissionDeniedException
recurringEventEnablerForm - the form containing the elements to
be updatedIllegalStateException -
recurringEventEnablerForm already used in an update
transactionInvalidArgumentException - the form contains an invalid
valueNullArgumentException -
recurringEventEnablerForm is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failureUnsupportedException - recurringEventEnablerForm
did not originate from
getRecurringEventEnablerFormForUpdate() mandatory - This method must be implemented. boolean canDeleteEventEnablers()
RecurringEventEnabler
will result in a PERMISSION_DENIED. This is
intended as a hint to an application that may opt not to offer delete
operations to an unauthorized user. false if RecurringEventEnabler
deletion is not authorized, true otherwisemandatory - This method must be implemented. void deleteEventEnabler(Id recurringEventEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
RecurringEventEnabler. recurringEventEnablerId - the Id of the
RecurringEventEnabler to removeNotFoundException - recurrintEventEnablerId
not foundNullArgumentException - recurringEventEnablerId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canManageEventEnablerAliases()
Id aliases for recurring
event enablers. A return of true does not guarantee successful
authorization. A return of false indicates that it is known changing
an alias will result in a PERMISSION_DENIED. This is
intended as a hint to an application that may opt not to offer alias
operations to an unauthorized user. true if RecurringEventEnabler
aliasing is not authorized, true otherwisemandatory - This method must be implemented. void aliasEventEnabler(Id recurringEventEnablerId, Id aliasId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
Id to a RecurringEventEnabler
for the purpose of creating compatibility. The primary Id
of the RecurringEventEnabler is determined by
the provider. The new Id performs as an alias to the
primary Id . If the alias is a pointer to another
recurring event enabler. it is reassigned to the given recurring event
enabler Id. recurringEventEnablerId - the Id of a
RecurringEventEnabler aliasId - the alias Id AlreadyExistsException - aliasId is
already assignedNotFoundException - recurringEventEnablerId
not foundNullArgumentException - recurringEventEnablerId
or aliasId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.