public interface SupersedingEventEnablerAdminSession extends OsidSession
This session creates and removes superseding event enablers. The data
for create and update is provided via the
SupersedingEventEnablerForm.
Modifier and Type | Method and Description |
---|---|
void |
aliasSupersedingEventEnabler(Id supersedingEventEnablerId,
Id aliasId)
Adds an
Id to a SupersedingEventEnabler
for the purpose of creating compatibility. |
boolean |
canCreateSupersedingEventEnabler()
Tests if this user can create superseding event enablers.
|
boolean |
canCreateSupersedingEventEnablerWithRecordTypes(Type[] supersedingEventEnablerRecordTypes)
Tests if this user can create a single
SupersedingEventEnabler
using the desired record types. |
boolean |
canDeleteSupersedingEventEnablers()
Tests if this user can delete superseding event enablers.
|
boolean |
canManageSupersedingEventEnablerAliases()
Tests if this user can manage
Id aliases for
superseding event enablers. |
boolean |
canUpdateSupersedingEventEnablers()
Tests if this user can update superseding event enablers.
|
SupersedingEventEnabler |
createSupersedingEventEnabler(SupersedingEventEnablerForm supersedingEventEnablerForm)
Creates a new
SupersedingEventEnabler. |
void |
deleteSupersedingEventEnabler(Id supersedingEventEnablerId)
Deletes a
SupersedingEventEnabler. |
Calendar |
getCalendar()
Gets the
Calendar associated with this session. |
Id |
getCalendarId()
Gets the
Calendar Id associated with
this session. |
SupersedingEventEnablerForm |
getSupersedingEventEnablerFormForCreate(Type[] supersedingEventEnablerRecordTypes)
Gets the superseding event enabler form for creating new superseding
event enablers.
|
SupersedingEventEnablerForm |
getSupersedingEventEnablerFormForUpdate(Id supersedingEventEnablerId)
Gets the superseding event enabler form for updating an existing
superseding event enabler.
|
void |
updateSupersedingEventEnabler(SupersedingEventEnablerForm supersedingEventEnablerForm)
Updates an existing superseding event enabler.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id 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 canCreateSupersedingEventEnabler()
SupersedingEventEnabler
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 SupersedingEventEnabler
creation is not authorized, true
otherwisemandatory
- This method must be implemented. boolean canCreateSupersedingEventEnablerWithRecordTypes(Type[] supersedingEventEnablerRecordTypes)
SupersedingEventEnabler
using the desired record types. While
CalendaringRulesManager.getSupersedingEventEnablerRecordTypes()
can be used to examine which records are supported, this
method tests which record(s) are required for creating a specific
SupersedingEventEnabler.
Providing an empty array tests
if a SupersedingEventEnabler
can be created with no
records.supersedingEventEnablerRecordTypes
- array of superseding event
enabler types true
if SupersedingEventEnabler
creation using the specified record Types
is
supported, false
otherwiseNullArgumentException
-
supersedingEventEnablerRecordTypes
is null
mandatory
- This method must be implemented. SupersedingEventEnablerForm getSupersedingEventEnablerFormForCreate(Type[] supersedingEventEnablerRecordTypes) throws OperationFailedException, PermissionDeniedException
supersedingEventEnablerRecordTypes
- array of superseding event
enabler typesNullArgumentException
-
supersedingEventEnablerRecordTypes
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureUnsupportedException
- unable to get form for requested
record typesmandatory
- This method must be implemented. SupersedingEventEnabler createSupersedingEventEnabler(SupersedingEventEnablerForm supersedingEventEnablerForm) throws OperationFailedException, PermissionDeniedException
SupersedingEventEnabler.
supersedingEventEnablerForm
- the form for this
SupersedingEventEnabler
SupersedingEventEnabler
IllegalStateException
-
supersedingEventEnablerForm
already used in a create
transactionInvalidArgumentException
- one or more of the form
elements is invalidNullArgumentException
-
supersedingEventEnablerForm
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureUnsupportedException
-
supersedingEventEnablerForm
did not originate from
getSupersedingEventFormForCreate()
mandatory
- This method must be implemented. boolean canUpdateSupersedingEventEnablers()
SupersedingEventEnabler
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 SupersedingEventEnabler
modification is not authorized, true
otherwisemandatory
- This method must be implemented. SupersedingEventEnablerForm getSupersedingEventEnablerFormForUpdate(Id supersedingEventEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
supersedingEventEnablerId
- the Id
of the
SupersedingEventEnabler
NotFoundException
- supersedingEventEnablerId
is not foundNullArgumentException
-
supersedingEventEnablerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void updateSupersedingEventEnabler(SupersedingEventEnablerForm supersedingEventEnablerForm) throws OperationFailedException, PermissionDeniedException
supersedingEventEnablerForm
- the form containing the elements
to be updatedIllegalStateException
-
supersedingEventEnablerForm
already used in an update
transactionInvalidArgumentException
- the form contains an invalid
valueNullArgumentException
-
supersedingEventEnablerForm
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureUnsupportedException
-
supersedingEventEnablerForm
did not originate from
getSupersedingEventFormForUpdate()
mandatory
- This method must be implemented. boolean canDeleteSupersedingEventEnablers()
SupersedingEventEnabler
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 SupersedingEventEnabler
deletion is not authorized, true
otherwisemandatory
- This method must be implemented. void deleteSupersedingEventEnabler(Id supersedingEventEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
SupersedingEventEnabler.
supersedingEventEnablerId
- the Id
of the
SupersedingEventEnabler
to removeNotFoundException
- supersedingEventEnablerId
not foundNullArgumentException
-
supersedingEventEnablerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canManageSupersedingEventEnablerAliases()
Id
aliases 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 a PERMISSION_DENIED.
This is intended as a hint to an application that may opt not to offer
alias operations to an unauthorized user. false
if SupersedingEventEnabler
aliasing is not authorized, true
otherwisemandatory
- This method must be implemented. void aliasSupersedingEventEnabler(Id supersedingEventEnablerId, Id aliasId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
Id
to a SupersedingEventEnabler
for the purpose of creating compatibility. The primary Id
of the SupersedingEventEnabler
is determined by
the provider. The new Id
performs as an alias to the
primary Id
. If the alias is a pointer to another
superseding event enabler. it is reassigned to the given superseding
event enabler Id.
supersedingEventEnablerId
- the Id
of a
SupersedingEventEnabler
aliasId
- the alias Id
AlreadyExistsException
- aliasId
is
already assignedNotFoundException
- supersedingEventEnablerId
not foundNullArgumentException
-
supersedingEventEnablerId
or aliasId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.