public interface ParameterProcessorRuleApplicationSession extends OsidSession
This session provides methods to apply ParameterProcessors
to Parameters.
Modifier and Type | Method and Description |
---|---|
void |
assignParameterProcessorToParameter(Id parameterProcessorId,
Id parameterId)
Adds an existing
ParameterProcessor to a
Parameter. |
boolean |
canAssignParameterProcessors()
Tests if this user can alter parameter processor/parameter mappings.
|
boolean |
canSequenceParameterProcessors()
Tests if this user can order
ParametereProcessors. |
Configuration |
getConfiguration()
Gets the
Configuration associated with this session. |
Id |
getConfigurationId()
Gets the
Configuration Id associated
with this session. |
void |
moveParameterProcessorAhead(Id parameterProcessorId,
Id parameterId,
Id referenceId)
Reorders parameter processors for a parameter by moving the specified
parameter processors in front of a reference parameter.
|
void |
moveParameterProcessorBehind(Id parameterProcessorId,
Id parameterId,
Id referenceId)
Reorders parameter processors for a parameter by moving the specified
parameter processor behind a reference parameter processor.
|
void |
orderParameterProcessors(Id[] parameterProcessorIds,
Id parameterId)
Reorders a set of parameter processors for a parameter.
|
void |
unassignParameterProcessorFromParameter(Id parameterProcessorId,
Id parameterId)
Removes a
ParameterProcessor from a Parameter. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getConfigurationId()
Configuration
Id
associated
with this session. Configuration Id
associated with this
sessionmandatory
- This method must be implemented. Configuration getConfiguration() throws OperationFailedException, PermissionDeniedException
Configuration
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canAssignParameterProcessors()
PERMISSION_DENIED.
This is intended as
a hint to an application that may opt not to offer lookup operations
to unauthorized users. false
if mapping is not authorized, true
otherwisemandatory
- This method must be implemented. void assignParameterProcessorToParameter(Id parameterProcessorId, Id parameterId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
ParameterProcessor
to a
Parameter.
parameterProcessorId
- the Id
of the
ParameterProcessor
parameterId
- the Id
of the Parameter
AlreadyExistsException
- parameterProcessorId
is already applied to parameterId
NotFoundException
- parameterProcessorId
or parameterId
not foundNullArgumentException
- parameterProcessorId
or parameterId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void unassignParameterProcessorFromParameter(Id parameterProcessorId, Id parameterId) throws NotFoundException, OperationFailedException, PermissionDeniedException
ParameterProcessor
from a Parameter.
parameterProcessorId
- the Id
of the
ParameterProcessor
parameterId
- the Id
of the Parameter
NotFoundException
- parameterProcessorId
or parameterId
not found or
parameterProcessorId
is not applied to
parameterId
NullArgumentException
- parameterProcessorId
or parameterId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canSequenceParameterProcessors()
ParametereProcessors.
A
return of true does not guarantee successful authorization. A return
of false indicates that it is known sequencing operations will result
in a PERMISSION_DENIED.
This is intended as a hint to
an application that may opt not to offer sequencing operations to an
unauthorized user. false
if ParameterProcessor
ordering is not authorized, true
otherwisemandatory
- This method must be implemented. void moveParameterProcessorAhead(Id parameterProcessorId, Id parameterId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
parameterProcessorId
- the Id
of a
ParameterProcessor
parameterId
- the Id
of a Parameter
referenceId
- the reference parameter processor Id
NotFoundException
- parameterProcessorId,
parameterId,
or referenceId
not found
or, parameterProcessorId,
or referenceId
not related to parameterId
NullArgumentException
- parameterProcessorId,
parameterId,
or referenceId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void moveParameterProcessorBehind(Id parameterProcessorId, Id parameterId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
parameterProcessorId
- the Id
of a
ParameterProcessor
parameterId
- the Id
of a Parameter
referenceId
- the reference parameter processor Id
NotFoundException
- parameterProcessorId,
parameterId,
or referenceId
not found
or, parameterProcessorId,
or referenceId
not related to parameterId
NullArgumentException
- parameterProcessorId,
parameterId,
or referenceId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void orderParameterProcessors(Id[] parameterProcessorIds, Id parameterId) throws NotFoundException, OperationFailedException, PermissionDeniedException
parameterProcessorIds
- the Ids
for a set of
ParameterProcessors
parameterId
- the Id
of a Parameter
NotFoundException
- parameterId
not
found or, a parameterProcessorId
not related to
parameterId
NullArgumentException
- parameterProcessorIds
or parameterId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.