public interface DemographicEnablerRuleApplicationSession extends OsidSession
This session provides methods to apply DemographicEnablers
to Demographics. A Demographic with
multiple DemographicEnablers means any positive rule
evaluation across the enablers result in an effective Demographic.
| Modifier and Type | Method and Description |
|---|---|
void |
assignDemographicEnablerToDemographic(Id demographicEnablerId,
Id demographicId)
Adds an existing
DemographicEnabler to a
Demographic. |
boolean |
canAssignDemographicEnablers()
Tests if this user can alter demographic enabler/demographic mappings.
|
Bin |
getBin()
Gets the
Bin associated with this session. |
Id |
getBinId()
Gets the
Bin Id associated with this
session. |
void |
unassignDemographicEnablerFromDemographic(Id demographicEnablerId,
Id demographicId)
Removes a
DemographicEnabler from a Demographic. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getBinId()
Bin Id associated with this
session. Bin Id associated with this sessionmandatory - This method must be implemented. Bin getBin() throws OperationFailedException, PermissionDeniedException
Bin associated with this session.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canAssignDemographicEnablers()
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 assignDemographicEnablerToDemographic(Id demographicEnablerId, Id demographicId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
DemographicEnabler to a
Demographic. demographicEnablerId - the Id of the
DemographicEnabler demographicId - the Id of the Demographic
AlreadyExistsException - demographicEnablerId
is already assigned to demographicId NotFoundException - demographicEnablerId
or demographicId not foundNullArgumentException - demographicEnablerId
or demographicId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void unassignDemographicEnablerFromDemographic(Id demographicEnablerId, Id demographicId) throws NotFoundException, OperationFailedException, PermissionDeniedException
DemographicEnabler from a Demographic.
demographicEnablerId - the Id of the
DemographicEnabler demographicId - the Id of the Demographic
NotFoundException - demographicEnablerId
or demographicId not found or not mappedNullArgumentException - demographicEnablerId
or demographicId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.