Interface SupersedingEventEnablerAdminSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session creates and removes superseding event enablers. The data
for create and update is provided via the
SupersedingEventEnablerForm .
-
Method Summary
Modifier and TypeMethodDescriptionvoidaliasSupersedingEventEnabler(Id supersedingEventEnablerId, Id aliasId) Adds anIdto aSupersedingEventEnablerfor the purpose of creating compatibility.booleanTests if this user can create superseding event enablers.booleancanCreateSupersedingEventEnablerWithRecordTypes(Type[] supersedingEventEnablerRecordTypes) Tests if this user can create a singleSupersedingEventEnablerusing the desired record types.booleanTests if this user can delete superseding event enablers.booleanTests if this user can manageIdaliases for superseding event enablers.booleanTests if this user can update superseding event enablers.createSupersedingEventEnabler(SupersedingEventEnablerForm supersedingEventEnablerForm) Creates a newSupersedingEventEnabler.voiddeleteSupersedingEventEnabler(Id supersedingEventEnablerId) Deletes aSupersedingEventEnabler.Gets theCalendarassociated with this session.Gets theCalendarIdassociated with this session.getSupersedingEventEnablerFormForCreate(Type[] supersedingEventEnablerRecordTypes) Gets the superseding event enabler form for creating new superseding event enablers.getSupersedingEventEnablerFormForUpdate(Id supersedingEventEnablerId) Gets the superseding event enabler form for updating an existing superseding event enabler.voidupdateSupersedingEventEnabler(SupersedingEventEnablerForm supersedingEventEnablerForm) Updates an existing superseding 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.
-
canCreateSupersedingEventEnabler
boolean canCreateSupersedingEventEnabler()Tests if this user can create superseding event enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known creating aSupersedingEventEnablerwill 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:
falseifSupersedingEventEnablercreation is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
canCreateSupersedingEventEnablerWithRecordTypes
Tests if this user can create a singleSupersedingEventEnablerusing the desired record types. WhileCalendaringRulesManager.getSupersedingEventEnablerRecordTypes()can be used to examine which records are supported, this method tests which record(s) are required for creating a specificSupersedingEventEnabler. Providing an empty array tests if aSupersedingEventEnablercan be created with no records.- Parameters:
supersedingEventEnablerRecordTypes- array of superseding event enabler types- Returns:
trueifSupersedingEventEnablercreation using the specified recordTypesis supported,falseotherwise- Throws:
NullArgumentException-supersedingEventEnablerRecordTypesisnull- Compliance:
mandatory- This method must be implemented.
-
getSupersedingEventEnablerFormForCreate
SupersedingEventEnablerForm getSupersedingEventEnablerFormForCreate(Type[] supersedingEventEnablerRecordTypes) throws OperationFailedException, PermissionDeniedException Gets the superseding event enabler form for creating new superseding event enablers. A new form should be requested for each create transaction.- Parameters:
supersedingEventEnablerRecordTypes- array of superseding event enabler types- Returns:
- the superseding event enabler form
- Throws:
NullArgumentException-supersedingEventEnablerRecordTypesisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException- unable to get form for requested record types- Compliance:
mandatory- This method must be implemented.
-
createSupersedingEventEnabler
SupersedingEventEnabler createSupersedingEventEnabler(SupersedingEventEnablerForm supersedingEventEnablerForm) throws OperationFailedException, PermissionDeniedException Creates a newSupersedingEventEnabler.- Parameters:
supersedingEventEnablerForm- the form for thisSupersedingEventEnabler- Returns:
- the new
SupersedingEventEnabler - Throws:
IllegalStateException-supersedingEventEnablerFormalready used in a create transactionInvalidArgumentException- one or more of the form elements is invalidNullArgumentException-supersedingEventEnablerFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-supersedingEventEnablerFormdid not originate fromgetSupersedingEventFormForCreate()- Compliance:
mandatory- This method must be implemented.
-
canUpdateSupersedingEventEnablers
boolean canUpdateSupersedingEventEnablers()Tests if this user can update superseding event enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known updating aSupersedingEventEnablerwill 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:
falseifSupersedingEventEnablermodification is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
getSupersedingEventEnablerFormForUpdate
SupersedingEventEnablerForm getSupersedingEventEnablerFormForUpdate(Id supersedingEventEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets the superseding event enabler form for updating an existing superseding event enabler. A new superseding event enabler form should be requested for each update transaction.- Parameters:
supersedingEventEnablerId- theIdof theSupersedingEventEnabler- Returns:
- the superseding event enabler form
- Throws:
NotFoundException-supersedingEventEnablerIdis not foundNullArgumentException-supersedingEventEnablerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
updateSupersedingEventEnabler
void updateSupersedingEventEnabler(SupersedingEventEnablerForm supersedingEventEnablerForm) throws OperationFailedException, PermissionDeniedException Updates an existing superseding event enabler.- Parameters:
supersedingEventEnablerForm- the form containing the elements to be updated- Throws:
IllegalStateException-supersedingEventEnablerFormalready used in an update transactionInvalidArgumentException- the form contains an invalid valueNullArgumentException-supersedingEventEnablerFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-supersedingEventEnablerFormdid not originate fromgetSupersedingEventFormForUpdate()- Compliance:
mandatory- This method must be implemented.
-
canDeleteSupersedingEventEnablers
boolean canDeleteSupersedingEventEnablers()Tests if this user can delete superseding event enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting aSupersedingEventEnablerwill 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:
falseifSupersedingEventEnablerdeletion is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
deleteSupersedingEventEnabler
void deleteSupersedingEventEnabler(Id supersedingEventEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Deletes aSupersedingEventEnabler.- Parameters:
supersedingEventEnablerId- theIdof theSupersedingEventEnablerto remove- Throws:
NotFoundException-supersedingEventEnablerIdnot foundNullArgumentException-supersedingEventEnablerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canManageSupersedingEventEnablerAliases
boolean canManageSupersedingEventEnablerAliases()Tests if this user can manageIdaliases for superseding 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:
falseifSupersedingEventEnableraliasing is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
aliasSupersedingEventEnabler
void aliasSupersedingEventEnabler(Id supersedingEventEnablerId, Id aliasId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds anIdto aSupersedingEventEnablerfor the purpose of creating compatibility. The primaryIdof theSupersedingEventEnableris determined by the provider. The newIdperforms as an alias to the primaryId. If the alias is a pointer to another superseding event enabler. it is reassigned to the given superseding event enablerId.- Parameters:
supersedingEventEnablerId- theIdof aSupersedingEventEnableraliasId- the aliasId- Throws:
AlreadyExistsException-aliasIdis already assignedNotFoundException-supersedingEventEnablerIdnot foundNullArgumentException-supersedingEventEnablerIdoraliasIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-