public interface SignalEnablerAdminSession extends OsidSession
This session creates and removes signal enablers. The data for create
and update is provided via the SignalEnablerForm.
Modifier and Type | Method and Description |
---|---|
void |
aliasSignalEnabler(Id signalEnablerId,
Id aliasId)
Adds an
Id to a SignalEnabler for the
purpose of creating compatibility. |
boolean |
canCreateSignalEnabler()
Tests if this user can create signal enablers.
|
boolean |
canCreateSignalEnablerWithRecordTypes(Type[] signalEnablerRecordTypes)
Tests if this user can create a single
SignalEnabler
using the desired record types. |
boolean |
canDeleteSignalEnablers()
Tests if this user can delete signal enablers.
|
boolean |
canManageSignalEnablerAliases()
Tests if this user can manage
Id aliases for signal
enablers. |
boolean |
canUpdateSignalEnablers()
Tests if this user can update signal enablers.
|
SignalEnabler |
createSignalEnabler(SignalEnablerForm signalEnablerForm)
Creates a new
SignalEnabler. |
void |
deleteSignalEnabler(Id signalEnablerId)
Deletes a
SignalEnabler. |
Map |
getMap()
Gets the
Map associated with this session. |
Id |
getMapId()
Gets the
Map Id associated with this
session. |
SignalEnablerForm |
getSignalEnablerFormForCreate(Type[] signalEnablerRecordTypes)
Gets the signal enabler form for creating new signal enablers.
|
SignalEnablerForm |
getSignalEnablerFormForUpdate(Id signalEnablerId)
Gets the signal enabler form for updating an existing signal enabler.
|
void |
updateSignalEnabler(SignalEnablerForm signalEnablerForm)
Updates an existing signal enabler.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getMapId()
Map
Id
associated with this
session. Map Id
associated with this sessionmandatory
- This method must be implemented. Map getMap() throws OperationFailedException, PermissionDeniedException
Map
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canCreateSignalEnabler()
SignalEnabler
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 SignalEnabler
creation
is not authorized, true
otherwisemandatory
- This method must be implemented. boolean canCreateSignalEnablerWithRecordTypes(Type[] signalEnablerRecordTypes)
SignalEnabler
using the desired record types. While
MappingPathRulesManager.getSignalEnablerRecordTypes()
can be
used to examine which records are supported, this method tests which
record(s) are required for creating a specific SignalEnabler.
Providing an empty array tests if a SignalEnabler
can be created with no records.signalEnablerRecordTypes
- array of signal enabler record types true
if SignalEnabler
creation
using the specified record Types
is supported,
false
otherwiseNullArgumentException
- signalEnablerRecordTypes
is null
mandatory
- This method must be implemented. SignalEnablerForm getSignalEnablerFormForCreate(Type[] signalEnablerRecordTypes) throws OperationFailedException, PermissionDeniedException
signalEnablerRecordTypes
- array of signal enabler record typesNullArgumentException
- signalEnablerRecordTypes
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureUnsupportedException
- unable to get form for requested
record typesmandatory
- This method must be implemented. SignalEnabler createSignalEnabler(SignalEnablerForm signalEnablerForm) throws OperationFailedException, PermissionDeniedException
SignalEnabler.
signalEnablerForm
- the form for this SignalEnabler
SignalEnabler
IllegalStateException
- signalEnablerForm
already used in a create transactionInvalidArgumentException
- one or more of the form
elements is invalidNullArgumentException
- signalEnablerForm
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureUnsupportedException
- signalEnablerForm
did not originate from getSignalEnablerFormForCreate()
mandatory
- This method must be implemented. boolean canUpdateSignalEnablers()
SignalEnabler
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 SignalEnabler
modification is not authorized, true
otherwisemandatory
- This method must be implemented. SignalEnablerForm getSignalEnablerFormForUpdate(Id signalEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
signalEnablerId
- the Id
of the
SignalEnabler
NotFoundException
- signalEnablerId
is
not foundNullArgumentException
- signalEnablerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void updateSignalEnabler(SignalEnablerForm signalEnablerForm) throws OperationFailedException, PermissionDeniedException
signalEnablerForm
- the form containing the elements to be
updatedIllegalStateException
- signalEnablerForm
already used in an update transactionInvalidArgumentException
- the form contains an invalid
valueNullArgumentException
- signalEnablerForm
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureUnsupportedException
- signalEnablerForm
did not originate from getSignalEnablerFormForUpdate()
mandatory
- This method must be implemented. boolean canDeleteSignalEnablers()
SignalEnabler
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 SignalEnabler
deletion
is not authorized, true
otherwisemandatory
- This method must be implemented. void deleteSignalEnabler(Id signalEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
SignalEnabler.
signalEnablerId
- the Id
of the
SignalEnabler
to removeNotFoundException
- signalEnablerId
not
foundNullArgumentException
- signalEnablerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canManageSignalEnablerAliases()
Id
aliases for signal
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 SignalEnabler
aliasing
is not authorized, true
otherwisemandatory
- This method must be implemented. void aliasSignalEnabler(Id signalEnablerId, Id aliasId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
Id
to a SignalEnabler
for the
purpose of creating compatibility. The primary Id
of
the SignalEnabler
is determined by the provider. The
new Id
performs as an alias to the primary Id
. If the alias is a pointer to another signal enabler. it is
reassigned to the given signal enabler Id.
signalEnablerId
- the Id
of a
SignalEnabler
aliasId
- the alias Id
AlreadyExistsException
- aliasId
is
already assignedNotFoundException
- signalEnablerId
not
foundNullArgumentException
- signalEnablerId
or aliasId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.