Interface RecurringEventEnablerAdminSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session creates and removes recurring event enablers. The data for
create and update is provided via the RecurringEventEnablerForm .
-
Method Summary
Modifier and TypeMethodDescriptionvoidaliasEventEnabler(Id recurringEventEnablerId, Id aliasId) Adds anIdto aRecurringEventEnablerfor the purpose of creating compatibility.booleanTests if this user can create recurring event enablers.booleancanCreateRecurringEventEnablerWithRecordTypes(Type[] recurringEventEnablerRecordTypes) Tests if this user can create a singleRecurringEventEnablerusing the desired record types.booleanTests if this user can delete recurring event enablers.booleanTests if this user can manageIdaliases for recurring event enablers.booleanTests if this user can update recurring event enablers.createRecurringEventEnabler(RecurringEventEnablerForm recurringEventEnablerForm) Creates a newRecurringEventEnabler.voiddeleteEventEnabler(Id recurringEventEnablerId) Deletes aRecurringEventEnabler.Gets theCalendarassociated with this session.Gets theCalendarIdassociated with this session.getRecurringEventEnablerFormForCreate(Type[] recurringEventEnablerRecordTypes) Gets the recurring event enabler form for creating new recurring event enablers.getRecurringEventEnablerFormForUpdate(Id recurringEventEnablerId) Gets the recurring event enabler form for updating an existing recurring event enabler.voidupdateRecurringEventEnabler(RecurringEventEnablerForm recurringEventEnablerForm) Updates an existing recurring event enabler.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.
-
Method Details
-
getCalendarId
Id getCalendarId()Gets theCalendarIdassociated with this session.- Returns:
- the
Calendar Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getCalendar
Gets theCalendarassociated with this session.- Returns:
- the calendar
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canCreateRecurringEventEnabler
boolean canCreateRecurringEventEnabler()Tests if this user can create recurring event enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known creating aRecurringEventEnablerwill result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer create operations to an unauthorized user.- Returns:
falseifRecurringEventEnablercreation is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
canCreateRecurringEventEnablerWithRecordTypes
Tests if this user can create a singleRecurringEventEnablerusing the desired record types. WhileCalendarRulesManager.getRecurringEventEnablerRecordTypes()can be used to examine which records are supported, this method tests which record(s) are required for creating a specificRecurringEventEnabler. Providing an empty array tests if aRecurringEventEnablercan be created with no records.- Parameters:
recurringEventEnablerRecordTypes- array of recurring event enabler record types- Returns:
trueifRecurringEventEnablercreation using the specified recordTypesis supported,falseotherwise- Throws:
NullArgumentException-recurringEventEnablerRecordTypesisnull- Compliance:
mandatory- This method must be implemented.
-
getRecurringEventEnablerFormForCreate
RecurringEventEnablerForm getRecurringEventEnablerFormForCreate(Type[] recurringEventEnablerRecordTypes) throws OperationFailedException, PermissionDeniedException Gets the recurring event enabler form for creating new recurring event enablers. A new form should be requested for each create transaction.- Parameters:
recurringEventEnablerRecordTypes- array of recurring event enabler record types- Returns:
- the recurring event enabler form
- Throws:
NullArgumentException-recurringEventEnablerRecordTypesisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException- unable to get form for requested record types- Compliance:
mandatory- This method must be implemented.
-
createRecurringEventEnabler
RecurringEventEnabler createRecurringEventEnabler(RecurringEventEnablerForm recurringEventEnablerForm) throws OperationFailedException, PermissionDeniedException Creates a newRecurringEventEnabler.- Parameters:
recurringEventEnablerForm- the form for thisRecurringEventEnabler- Returns:
- the new
RecurringEventEnabler - Throws:
IllegalStateException-recurringEventEnablerFormalready used in a create transactionInvalidArgumentException- one or more of the form elements is invalidNullArgumentException-recurringEventEnablerFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-recurringEventEnablerFormdid not originate fromgetRecurringEventEnablerFormForCreate()- Compliance:
mandatory- This method must be implemented.
-
canUpdateRecurringEventEnablers
boolean canUpdateRecurringEventEnablers()Tests if this user can update recurring event enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known updating aRecurringEventEnablerwill result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer update operations to an unauthorized user.- Returns:
falseifRecurringEventEnablermodification is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
getRecurringEventEnablerFormForUpdate
RecurringEventEnablerForm getRecurringEventEnablerFormForUpdate(Id recurringEventEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets the recurring event enabler form for updating an existing recurring event enabler. A new recurring event enabler form should be requested for each update transaction.- Parameters:
recurringEventEnablerId- theIdof theRecurringEventEnabler- Returns:
- the recurring event enabler form
- Throws:
NotFoundException-recurringEventEnablerIdis not foundNullArgumentException-recurringEventEnablerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
updateRecurringEventEnabler
void updateRecurringEventEnabler(RecurringEventEnablerForm recurringEventEnablerForm) throws OperationFailedException, PermissionDeniedException Updates an existing recurring event enabler.- Parameters:
recurringEventEnablerForm- the form containing the elements to be updated- Throws:
IllegalStateException-recurringEventEnablerFormalready used in an update transactionInvalidArgumentException- the form contains an invalid valueNullArgumentException-recurringEventEnablerFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-recurringEventEnablerFormdid not originate fromgetRecurringEventEnablerFormForUpdate()- Compliance:
mandatory- This method must be implemented.
-
canDeleteEventEnablers
boolean canDeleteEventEnablers()Tests if this user can delete recurring event enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting aRecurringEventEnablerwill result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer delete operations to an unauthorized user.- Returns:
falseifRecurringEventEnablerdeletion is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
deleteEventEnabler
void deleteEventEnabler(Id recurringEventEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Deletes aRecurringEventEnabler.- Parameters:
recurringEventEnablerId- theIdof theRecurringEventEnablerto remove- Throws:
NotFoundException-recurrintEventEnablerIdnot foundNullArgumentException-recurringEventEnablerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canManageEventEnablerAliases
boolean canManageEventEnablerAliases()Tests if this user can manageIdaliases 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 aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer alias operations to an unauthorized user.- Returns:
trueifRecurringEventEnableraliasing is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
aliasEventEnabler
void aliasEventEnabler(Id recurringEventEnablerId, Id aliasId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds anIdto aRecurringEventEnablerfor the purpose of creating compatibility. The primaryIdof theRecurringEventEnableris determined by the provider. The newIdperforms as an alias to the primaryId. If the alias is a pointer to another recurring event enabler. it is reassigned to the given recurring event enablerId.- Parameters:
recurringEventEnablerId- theIdof aRecurringEventEnableraliasId- the aliasId- Throws:
AlreadyExistsException-aliasIdis already assignedNotFoundException-recurringEventEnablerIdnot foundNullArgumentException-recurringEventEnablerIdoraliasIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-