public interface CompetencyFoundryAssignmentSession extends OsidSession
This session provides methods to re-assign Competency to
Foundry mappings. A Competency may appear in
multiple Foundry objects and removing the last reference to
a Competency is the equivalent of deleting it. Each
Foundry may have its own authorizations governing who is allowed
to operate on it.
Adding a reference of a Competency to another
Foundry is not a copy operation (eg: does not change its Id
).
| Modifier and Type | Method and Description |
|---|---|
void |
assignCompetencyToFoundry(Id competencyId,
Id foundryId)
Adds an existing
Competency to a Foundry. |
boolean |
canAssignCompetencies()
Tests if this user can alter competency/foundry mappings.
|
boolean |
canAssignCompetenciesToFoundry(Id foundryId)
Tests if this user can alter competency/foundry mappings.
|
IdList |
getAssignableFoundryIds(Id foundryId)
Gets a list of foundries including and under the given foundry node in
which any competency can be assigned.
|
IdList |
getAssignableFoundryIdsForCompetency(Id foundryId,
Id competencyId)
Gets a list of foundries including and under the given foundry node in
which a specific competency can be assigned.
|
void |
unassignCompetencyFromFoundry(Id competencyId,
Id foundryId)
Removes a
Competency from a Foundry. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean canAssignCompetencies()
PERMISSION_DENIED. This is intended as a hint to
an application that may opt not to offer assignment operations to
unauthorized users. false if mapping is not authorized, true
otherwisemandatory - This method must be implemented. boolean canAssignCompetenciesToFoundry(Id foundryId)
PERMISSION_DENIED. This is intended as a hint to
an application that may opt not to offer assignment operations to
unauthorized users.foundryId - the Id of the Foundry false if mapping is not authorized, true
otherwiseNullArgumentException - foundryId is
null mandatory - This method must be implemented. IdList getAssignableFoundryIds(Id foundryId) throws OperationFailedException
foundryId - the Id of the Foundry Ids NullArgumentException - foundryId is
null OperationFailedException - unable to complete requestmandatory - This method must be implemented. IdList getAssignableFoundryIdsForCompetency(Id foundryId, Id competencyId) throws OperationFailedException
foundryId - the Id of the Foundry competencyId - the Id of the Competency
Ids NullArgumentException - foundryId or
competencyId is null OperationFailedException - unable to complete requestmandatory - This method must be implemented. void assignCompetencyToFoundry(Id competencyId, Id foundryId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Competency to a Foundry.
competencyId - the Id of the Competency
foundryId - the Id of the Foundry NotFoundException - competencyId or
foundryId not foundNullArgumentException - competencyId or
foundryId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void unassignCompetencyFromFoundry(Id competencyId, Id foundryId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Competency from a Foundry. competencyId - the Id of the Competency
foundryId - the Id of the Foundry NotFoundException - competencyId or
foundryId not foundNullArgumentException - competencyId or
foundryId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.